OpenWareLaboratory
BiquadFilter Class Reference
Inheritance diagram for BiquadFilter:

Public Member Functions

 BiquadFilter ()
 
 BiquadFilter (float *coefs, float *ste, int sgs)
 
FloatArray getCoefficients ()
 
FilterStage getFilterStage (int stage)
 
int getStages ()
 
FloatArray getState ()
 
void process (float *input, float *output, int size)
 
void process (float *buf, int size)
 
void process (FloatArray in)
 
void process (FloatArray in, FloatArray out)
 
float process (float input)
 
void setBandPass (float fc, float q)
 
void setCoefficients (FloatArray newCoefficients)
 
void setCoefficientsPointer (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 BiquadFiltercreate (int stages)
 
static void destroy (BiquadFilter *filter)
 
static int getCoefficientsPerStage ()
 

Protected Member Functions

void copyCoefficients ()
 
void init ()
 

Protected Attributes

float * coefficients
 
int stages
 
float * state
 

Detailed Description

Definition at line 173 of file BiquadFilter.h.

Constructor & Destructor Documentation

BiquadFilter::BiquadFilter ( )
inline

Definition at line 212 of file BiquadFilter.h.

Referenced by create().

BiquadFilter::BiquadFilter ( float *  coefs,
float *  ste,
int  sgs 
)
inline

Definition at line 215 of file BiquadFilter.h.

References init().

Member Function Documentation

void BiquadFilter::copyCoefficients ( )
inlineprotected
static BiquadFilter* BiquadFilter::create ( int  stages)
inlinestatic
static void BiquadFilter::destroy ( BiquadFilter filter)
inlinestatic
FloatArray BiquadFilter::getCoefficients ( )
inline

Definition at line 228 of file BiquadFilter.h.

References BIQUAD_COEFFICIENTS_PER_STAGE, coefficients, and stages.

static int BiquadFilter::getCoefficientsPerStage ( )
inlinestatic

Definition at line 224 of file BiquadFilter.h.

References BIQUAD_COEFFICIENTS_PER_STAGE.

int BiquadFilter::getStages ( )
inline

Definition at line 220 of file BiquadFilter.h.

References stages.

FloatArray BiquadFilter::getState ( )
inline

Definition at line 232 of file BiquadFilter.h.

References BIQUAD_STATE_VARIABLES_PER_STAGE, stages, and state.

Referenced by StereoBiquadFilter::destroy().

void BiquadFilter::init ( )
inlineprotected

Definition at line 201 of file BiquadFilter.h.

References BIQUAD_STATE_VARIABLES_PER_STAGE, coefficients, stages, and state.

Referenced by BiquadFilter(), and setCoefficientsPointer().

void BiquadFilter::process ( float *  input,
float *  output,
int  size 
)
inline
void BiquadFilter::process ( float *  buf,
int  size 
)
inline

Definition at line 270 of file BiquadFilter.h.

References process().

void BiquadFilter::process ( FloatArray  in)
inline

Definition at line 274 of file BiquadFilter.h.

References FloatArray::getSize(), and process().

void BiquadFilter::process ( FloatArray  in,
FloatArray  out 
)
inline

Definition at line 278 of file BiquadFilter.h.

References ASSERT, FloatArray::getSize(), and process().

float BiquadFilter::process ( float  input)
inline

Definition at line 284 of file BiquadFilter.h.

References process().

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

Definition at line 300 of file BiquadFilter.h.

References coefficients, copyCoefficients(), and FilterStage::setBandPass().

void BiquadFilter::setCoefficients ( FloatArray  newCoefficients)
inline
void BiquadFilter::setCoefficientsPointer ( FloatArray  newCoefficients)
inline
void BiquadFilter::setHighPass ( float  fc,
float  q 
)
inline

Definition at line 295 of file BiquadFilter.h.

References coefficients, copyCoefficients(), and FilterStage::setHighPass().

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

Definition at line 316 of file BiquadFilter.h.

References coefficients, copyCoefficients(), and FilterStage::setHighShelf().

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

Definition at line 290 of file BiquadFilter.h.

References coefficients, copyCoefficients(), and FilterStage::setLowPass().

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

Definition at line 312 of file BiquadFilter.h.

References coefficients, copyCoefficients(), and FilterStage::setLowShelf().

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

Definition at line 304 of file BiquadFilter.h.

References coefficients, copyCoefficients(), and FilterStage::setNotch().

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

Definition at line 308 of file BiquadFilter.h.

References coefficients, copyCoefficients(), and FilterStage::setPeak().

Field Documentation

int BiquadFilter::stages
protected
float* BiquadFilter::state
protected

Definition at line 181 of file BiquadFilter.h.

Referenced by destroy(), getFilterStage(), getState(), init(), and process().


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