csl::LPCFilter Class Reference

#include <LPC.h>

Inheritance diagram for csl::LPCFilter:

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

List of all members.

Public Member Functions

 LPCFilter (UnitGenerator &in, char *lpcFile)
 LPCFilter (UnitGenerator &in, Buffer &lpcData, unsigned size, unsigned hopSize, unsigned order)
 ~LPCFilter ()
unsigned windowSize ()
unsigned hopSize ()
unsigned LPCOrder ()
double deEmphasis ()
EnvelopetimeEnvelope ()
void setTimeEnvelope (Envelope *env)
void nextBuffer (Buffer &outputBuffer, unsigned outBufNum) throw (CException)
 read some input and apply a filter to it

Protected Attributes

unsigned mWindowSize
 input window size
unsigned mHopSize
 input hop size
unsigned mLPCOrder
 LPC order.
double mDeEmphasis
 playback time warp envelope (0-1)
 file ptr for the coefficient file
Buffer mLPCBuffer
 (or) the coefficient buffer
Buffer mTempBuffer
 the past output buffer

Detailed Description

LPCFilter is also an effect; it reads an input (residual) and filters its according to an LPC-derived FIR filter

Constructor & Destructor Documentation

LPCFilter::LPCFilter ( UnitGenerator in,
char *  lpcFile 

LPCFilter::LPCFilter ( UnitGenerator in,
Buffer lpcData,
unsigned  size,
unsigned  hopSize,
unsigned  order 

LPCFilter::~LPCFilter (  ) 

References mLPCFile.

Member Function Documentation

unsigned csl::LPCFilter::windowSize (  )  [inline]

References mWindowSize.

unsigned csl::LPCFilter::hopSize (  )  [inline]

References mHopSize.

unsigned csl::LPCFilter::LPCOrder (  )  [inline]

References mLPCOrder.

double csl::LPCFilter::deEmphasis (  )  [inline]

References mDeEmphasis.

Envelope* csl::LPCFilter::timeEnvelope (  )  [inline]

References mTimeEnvelope.

void csl::LPCFilter::setTimeEnvelope ( Envelope env  )  [inline]

References mTimeEnvelope.

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

read some input and apply a filter to it

Reimplemented from csl::UnitGenerator.

References CSL_LPC_MAXPOLES, and csl::Effect::pullInput().

Member Data Documentation

unsigned csl::LPCFilter::mWindowSize [protected]

input window size

Referenced by LPCFilter(), and windowSize().

unsigned csl::LPCFilter::mHopSize [protected]

input hop size

Referenced by hopSize(), and LPCFilter().

unsigned csl::LPCFilter::mLPCOrder [protected]

LPC order.

Referenced by LPCFilter(), and LPCOrder().

double csl::LPCFilter::mDeEmphasis [protected]

Referenced by deEmphasis(), and LPCFilter().

playback time warp envelope (0-1)

Referenced by setTimeEnvelope(), and timeEnvelope().

FILE* csl::LPCFilter::mLPCFile [protected]

file ptr for the coefficient file

Referenced by LPCFilter(), and ~LPCFilter().

(or) the coefficient buffer

the past output buffer

Referenced by LPCFilter().

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