Finite Impulse Response (FIR) filter. Performs convolution of the input signal with a set of feedforward coefficients b[]. For integer types, an optional scaling factor is applied to preserve precision. You can use https://www.arc.id.au/FilterDesign.html to design the coefficients.
More...
#include <Filter.h>
template<typename T = float>
class audio_tools::FIR< T >
Finite Impulse Response (FIR) filter. Performs convolution of the input signal with a set of feedforward coefficients b[]. For integer types, an optional scaling factor is applied to preserve precision. You can use https://www.arc.id.au/FilterDesign.html to design the coefficients.
- Author
- Pieter P tttapa / pschatzmann
- Copyright
- GNU General Public License v3.0
- Template Parameters
-
| T | sample type (float, double, or integer types with a scaling factor) |
◆ factor()
template<typename T = float>
◆ needs_divide()
template<typename T = float>
| needs_divide |
( |
factor ! |
= T(1) | ) |
|
|
inline |
◆ process()
template<typename T = float>
Processes the input value and returns the filtered output value.
Implements Filter< T >.
◆ reset()
template<typename T = float>
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 >.
◆ setValues()
template<typename T = float>
| void setValues |
( |
const T(&) |
b[B] | ) |
|
|
inline |
◆ __pad0__
template<typename T = float>
The documentation for this class was generated from the following file:
- src/AudioTools/CoreAudio/AudioFilter/Filter.h