SynthLab SDK
|
Implementation of a low shelving filter. More...
#include <synthbase.h>
Public Member Functions | |
void | reset (double _sampleRate) |
void | setParameters (double shelfFreq, double boostCut_dB) |
double | processAudioSample (double xn) |
run the filter More... | |
Protected Types | |
enum | { xz1, xz2, yz1, yz2, numStates } |
enum | { a0, a1, a2, b1, b2, c0, d0 } |
Protected Attributes | |
double | state [4] = { 0.0, 0.0, 0.0, 0.0 } |
double | coeffs [7] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 } |
double | fc = 440.0 |
double | boostCut_dB = 0.0 |
double | sampleRate = 1.0 |
Implementation of a low shelving filter.
|
inline |
run the filter
xn | the input sample |
|
inline |
reset to init state
|
inline |
set shelving frequency and boost/cut in dB