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

Biquad DF2 Filter. When dealing with high-order IIR filters, they can get unstable. To prevent this, BiQuadratic filters (second order) are used. Converted from https://github.com/tttapa/Filters/blob/master/src/BiQuad.h Use float or double (and not a integer type) as type parameter. More...

#include <Filter.h>

Inheritance diagram for BiQuadDF2< T >:
Filter< T > LowPassFilter< float > BandPassFilter< T > HighPassFilter< T > HighShelfFilter< T > LowPassFilter< T > LowShelfFilter< T > NotchFilter< T >

Public Member Functions

 BiQuadDF2 (const T(&b)[3], const T(&a)[2])
 
 BiQuadDF2 (const T(&b)[3], const T(&a)[2], T gain)
 
 BiQuadDF2 (const T(&b)[3], const T(&a)[3])
 
 BiQuadDF2 (const T(&b)[3], const T(&a)[3], T gain)
 
T process (T value)
 

Protected Member Functions

 BiQuadDF2 ()=default
 

Protected Attributes

T a_1 = 0
 
T a_2 = 0
 
T b_0 = 0
 
T b_1 = 0
 
T b_2 = 0
 
T w_0 = 0
 
T w_1 = 0
 

Detailed Description

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

Biquad DF2 Filter. When dealing with high-order IIR filters, they can get unstable. To prevent this, BiQuadratic filters (second order) are used. Converted from https://github.com/tttapa/Filters/blob/master/src/BiQuad.h Use float or double (and not a integer type) as type parameter.

Author
Pieter P tttapa / pschatzmann
Template Parameters
T

Constructor & Destructor Documentation

◆ BiQuadDF2() [1/5]

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

◆ BiQuadDF2() [2/5]

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

◆ BiQuadDF2() [3/5]

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

◆ BiQuadDF2() [4/5]

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

◆ BiQuadDF2() [5/5]

template<typename T >
BiQuadDF2 ( )
protecteddefault

Member Function Documentation

◆ process()

template<typename T >
T process ( T  value)
inlinevirtual

Implements Filter< T >.

Member Data Documentation

◆ a_1

template<typename T >
T a_1 = 0
protected

◆ a_2

template<typename T >
T a_2 = 0
protected

◆ b_0

template<typename T >
T b_0 = 0
protected

◆ b_1

template<typename T >
T b_1 = 0
protected

◆ b_2

template<typename T >
T b_2 = 0
protected

◆ w_0

template<typename T >
T w_0 = 0
protected

◆ w_1

template<typename T >
T w_1 = 0
protected

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