|
OSSIA
Open Scenario System for Interactive Application
|
First-order low-pass. The building block for everything below. More...
First-order low-pass. The building block for everything below.
The coefficient is passed per-sample instead of being stored, so that the same filter can be driven by a varying dt or a varying cutoff without recomputing any internal state.
Public Types | |
| using | value_type = T |
Public Member Functions | |
| OSSIA_INLINE void | reset () noexcept |
| Forget the history: the next sample restarts the filter. | |
| OSSIA_INLINE void | reset (T x) noexcept |
Restart the filter as if x had just been output. | |
| OSSIA_INLINE void | assign_parameters (const one_pole_filter &) noexcept |
| No runtime parameters: the coefficient is passed per-sample. | |
| OSSIA_INLINE T | operator() (T x, T alpha) noexcept |
|
inlinenodiscardnoexcept |
| x | Input sample. |
| alpha | Smoothing factor in [0, 1], e.g. from lowpass_alpha(). |