#include <Filters.h>

Public Member Functions | |
| Butter () | |
| Butter (ButterworthType type, float cutoff) | |
| Butter (ButterworthType type, float center, float bandwidth) | |
| Butter (UnitGenerator &in, ButterworthType type, float cutoff) | |
| Butter (UnitGenerator &in, ButterworthType type, UnitGenerator &cutoff) | |
| Butter (UnitGenerator &in, ButterworthType type, float center, float bandwidth) | |
| Butter (UnitGenerator &in, ButterworthType type, UnitGenerator ¢er, UnitGenerator &bandwidth) | |
| void | setupCoeffs () |
Protected Attributes | |
| int | mFilterType |
| Butter::Butter | ( | ) |
Butterworth IIR (2nd order recursive) filter. This operates upon a buffer of frames of amplitude samples by applying the following equation y(n) = a0*x(n) + a1*x(n-1) + a2*x(n-2) - b1*y(n-1) - b2*y(n-2) where x is an amplitude sample. It has constructors that can calculate the coefficients from a given cutoff frequency.
| Butter::Butter | ( | ButterworthType | type, | |
| float | cutoff | |||
| ) |
| Butter::Butter | ( | ButterworthType | type, | |
| float | center, | |||
| float | bandwidth | |||
| ) |
| Butter::Butter | ( | UnitGenerator & | in, | |
| ButterworthType | type, | |||
| float | cutoff | |||
| ) |
| Butter::Butter | ( | UnitGenerator & | in, | |
| ButterworthType | type, | |||
| UnitGenerator & | cutoff | |||
| ) |
| Butter::Butter | ( | UnitGenerator & | in, | |
| ButterworthType | type, | |||
| float | center, | |||
| float | bandwidth | |||
| ) |
| Butter::Butter | ( | UnitGenerator & | in, | |
| ButterworthType | type, | |||
| UnitGenerator & | center, | |||
| UnitGenerator & | bandwidth | |||
| ) |
| void Butter::setupCoeffs | ( | ) | [virtual] |
Reimplemented from csl::Filter.
References BW_BAND_PASS, BW_BAND_STOP, BW_HIGH_PASS, BW_LOW_PASS, CSL_FILTER_AMOUNT, CSL_FILTER_FREQUENCY, CSL_PI, CSL_SQRT_TWO, csl::Filter::mACoeff, csl::Filter::mBCoeff, mFilterType, csl::UnitGenerator::mFrameRate, and csl::Controllable::mInputs.
Referenced by Butter().
int csl::Butter::mFilterType [protected] |
Referenced by Butter(), and setupCoeffs().
1.5.8