SynthLab SDK
|
Implements a simple 2nd order BPF. More...
#include <synthbase.h>
Public Member Functions | |
void | reset (double _sampleRate) |
void | setParameters (double _fc, double _Q) |
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 } |
double | coeffs [5] = { 0.0, 0.0, 0.0, 0.0, 0.0 } |
double | fc = 5.0 |
double | Q = 0.5 |
double | sampleRate = 1.0 |
Implements a simple 2nd order BPF.
|
inline |
run the filter
xn | the input sample |
|
inline |
flush state variables
|
inline |
set the fo and Q values