Second-order high-pass filter (BiQuad DF2). Attenuates frequencies below the cutoff frequency. Coefficients are derived from the Audio EQ Cookbook.
More...
#include <Filter.h>
|
| | HighPassFilter ()=default |
| |
| | HighPassFilter (float frequency, float sampleRate, float q=0.7071f) |
| |
| void | begin (float frequency, float sampleRate, float q=0.7071f) |
| |
| T | process (T value) override |
| | Processes the input value and returns the filtered output value.
|
| |
| void | reset () override |
| |
template<typename T>
class audio_tools::HighPassFilter< T >
Second-order high-pass filter (BiQuad DF2). Attenuates frequencies below the cutoff frequency. Coefficients are derived from the Audio EQ Cookbook.
- Parameters
-
| frequency | cutoff frequency in Hz |
| sampleRate | sample rate in Hz |
| q | quality factor (default 0.7071 = Butterworth) |
- Author
- pschatzmann
- Copyright
- GNU General Public License v3.0
- Template Parameters
-
| T | sample type (use float or double) |
◆ HighPassFilter() [1/2]
◆ HighPassFilter() [2/2]
template<typename T >
| HighPassFilter |
( |
float |
frequency, |
|
|
float |
sampleRate, |
|
|
float |
q = 0.7071f |
|
) |
| |
|
inline |
◆ begin()
template<typename T >
| void begin |
( |
float |
frequency, |
|
|
float |
sampleRate, |
|
|
float |
q = 0.7071f |
|
) |
| |
|
inline |
◆ process()
template<typename T >
|
|
inlineoverridevirtualinherited |
Processes the input value and returns the filtered output value.
Implements Filter< T >.
◆ reset()
template<typename T >
|
|
inlineoverridevirtualinherited |
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