OpenWareLaboratory
FilterStage Class Reference
Collaboration diagram for FilterStage:

Public Member Functions

 FilterStage (FloatArray co, FloatArray st)
 
FloatArray getCoefficients ()
 
FloatArray getState ()
 
void setBandPass (float fc, float q)
 
void setCoefficients (FloatArray newCoefficients)
 
void setHighPass (float fc, float q)
 
void setHighShelf (float fc, float gain)
 
void setLowPass (float fc, float q)
 
void setLowShelf (float fc, float gain)
 
void setNotch (float fc, float q)
 
void setPeak (float fc, float q, float gain)
 

Static Public Member Functions

static void setBandPass (float *coefficients, float fc, float q)
 
static void setHighPass (float *coefficients, float fc, float q)
 
static void setHighShelf (float *coefficients, float fc, float gain)
 
static void setLowPass (float *coefficients, float fc, float q)
 
static void setLowShelf (float *coefficients, float fc, float gain)
 
static void setNotch (float *coefficients, float fc, float q)
 
static void setPeak (float *coefficients, float fc, float q, float gain)
 

Data Fields

FloatArray coefficients
 
FloatArray state
 

Static Public Attributes

static const float BESSEL_Q = 1/sqrtf(3)
 
static const float BUTTERWORTH_Q = 1/sqrtf(2)
 
static const float SALLEN_KEY_Q = 0.5f
 

Detailed Description

Definition at line 6 of file BiquadFilter.h.

Constructor & Destructor Documentation

FilterStage::FilterStage ( FloatArray  co,
FloatArray  st 
)
inline

Definition at line 14 of file BiquadFilter.h.

Member Function Documentation

FloatArray FilterStage::getCoefficients ( )
inline
FloatArray FilterStage::getState ( )
inline

Definition at line 49 of file BiquadFilter.h.

References state.

void FilterStage::setBandPass ( float  fc,
float  q 
)
inline

Definition at line 24 of file BiquadFilter.h.

References coefficients.

Referenced by BiquadFilter::setBandPass().

static void FilterStage::setBandPass ( float *  coefficients,
float  fc,
float  q 
)
inlinestatic

Definition at line 75 of file BiquadFilter.h.

References M_PI.

void FilterStage::setCoefficients ( FloatArray  newCoefficients)
inline
void FilterStage::setHighPass ( float  fc,
float  q 
)
inline
static void FilterStage::setHighPass ( float *  coefficients,
float  fc,
float  q 
)
inlinestatic

Definition at line 64 of file BiquadFilter.h.

References M_PI.

void FilterStage::setHighShelf ( float  fc,
float  gain 
)
inline

Definition at line 38 of file BiquadFilter.h.

References coefficients.

Referenced by BiquadFilter::setHighShelf().

static void FilterStage::setHighShelf ( float *  coefficients,
float  fc,
float  gain 
)
inlinestatic

Definition at line 142 of file BiquadFilter.h.

References M_PI, and M_SQRT2.

void FilterStage::setLowPass ( float  fc,
float  q 
)
inline

Definition at line 16 of file BiquadFilter.h.

References coefficients.

Referenced by BiquadFilter::setLowPass(), and ZeroCrossingPitchDetector::setLowPassCutoff().

static void FilterStage::setLowPass ( float *  coefficients,
float  fc,
float  q 
)
inlinestatic

Definition at line 53 of file BiquadFilter.h.

References M_PI.

void FilterStage::setLowShelf ( float  fc,
float  gain 
)
inline

Definition at line 35 of file BiquadFilter.h.

References coefficients.

Referenced by BiquadFilter::setLowShelf().

static void FilterStage::setLowShelf ( float *  coefficients,
float  fc,
float  gain 
)
inlinestatic

Definition at line 120 of file BiquadFilter.h.

References M_PI, and M_SQRT2.

void FilterStage::setNotch ( float  fc,
float  q 
)
inline

Definition at line 28 of file BiquadFilter.h.

References coefficients.

Referenced by BiquadFilter::setNotch().

static void FilterStage::setNotch ( float *  coefficients,
float  fc,
float  q 
)
inlinestatic

Definition at line 86 of file BiquadFilter.h.

References M_PI.

void FilterStage::setPeak ( float  fc,
float  q,
float  gain 
)
inline

Definition at line 32 of file BiquadFilter.h.

References coefficients.

Referenced by BiquadFilter::setPeak().

static void FilterStage::setPeak ( float *  coefficients,
float  fc,
float  q,
float  gain 
)
inlinestatic

Definition at line 97 of file BiquadFilter.h.

References M_PI.

Field Documentation

const float FilterStage::BESSEL_Q = 1/sqrtf(3)
static

Definition at line 10 of file BiquadFilter.h.

const float FilterStage::BUTTERWORTH_Q = 1/sqrtf(2)
static
const float FilterStage::SALLEN_KEY_Q = 0.5f
static

Definition at line 11 of file BiquadFilter.h.

FloatArray FilterStage::state

Definition at line 9 of file BiquadFilter.h.

Referenced by getState().


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