class: mFlanger
flanger effect
Description
flanger effect
Template Parameters
template <class T = int32_t>T: data type used internally in delay lines
Class Methods
Constructor
mFlanger(float mod_freq = 0.2; float mod_depth = 0.05; float mix = 0.5)mod_freq: frequency (in Hz) of modulation oscillators.
mod_depth: depth of modulation (0 to 1.0 but close to zero sounds best)
allpass_gain: gain of allpass filter block within effect (0 to 1.0)
feedback: amount of feedback within effect (makes flanger sound harsher/more metallic) (0 to 1.0)
mix: dry/wet mix of effect (0 to 1.0)
void setAllpassGain(float gain_)Sets gain of allpass block within effect (0 to 1)
void setFeedback(float feedback_)Sets feedback amount within effect (0 to 1)
void setModFreq(float freq)Sets frequency (in Hz) of modulation oscillators.
void setModDepth(float mod_depth)Sets depth of modulation (0 to 1)
void setMix(float mix)mix: dry/wet mix of effect (0 to 1.0)
T next(T in_sample)Send a sample of audio into the effect and return a sample back.
Example
//global declaration
mFlanger my_flanger(0.2, 0.05, 0.5);
//in updateAudio
out_sample = my_flanger.next(oscillator_output); // where oscillator_output is the output of some previous sound-generating object