|
arduino-audio-tools
|
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>
Public Member Functions | |
| template<size_t B> | |
| FIR (const T(&b)[B], const T factor=1.0) | |
| T | process (T value) override |
| Processes the input value and returns the filtered output value. | |
| void | reset () override |
| template<size_t B> | |
| void | setValues (const T(&b)[B]) |
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.
| T | sample type (float, double, or integer types with a scaling factor) |
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 >.