![]() |
Cinder
0.9.1
|
#include <Fft.h>
Public Member Functions | |
Fft (size_t fftSize) | |
~Fft () | |
void | forward (const Buffer *waveform, BufferSpectral *spectral) |
void | inverse (const BufferSpectral *spectral, Buffer *waveform) |
size_t | getSize () const |
Protected Member Functions | |
void | init () |
Protected Attributes | |
size_t | mSize |
size_t | mSizeOverTwo |
Buffer | mBufferCopy |
int * | mOouraIp |
float * | mOouraW |
Real Discrete Fourier Transform (DFT).
cinder::audio::dsp::Fft::Fft | ( | size_t | fftSize | ) |
Constructs an Fft object. fftSize must be a power of two and greater than two.
cinder::audio::dsp::Fft::~Fft | ( | ) |
void cinder::audio::dsp::Fft::forward | ( | const Buffer * | waveform, |
BufferSpectral * | spectral | ||
) |
Computes the Forward DFT of waveform, filling spectral with freqency-domain audio data.
void cinder::audio::dsp::Fft::inverse | ( | const BufferSpectral * | spectral, |
Buffer * | waveform | ||
) |
Computes the Inverse DFT of spectral, filling waveform with time-domain audio data.
size_t cinder::audio::dsp::Fft::getSize | ( | ) | const |
Returns the size of the FFT.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |