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 af32
value. - BLOCK_
SIZE_ OS - The product of
OSC_OVERSAMPLING
andBLOCK_SIZE
. - BLOCK_
SIZE_ OS_ INV - The reciprocal of
BLOCK_SIZE_OS
as af32
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 thesurge-ui
crate. - WINDOW_
SIZE_ Y - ZERO
- The value of zero