Second-order peaking EQ filter (BiQuad DF2). Boosts or cuts a band around the center frequency by the specified gain (in dB) while leaving the other frequencies unchanged. Commonly used in tone controls and equalization (e.g. the mid control of a guitar amplifier). Coefficients are derived from the Audio EQ Cookbook.
More...
#include <Filter.h>
template<typename T = float>
class audio_tools::PeakFilter< T >
Second-order peaking EQ filter (BiQuad DF2). Boosts or cuts a band around the center frequency by the specified gain (in dB) while leaving the other frequencies unchanged. Commonly used in tone controls and equalization (e.g. the mid control of a guitar amplifier). Coefficients are derived from the Audio EQ Cookbook.
- Parameters
-
| frequency | center frequency in Hz |
| sampleRate | sample rate in Hz |
| q | quality factor: higher values give a narrower band |
| gain | boost/cut in dB (positive = boost, negative = cut) |
- Author
- pschatzmann
- Copyright
- GNU General Public License v3.0
- Template Parameters
-
| T | sample type (use float or double) |
◆ PeakFilter() [1/2]
template<typename T = float>
◆ PeakFilter() [2/2]
template<typename T = float>
◆ begin()
template<typename T = float>
◆ process()
template<typename T = float>
|
|
inlineoverridevirtualinherited |
Processes the input value and returns the filtered output value.
Implements Filter< T >.
◆ reset()
template<typename T = float>
|
|
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
template<typename T = float>
◆ a_2
template<typename T = float>
◆ b_0
template<typename T = float>
◆ b_1
template<typename T = float>
◆ b_2
template<typename T = float>
◆ w_0
template<typename T = float>
◆ w_1
template<typename T = float>
The documentation for this class was generated from the following file:
- src/AudioTools/CoreAudio/AudioFilter/Filter.h