arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | List of all members
FilterChain< T, N > Class Template Reference

A cascade of N arbitrary filters applied in series. Each sample is passed through all filters in order. The caller owns the filter pointers and must ensure they outlive the chain. More...

#include <Filter.h>

Inheritance diagram for FilterChain< T, N >:
Filter< T >

Public Member Functions

 FilterChain (Filter< T > *(&&filters)[N])
 
T process (T value) override
 Processes the input value and returns the filtered output value.
 
void reset () override
 

Detailed Description

template<typename T, size_t N>
class audio_tools::FilterChain< T, N >

A cascade of N arbitrary filters applied in series. Each sample is passed through all filters in order. The caller owns the filter pointers and must ensure they outlive the chain.

Template Parameters
Tsample type
Nnumber of filters in the chain

Constructor & Destructor Documentation

◆ FilterChain()

template<typename T , size_t N>
FilterChain ( Filter< T > *(&&)  filters[N])
inline

Member Function Documentation

◆ process()

template<typename T , size_t N>
T process ( T  in)
inlineoverridevirtual

Processes the input value and returns the filtered output value.

Implements Filter< T >.

◆ reset()

template<typename T , size_t N>
void reset ( )
inlineoverridevirtual

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 >.


The documentation for this class was generated from the following file: