A resonant low pass filter for audio signals. More...
Public Member Functions | |
LowPassFilter () | |
Constructor. | |
void | setCutoffFreq (unsigned char cutoff) |
Set the cut off frequency,. | |
void | setResonance (unsigned char resonance) |
Set the resonance. | |
int | next (int in) |
Calculate the next sample, given an input signal. |
A resonant low pass filter for audio signals.
Definition at line 48 of file LowPassFilter.h.
int LowPassFilter::next | ( | int | in | ) | [inline] |
Calculate the next sample, given an input signal.
in | the signal input. |
Definition at line 84 of file LowPassFilter.h.
void LowPassFilter::setCutoffFreq | ( | unsigned char | cutoff | ) | [inline] |
Set the cut off frequency,.
cutoff | use the range 0-255 to represent 0-8192 Hz (AUDIO_RATE/2). Be careful of distortion at the lower end, especially with high resonance. |
Definition at line 63 of file LowPassFilter.h.
void LowPassFilter::setResonance | ( | unsigned char | resonance | ) | [inline] |
Set the resonance.
If you hear unwanted distortion, back off the resonance.
resonance | in the range 0-255. |
Definition at line 73 of file LowPassFilter.h.