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>
|
| | 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 |
| |
template<typename T>
class audio_tools::BiQuadDF2< T >
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.
- Author
- Pieter P tttapa / pschatzmann
- Copyright
- GNU General Public License v3.0
- Template Parameters
-
| T | sample type (use float or double, not integer types) |
◆ BiQuadDF2() [1/5]
template<typename T >
| BiQuadDF2 |
( |
const T(&) |
b[3], |
|
|
const T(&) |
a[3] |
|
) |
| |
|
inline |
◆ BiQuadDF2() [2/5]
template<typename T >
| BiQuadDF2 |
( |
const T(&) |
b[3], |
|
|
const T(&) |
a[2] |
|
) |
| |
|
inline |
◆ BiQuadDF2() [3/5]
template<typename T >
| BiQuadDF2 |
( |
const T(&) |
b[3], |
|
|
const T(&) |
a[2], |
|
|
T |
gain |
|
) |
| |
|
inline |
◆ BiQuadDF2() [4/5]
template<typename T >
| BiQuadDF2 |
( |
const T(&) |
b[3], |
|
|
const T(&) |
a[3], |
|
|
T |
gain |
|
) |
| |
|
inline |
◆ BiQuadDF2() [5/5]
◆ process()
Processes the input value and returns the filtered output value.
Implements Filter< T >.
◆ reset()
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 >.
◆ a_1
◆ a_2
◆ b_0
◆ b_1
◆ b_2
◆ w_0
◆ w_1
The documentation for this class was generated from the following file:
- src/AudioTools/CoreAudio/AudioFilter/Filter.h