csl::FFT Class Reference

#include <Spectral.h>

Inheritance diagram for csl::FFT:

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

List of all members.

Public Member Functions

 FFT (UnitGenerator &in, int size=CGestalt::blockSize(), CSL_FFTType type=CSL_FFT_COMPLEX)
 Default size to the buffer size and flags to measure.
 ~FFT ()
void nextBuffer (Buffer &outputBuffer) throw (CException)
 we override the general-case version because this needs a mono input
int fftSize ()

Public Attributes

bool mOverwriteOutput
 no setter -- create a new FFT to change size

Protected Attributes

int mFFTSize
 This should be unsigned, but is signed for compatability with FFTW.
FFTWrapper mWrapper
 actual FFT wrapper object
Buffer mInBuf
 input buffer
SampleBuffer mWindowBuffer
 Buffer to store window.


Detailed Description

Forward FFT unit generator is an Effect because it handles an input It puts spectral frames in the output buffer and then broadcasts a change message, so clients are expected to observe it.

Constructor & Destructor Documentation

csl::FFT::FFT ( UnitGenerator in,
int  size = CGestalt::blockSize(),
CSL_FFTType  type = CSL_FFT_COMPLEX 
)

Default size to the buffer size and flags to measure.

csl::FFT::~FFT (  ) 


Member Function Documentation

void csl::FFT::nextBuffer ( Buffer outputBuffer  )  throw (CException) [virtual]

we override the general-case version because this needs a mono input

Reimplemented from csl::UnitGenerator.

int csl::FFT::fftSize (  )  [inline]

References mFFTSize.


Member Data Documentation

no setter -- create a new FFT to change size

whether to replace the output with the input (or the spectrum) after signalling observers

int csl::FFT::mFFTSize [protected]

This should be unsigned, but is signed for compatability with FFTW.

Referenced by fftSize().

FFTWrapper csl::FFT::mWrapper [protected]

actual FFT wrapper object

Buffer csl::FFT::mInBuf [protected]

input buffer

Buffer to store window.


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

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