#include <OnePole.h>
Inherits Marsyas::MarSystem.
Private Attributes | |
| mrs_real | alpha_ |
| Cache for the alpha value. | |
| mrs_real | gain_ |
| Cache for the gain value. | |
| realvec | previousOutputSamples_ |
| Internal memory for the last samples of the previous observed slice. | |
OnePole implements the digital filter described by equation
This filter has one pole at
. If
, the filter has a low-pass characteristic, the closer to 1 the smaller the pass band. If
, it has a high-pass characteristic, the closer to -1, the smaller the pass band.
Note that the coefficient of
is set to
to have unity gain for the DC component (both in the low pass and high pass case) as a sort of normalization.
Controls:
parameter in the filter equation.
Definition at line 50 of file OnePole.h.
1.5.6