Public Methods |
| | MJ_FilterIIR2 () |
|
| ~MJ_FilterIIR2 () |
| | Empty destructor.
|
| complex<float> | response (complex< float > omega) |
|
| void | putSample (TElem s) |
| TElem | getSample () const |
| TElem | putGetSample (TElem s) |
| TElem | putGetSampleOther (MJ_FilterIIR2 *f, TElem s) |
|
void | resetMemory () |
| | Clear internal buffer.
|
|
| void | flatResponse () |
| void | designHighShelve1 (TElem centerRad, TElem gainDb, TElem slope=1.0) |
| void | designHighShelve2 (TElem frequencyHz, TElem sampleRate, TElem gainDb, TElem slope=1.0) |
| void | designLowShelve1 (TElem centerRad, TElem gainDb, TElem slope=1.0) |
| void | designLowShelve2 (TElem frequencyHz, TElem sampleRate, TElem gainDb, TElem slope=1.0) |
| void | designParametric1 (TElem boostAbs, TElem centerRad, TElem bandWidthRad) |
| void | designParametricB1 (TElem K, TElem F, TElem omega, TElem bw) |
| void | designParametricB2 (TElem hz, TElem sr, TElem gainDb, TElem bw) |
| void | designParametricC1 (TElem K, TElem F, TElem omega, TElem bw) |
| void | designParametricC2 (TElem hz, TElem sr, TElem gainDb, TElem bw) |
|
void | designLowPass1 (TElem omega, TElem Q) |
| | Design a low-pass filter.
|
| void | designLowPass2 (TElem hz, TElem sr, TElem Q) |
| | Design a low-pass filter. More...
|
|
void | designHighPass1 (TElem omega, TElem Q) |
| | Design a high-pass filter.
|
| void | designHighPass2 (TElem hz, TElem sr, TElem Q) |
| | Design a high-pass filter. More...
|
| void | designBandPass1 (TElem omega, TElem Q) |
| | Design a band-pass filter. More...
|
| void | designBandPass2 (TElem hz, TElem sr, TElem Q) |
| | Design a band-pass filter. More...
|
| void | designBandPassB1 (TElem omega, TElem bw) |
| | Design a band-pass filter. More...
|
| void | designBandPassB2 (TElem hz, TElem sr, TElem bw) |
| | Design a band-pass filter. More...
|
|
void | copyCoefficients (const MJ_FilterIIR2 &iir) |
| | Copy filter coefficients from the given filter.
|
|
void | mulGain (TElem scale) |
| | Multiply b-coefficients by factor scale.
|
|
|
TElem | b0 () const |
| | Filter coefficient b0.
|
|
TElem | b1 () const |
| | Filter coefficient b1.
|
|
TElem | b2 () const |
| | Filter coefficient b2.
|
|
TElem* | bptr () |
| | Returns pointer to the b-coefficient array (b0-b2).
|
|
TElem | a1 () const |
| | Filter coefficient a1.
|
|
TElem | a2 () const |
| | Filter coefficient a2.
|
|
TElem* | aptr () |
| | Returns pointer to the a-coefficient array (a1-a2).
|
The filter coefficients are normalized like in Matlab - the coefficient a0 is assumed to be 1. As such it not stored or used in calculation.