One-zero filter. More...
#include <mo_filter.h>
Public Member Functions | |
MoOneZero (SAMPLE theZero=-1.0) | |
the default constructor creates a low-pass filter (zero at z = -1.0) | |
~MoOneZero () | |
destructor | |
void | setB0 (SAMPLE b0) |
set the b[0] coefficient value | |
void | setB1 (SAMPLE b1) |
set the b[1] coefficient value | |
void | setCoefficients (SAMPLE b0, SAMPLE b1, bool clearState=false) |
set all filter coefficients. | |
void | setZero (SAMPLE theZero) |
set the zero position in the z-plane | |
SAMPLE | tick (SAMPLE input) |
One-zero filter.
MoOneZero::MoOneZero | ( | SAMPLE | theZero = -1.0 |
) |
the default constructor creates a low-pass filter (zero at z = -1.0)
MoOneZero::~MoOneZero | ( | void | ) |
destructor
void MoOneZero::setB0 | ( | SAMPLE | b0 | ) | [inline] |
set the b[0] coefficient value
void MoOneZero::setB1 | ( | SAMPLE | b1 | ) | [inline] |
set the b[1] coefficient value
void MoOneZero::setCoefficients | ( | SAMPLE | b0, | |
SAMPLE | b1, | |||
bool | clearState = false | |||
) |
set all filter coefficients.
void MoOneZero::setZero | ( | SAMPLE | theZero | ) |
set the zero position in the z-plane
SAMPLE MoOneZero::tick | ( | SAMPLE | input | ) |