csl::Butter Class Reference

#include <Filters.h>

Inheritance diagram for csl::Butter:

csl::Filter csl::Effect csl::Scalable csl::FrequencyAmount csl::Controllable List of all members.

Detailed Description

Butterworth IIR (2nd order recursive) filter. This operates upon a buffer of frames of amplitude samples by applying the following equation y(n) = a0*x(n) + a1*x(n-1) + a2*x(n-2) - b1*y(n-1) - b2*y(n-2) where x is an amplitude sample. It has constructors that can calculate the coefficients from a given cutoff frequency.


Public Member Functions

 Butter ()
 Butter (int type, float cutoff)
 Butter (int type, float center, float bandwidth)
 Butter (UnitGenerator &in, ButterworthType type, float cutoff)
 Butter (UnitGenerator &in, ButterworthType type, UnitGenerator &cutoff)
 Butter (UnitGenerator &in, ButterworthType type, float center, float bandwidth)
 Butter (UnitGenerator &in, ButterworthType type, UnitGenerator &center, UnitGenerator &bandwidth)
void setupCoeffs ()

Protected Attributes

int mFilterType


Constructor & Destructor Documentation

Butter::Butter  ) 
 

Butterworth IIR (2nd order recursive) filter. This operates upon a buffer of frames of amplitude samples by applying the following equation y(n) = a0*x(n) + a1*x(n-1) + a2*x(n-2) - b1*y(n-1) - b2*y(n-2) where x is an amplitude sample. It has constructors that can calculate the coefficients from a given cutoff frequency.

Butter::Butter int  type,
float  cutoff
 

Butter::Butter int  type,
float  center,
float  bandwidth
 

Butter::Butter UnitGenerator in,
ButterworthType  type,
float  cutoff
 

Butter::Butter UnitGenerator in,
ButterworthType  type,
UnitGenerator cutoff
 

Butter::Butter UnitGenerator in,
ButterworthType  type,
float  center,
float  bandwidth
 

Butter::Butter UnitGenerator in,
ButterworthType  type,
UnitGenerator center,
UnitGenerator bandwidth
 


Member Function Documentation

void Butter::setupCoeffs  )  [virtual]
 

Reimplemented from csl::Filter.


Member Data Documentation

int csl::Butter::mFilterType [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Apr 6 20:18:19 2007 for CSL by  doxygen 1.4.5-20051010