One-pole smoothing filter. More...
#include <Filter.h>
Inherits Ts.
Public Member Functions | |
OnePole (Tp freq, const Tv &stored=0) | |
const Tp & | freq () const |
Get cutoff frequency. | |
void | operator= (const Tv &val) |
Stores input value for operator() | |
void | operator*= (const Tv &val) |
Multiplies stored value by value. | |
void | freq (Tp val) |
Set cutoff frequency (-3 dB bandwidth of pole) | |
void | smooth (Tp val) |
Set smoothing coefficient directly. | |
void | zero () |
Zero internal delay. | |
const Tv & | operator() () |
Returns filtered output using stored value. | |
const Tv & | operator() (const Tv &input) |
Returns filtered output from input value. | |
const Tv & | last () const |
Returns last output. | |
const Tv & | stored () const |
Returns stored value. | |
Tv & | stored () |
Returns stored value. | |
bool | zeroing (Tv eps=0.0001) const |
Returns whether the filter is outputting zeros. |
One-pole smoothing filter.
Tv | value (sample) type |
Tp | parameter type |
Ts | sync type |
OnePole | ( | Tp | freq, |
const Tv & | stored = 0 |
||
) |
[in] | freq | Smoothing frequency |
[in] | stored | Initial stored value |