csl::FIR Class Reference

#include <FIR.h>

Inheritance diagram for csl::FIR:

csl::Effect csl::UnitGenerator csl::Controllable csl::Model

List of all members.

Public Member Functions

 FIR (UnitGenerator &in, unsigned numTaps=2, float *tapDelay=NULL)
 FIR (FilterSpecification &fs)
 give it a filter specification object
 FIR (UnitGenerator &in, char *fileName)
 FIR (UnitGenerator &in, FilterSpecification &fs)
 ~FIR ()
void setTaps (unsigned numTaps, float *tapDelays)
void readTaps (char *fileName)
void nextBuffer (Buffer &outputBuffer, unsigned outBufNum) throw (CException)

Protected Member Functions

void resetDLine ()
void remez (double h[], int numtaps, int numband, double bands[], double des[], double weight[], int type)

Protected Attributes

FilterSpecificationmFilterSpec
unsigned mOffset
samplemDLine


Detailed Description

FIR Filter class

Constructor & Destructor Documentation

FIR::FIR ( UnitGenerator in,
unsigned  numTaps = 2,
float *  tapDelay = NULL 
)

Various constructors Takes a UGen, and optionally the number of taps and the tap IR array.

References mFilterSpec, csl::FilterSpecification::mTapData, and setTaps().

FIR::FIR ( FilterSpecification fs  ) 

give it a filter specification object

References csl::FilterSpecification::planFilter(), and resetDLine().

FIR::FIR ( UnitGenerator in,
char *  fileName 
)

References mFilterSpec, and readTaps().

FIR::FIR ( UnitGenerator in,
FilterSpecification fs 
)

FIR::~FIR (  ) 

References mDLine.


Member Function Documentation

void FIR::setTaps ( unsigned  numTaps,
float *  tapDelays 
)

void FIR::readTaps ( char *  fileName  ) 

References csl::logMsg(), resetDLine(), and setTaps().

Referenced by FIR().

void FIR::nextBuffer ( Buffer outputBuffer,
unsigned  outBufNum 
) throw (CException) [virtual]

really compute the next buffer given an offset base channel; this is called by nextBuffer, possibly multiple times

Reimplemented from csl::UnitGenerator.

References testkiss::j, and csl::logMsg().

void FIR::resetDLine (  )  [protected]

void csl::FIR::remez ( double  h[],
int  numtaps,
int  numband,
double  bands[],
double  des[],
double  weight[],
int  type 
) [protected]


Member Data Documentation

Referenced by FIR(), resetDLine(), and setTaps().

unsigned csl::FIR::mOffset [protected]

Referenced by resetDLine(), and setTaps().

sample* csl::FIR::mDLine [protected]

Referenced by resetDLine(), and ~FIR().


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

Generated on Thu Sep 17 23:14:17 2009 for CSL by  doxygen 1.5.8