56 void binValue(
int binNumber,
float * outRealPart,
float * outComplexPart);
60 void setBin(
int binNumber,
float realPart,
float imagPart);
61 void setBins(
float * real,
float * imag);
64 void setBins(
int lower,
int upper,
float* real,
float* imag);
sample * SampleBuffer
1-channel buffer data type, vector of (sample)
void setBin(int binNumber, float realPart, float imagPart)
SampleComplex * SampleComplexVector
complex vector
void binValueMagPhase(int binNumber, float *outMag, float *outPhase)
void nextBuffer(Buffer &outputBuffer)
get a buffer of Frames – this is the core CSL "pull" function; the given buffer can be written into...
SampleBuffer mWindowBuffer
Buffer to store window.
CSL_FFTType
real/complex flag (determines results from forward FFT)
AdditiveInstrument.h – Sum-of-sines synthesis instrument class.
Effect – mix-in for classes that have unit generators as inputs (like filters).
FFT(UnitGenerator &in, int size=CGestalt::blockSize(), CSL_FFTType type=CSL_FFT_COMPLEX)
Default size to the buffer size and flags to measure.
void setBinsMagPhase(float *mags, float *phases)
void binValue(int binNumber, float *outRealPart, float *outComplexPart)
getter methods
void setBinMagPhase(int binNumber, float mag, float phase)
FFT_Wrapper mWrapper
actual FFT wrapper object
Buffer mInBuf
input buffer
static unsigned blockSize()
the default block size
void nextBuffer(Buffer &outputBuffer)
we override the general-case version because this needs a mono input
int mFFTSize
This should be unsigned, but is signed for compatability with FFTW.
void setBins(float *real, float *imag)
Forward FFT unit generator is an Effect because it handles an input It puts spectral frames in the ou...
IFFT(int size=CGestalt::blockSize(), CSL_FFTType type=CSL_FFT_COMPLEX)
Default size to the buffer size and flags to measure.
int mFFTSize
This should be unsigned, but is signed for compatability with FFTW.
FFT_Wrapper mWrapper
actual FFT wrapper object
SampleComplex * SampleComplexPtr
complex pointer
Buffer – the multi-channel sample buffer class (passed around between generators and IO guys)...
Buffer mInBuf
input buffer
bool mOverwriteOutput
no setter – create a new FFT to change size
int fftSize()
no setter – create a new IFFT to change size
SampleComplexPtr mSpectrum
spectral data I accumulate
Base class of CSL exceptions (written upper-case). Has a string message.