|
arduino-audio-tools
|
Abstract filter interface definition. Subclasses implement process() to transform audio samples one at a time. Use reset() to clear internal state (e.g. delay lines) without changing the filter coefficients. More...
#include <Filter.h>
Public Member Functions | |
| Filter ()=default | |
| Filter (Filter const &)=delete | |
| virtual | ~Filter ()=default |
| Filter & | operator= (Filter const &)=delete |
| virtual T | process (T in)=0 |
| Processes the input value and returns the filtered output value. | |
| virtual void | reset () |
Abstract filter interface definition. Subclasses implement process() to transform audio samples one at a time. Use reset() to clear internal state (e.g. delay lines) without changing the filter coefficients.
| T | sample type (e.g. int16_t, float, double) |
Processes the input value and returns the filtered output value.
Implemented in EqualizerNBands< SampleT, AccT, NUM_TAPS, NUM_BANDS >::EQFIRFilter, NoFilter< T >, MedianFilter< T >, FIR< T >, IIR< T >, BiQuadDF1< T >, BiQuadDF2< T >, SOSFilter< T, N >, and FilterChain< T, N >.
Clears the internal state (delay lines) without changing the coefficients. Call after reconfiguring filter parameters via begin() to avoid transients from stale state.
Reimplemented in FIR< T >, IIR< T >, BiQuadDF1< T >, BiQuadDF2< T >, BiQuadDF2< float >, SOSFilter< T, N >, and FilterChain< T, N >.