|
arduino-audio-tools
|
Second-order IIR filter in Direct Form II. Uses a single delay line, requiring less memory than DF1. This is the base class for the ready-to-use filter types (LowPassFilter, HighPassFilter, BandPassFilter, NotchFilter, LowShelfFilter, HighShelfFilter) which compute their coefficients from frequency, sample rate and Q/gain parameters. More...
#include <Filter.h>
Public Member Functions | |
| BiQuadDF2 (const T(&b)[3], const T(&a)[2]) | |
| BiQuadDF2 (const T(&b)[3], const T(&a)[2], T gain) | |
| BiQuadDF2 (const T(&b)[3], const T(&a)[3]) | |
| BiQuadDF2 (const T(&b)[3], const T(&a)[3], T gain) | |
| T | process (T value) override |
| Processes the input value and returns the filtered output value. | |
| void | reset () override |
Protected Member Functions | |
| BiQuadDF2 ()=default | |
Protected Attributes | |
| T | a_1 = 0 |
| T | a_2 = 0 |
| T | b_0 = 0 |
| T | b_1 = 0 |
| T | b_2 = 0 |
| T | w_0 = 0 |
| T | w_1 = 0 |
Second-order IIR filter in Direct Form II. Uses a single delay line, requiring less memory than DF1. This is the base class for the ready-to-use filter types (LowPassFilter, HighPassFilter, BandPassFilter, NotchFilter, LowShelfFilter, HighShelfFilter) which compute their coefficients from frequency, sample rate and Q/gain parameters.
| T | sample type (use float or double, not integer types) |
Processes the input value and returns the filtered output value.
Implements Filter< T >.
Clears the internal state (delay lines) without changing the coefficients. Call after reconfiguring filter parameters via begin() to avoid transients from stale state.
Reimplemented from Filter< T >.