#include <Filter.h>
Public Methods | |
| FirFilter () | |
| void | filter (float &sample) |
| digital filter. More... | |
| int | order () const |
| return the maximum delay, or the order of the filter. More... | |
| void | invert () |
| convert between lowpass to highpass (and viceversa). More... | |
| void | setSimpleLowPass () |
| make this filter a simple lowpass filter. More... | |
| void | setSimpleHighPass () |
| make this filter a simple highpass filter. More... | |
| void | setSimpleBandReject () |
| make this filter a simple bandreject filter. More... | |
| void | setSimpleBandPass () |
| make this filter a simple bandpass filter. More... | |
| void | setCutoff (float fc, float sampRate) |
| make this filter low pass, with fc cuttoff frequency. More... | |
this type of filter is fast but less than ideal (i.e. it is finite). this is a 2nd order filter (can look behind by 2 samples).
Definition at line 32 of file Filter.h.
|
|
|
|
|
digital filter.
Example (how to use this filter on a buffer of float-type samples)/code for (int x = 0; x < buf.size(); ++x) { f.filter( buf[x] ); } /endcode |
|
|
return the maximum delay, or the order of the filter.
Definition at line 66 of file Filter.h. Referenced by setCutoff().
|
|
|
convert between lowpass to highpass (and viceversa).
|
|
|
make this filter a simple lowpass filter. NOTE: unflexible but fast, useful as a tone control |
|
|
make this filter a simple highpass filter. NOTE: unflexible but fast, useful as a tone control |
|
|
make this filter a simple bandreject filter. NOTE: unflexible but fast, useful as a tone control |
|
|
make this filter a simple bandpass filter. NOTE: unflexible but fast, useful as a tone control |
|
|
make this filter low pass, with fc cuttoff frequency.
|
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001