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

Biquad DF2 High Pass 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 HighPassFilter< T >:
BiQuadDF2< T > Filter< T >

Public Member Functions

 HighPassFilter ()=default
 
 HighPassFilter (float frequency, float sampleRate, float q=0.7071)
 
void begin (float frequency, float sampleRate, float q=0.7071)
 
T process (T value)
 

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::HighPassFilter< T >

Biquad DF2 High Pass 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
pschatzmann
Template Parameters
T

Constructor & Destructor Documentation

◆ HighPassFilter() [1/2]

template<typename T >
HighPassFilter ( )
default

◆ HighPassFilter() [2/2]

template<typename T >
HighPassFilter ( float  frequency,
float  sampleRate,
float  q = 0.7071 
)
inline

Member Function Documentation

◆ begin()

template<typename T >
void begin ( float  frequency,
float  sampleRate,
float  q = 0.7071 
)
inline

◆ process()

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

Implements Filter< T >.

Member Data Documentation

◆ a_1

template<typename T >
T a_1 = 0
protectedinherited

◆ a_2

template<typename T >
T a_2 = 0
protectedinherited

◆ b_0

template<typename T >
T b_0 = 0
protectedinherited

◆ b_1

template<typename T >
T b_1 = 0
protectedinherited

◆ b_2

template<typename T >
T b_2 = 0
protectedinherited

◆ w_0

template<typename T >
T w_0 = 0
protectedinherited

◆ w_1

template<typename T >
T w_1 = 0
protectedinherited

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