ofxPDSP
pdsp::FFTWorker Class Reference

Class to use an FFT Implementation. More...

#include <FFTWorker.h>

Public Member Functions

void initFFT (int bufferSize)
 inits the fft
 
int getFFTBlockSize () const
 returns the fft block size, usually the first power of 2 greater than the audio buffer size.
 
int getFFTComplexSize () const
 returns the fft block size == half the block size
 
void FFT (const float *inSignal, float *re, float *im)
 performs FFT More...
 
void iFFT (float *outSignal, const float *re, const float *im)
 performs iFFT More...
 

Detailed Description

Class to use an FFT Implementation.

This manage the instantiation and initialization of an FFT algorithm to be used into subclasses. It use the AudioFFT library so the implementation is chosen at compile time setting the right flag.

Member Function Documentation

◆ FFT()

void pdsp::FFTWorker::FFT ( const float *  inSignal,
float *  re,
float *  im 
)

performs FFT

Parameters
[in]inSignalsignal to process (time domain)
[out]rereal part output (frequency domain)
[out]imimaginary part output (frequency domain)

◆ iFFT()

void pdsp::FFTWorker::iFFT ( float *  outSignal,
const float *  re,
const float *  im 
)

performs iFFT

Parameters
[out]outSignalsignal output (time domain)
[in]rereal part input (frequency domain)
[in]imimaginary part input (frequency domain)

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