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

Second-order IIR filter in Direct Form I. Maintains separate input and output histories (x and y delay lines). Requires more memory than DF2 but is less susceptible to quantization issues with fixed-point arithmetic. More...

#include <Filter.h>

Inheritance diagram for BiQuadDF1< T >:
Filter< T >

Public Member Functions

 BiQuadDF1 (const T(&b)[3], const T(&a)[2])
 
 BiQuadDF1 (const T(&b)[3], const T(&a)[2], T gain)
 
 BiQuadDF1 (const T(&b)[3], const T(&a)[3])
 
 BiQuadDF1 (const T(&b)[3], const T(&a)[3], T gain)
 
T process (T value) override
 Processes the input value and returns the filtered output value.
 
void reset () override
 

Detailed Description

template<typename T>
class audio_tools::BiQuadDF1< T >

Second-order IIR filter in Direct Form I. Maintains separate input and output histories (x and y delay lines). Requires more memory than DF2 but is less susceptible to quantization issues with fixed-point arithmetic.

Author
Pieter P tttapa / pschatzmann
Template Parameters
Tsample type (use float or double, not integer types)

Constructor & Destructor Documentation

◆ BiQuadDF1() [1/4]

template<typename T >
BiQuadDF1 ( const T(&)  b[3],
const T(&)  a[3] 
)
inline

◆ BiQuadDF1() [2/4]

template<typename T >
BiQuadDF1 ( const T(&)  b[3],
const T(&)  a[2] 
)
inline

◆ BiQuadDF1() [3/4]

template<typename T >
BiQuadDF1 ( const T(&)  b[3],
const T(&)  a[2],
T  gain 
)
inline

◆ BiQuadDF1() [4/4]

template<typename T >
BiQuadDF1 ( const T(&)  b[3],
const T(&)  a[3],
T  gain 
)
inline

Member Function Documentation

◆ process()

template<typename T >
T process ( T  in)
inlineoverridevirtual

Processes the input value and returns the filtered output value.

Implements Filter< T >.

◆ reset()

template<typename T >
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: