SynthLab SDK
|
Implements a first order HPF with fc = 2.0Hz. More...
#include <synthbase.h>
Public Member Functions | |
void | reset (double _sampleRate) |
double | processAudioSample (double xn) |
run the filter More... | |
Protected Types | |
enum | { xz1, xz2, yz1, yz2, numStates } |
enum | { a0, a1, a2, b1, b2 } |
Protected Attributes | |
double | state [4] = { 0.0, 0.0, 0.0, 0.0 } |
state variables | |
double | coeffs [5] = { 0.0, 0.0, 0.0, 0.0, 0.0 } |
biquad coefficients | |
double | fc = 1.0 |
hardcoded fc value | |
double | sampleRate = 1.0 |
Implements a first order HPF with fc = 2.0Hz.
|
inline |
run the filter
xn | the input sample |
|
inline |
flush state variables and set the fc value, that is usually just hardcoded