Crate surge_constants

Source

Constants§

A4_FREQ
The frequency of A4 in Hz, which is set to the value of CONCERT_A_HZ.
A4_MIDI_NOTE
muahahahahah The MIDI note number for A4, which is set to 69.
BLOCK_SIZE
The number of samples in each processing block.
BLOCK_SIZE_INV
The reciprocal of BLOCK_SIZE as a f32 value.
BLOCK_SIZE_OS
The product of OSC_OVERSAMPLING and BLOCK_SIZE.
BLOCK_SIZE_OS_INV
The reciprocal of BLOCK_SIZE_OS as a f32 value.
BLOCK_SIZE_OS_QUAD
The quotient of BLOCK_SIZE_OS and 4.
BLOCK_SIZE_QUAD
The quotient of BLOCK_SIZE and 4.
CONCERT_A_HZ
The frequency of concert pitch A, which is set to 432.0.
FIR_IPOL_I16_N
The number of coefficients used by the FIR interpolator for i16 values.
FIR_IPOL_M
The number of points used by the FIR interpolator kernel.
FIR_IPOL_M_BITS
The number of bits used to represent FIR_IPOL_M.
FIR_IPOL_N
The number of times the FIR interpolator is applied during resampling.
FIR_OFFSET
The offset used for FIR resampling.
FIR_OFFSET_F32
The offset used for FIR resampling as a f32 value.
FIR_OFFSET_I16
The offset used for FIR resampling for i16 values.
HPF_CYCLE_LOSS
The cycle loss factor for the high-pass filter.
MAX_FB_COMB
The maximum number of feedback comb filters that can be used.
MAX_MIPMAP_LEVELS
must be 2^n The maximum number of mipmap levels for a texture.
MAX_SUBTABLES
The maximum number of sub-tables that can be used.
MAX_UNISON
The maximum number of unison voices that can be used.
MAX_VOICES
The maximum number of voices that can be used.
MAX_WAVETABLE_SAMPLES
I don’t know why your max wtable samples would be less than your max tables * your max sample size. So lets fix that!
MAX_WAVETABLE_SIZE
The maximum size of a single wave table in samples.
METAPARAM_OFFSET
The offset for storing meta parameters.
MIDI_0_FREQ
The frequency of MIDI note 0, which is set to 8.17579891564371.
NOTE_FREQ_C0
The frequency of note C0, which is set to 16.351_599.
NUM_CONTROLINTERPOLATORS
const int max_wtable_samples = 268000; // delay pops 4 uses the most The number of MIDI control interpolators available.
N_COEFFMAKER_COEFFS
The number of coefficients used by the coeffmaker module.
N_CUSTOMCONTROLLERS
The number of custom controllers used.
N_FILTER_REGISTERS
The number of filter registers.
N_FX_PARAMS
The number of effect parameters.
N_GLOBAL_PARAMS
The number of global parameters.
N_GLOBAL_POSTPARAMS
The number of global post parameters.
N_INPUTS
The number of input channels.
N_LFOS
The total number of LFOs.
N_LFOS_PER_SCENE
The number of LFOs per scene.
N_LFOS_VOICE
The number of LFOs per voice.
N_METAPARAMETERS
The number of meta-parameters.
N_OSCS
The number of oscillators.
N_OSC_PARAMS
The number of oscillator parameters.
N_OUTPUTS
The number of output channels.
N_SCENES
The number of scenes.
N_SCENE_PARAMS
The number of scene parameters.
N_TOTAL_PARAMS
The total number of parameters.
OB_LENGTH
The length of the output buffer.
OB_LENGTH_QUAD
The length of the output buffer divided by 4.
ONE
The constant value of 1 as a double.
ONE_TWELFTH
The value of one twelfth, or 1/12.
OSC_OVERSAMPLING
The oversampling factor for the oscillator, used to increase the quality of the generated waveforms.
RINGOUT_DEFAULT
The default ringout value, set to 10000000.
SLOWRATE
The slow rate value used for some operations.
SLOWRATE_M1
This constant represents the slow rate subtracted by one, which is used to calculate the frequency of a wave.
WINDOW_SIZE_X
These constants are of type usize and represent the window size of a graphical user interface used in the surge-ui crate.
WINDOW_SIZE_Y
ZERO
The value of zero