A resonant low pass filter for audio signals. More...
#include <LowPassFilter.h>
Public Member Functions | |
| LowPassFilter () | |
| Constructor. | |
| void | setCutoffFreq (uint8_t cutoff) |
| Set the cut off frequency,. More... | |
| void | setResonance (uint8_t resonance) |
| Set the resonance. More... | |
| int | next (int in) |
| Calculate the next sample, given an input signal. More... | |
A resonant low pass filter for audio signals.
Definition at line 37 of file LowPassFilter.h.
|
inline |
Calculate the next sample, given an input signal.
| in | the signal input. |
Definition at line 75 of file LowPassFilter.h.
|
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 53 of file LowPassFilter.h.
|
inline |
Set the resonance.
If you hear unwanted distortion, back off the resonance.
| resonance | in the range 0-255, with 255 being most resonant. |
Definition at line 63 of file LowPassFilter.h.