#include <FIR.h>

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 | |
| FilterSpecification * | mFilterSpec |
| unsigned | mOffset |
| sample * | mDLine |
| 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 | |||
| ) |
References csl::FilterSpecification::planFilter(), and resetDLine().
| FIR::~FIR | ( | ) |
References mDLine.
| void FIR::setTaps | ( | unsigned | numTaps, | |
| float * | tapDelays | |||
| ) |
References mFilterSpec, mOffset, csl::FilterSpecification::mTapData, resetDLine(), and csl::FilterSpecification::setNumTaps().
Referenced by FIR(), and readTaps().
| void FIR::readTaps | ( | char * | fileName | ) |
| 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] |
References mDLine, mFilterSpec, csl::FilterSpecification::mNumTaps, and mOffset.
Referenced by FIR(), readTaps(), and setTaps().
| void csl::FIR::remez | ( | double | h[], | |
| int | numtaps, | |||
| int | numband, | |||
| double | bands[], | |||
| double | des[], | |||
| double | weight[], | |||
| int | type | |||
| ) | [protected] |
FilterSpecification* csl::FIR::mFilterSpec [protected] |
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().
1.5.8