Public Member Functions | Static Public Member Functions | List of all members
AudioFFT Class Reference

Performs 1D FFTs. More...

Public Member Functions

 AudioFFT ()
 Constructor.
 
void fft (const float *data, float *re, float *im)
 Performs the forward FFT. More...
 
void ifft (float *data, const float *re, const float *im)
 Performs the inverse FFT. More...
 
void init (size_t size)
 Initializes the FFT object. More...
 
 ~AudioFFT ()
 Destructor.
 

Static Public Member Functions

static size_t ComplexSize (size_t size)
 Calculates the necessary size of the real/imaginary complex arrays. More...
 

Detailed Description

Performs 1D FFTs.

Member Function Documentation

size_t ComplexSize ( size_t  size)
static

Calculates the necessary size of the real/imaginary complex arrays.

Parameters
sizeThe size of the real data
Returns
The size of the real/imaginary complex arrays
void fft ( const float *  data,
float *  re,
float *  im 
)

Performs the forward FFT.

Parameters
dataThe real input data (has to be of the length as specified in init())
reThe real part of the complex output (has to be of length as returned by ComplexSize())
imThe imaginary part of the complex output (has to be of length as returned by ComplexSize())
void ifft ( float *  data,
const float *  re,
const float *  im 
)

Performs the inverse FFT.

Parameters
dataThe real output data (has to be of the length as specified in init())
reThe real part of the complex input (has to be of length as returned by ComplexSize())
imThe imaginary part of the complex input (has to be of length as returned by ComplexSize())
void init ( size_t  size)

Initializes the FFT object.

Parameters
sizeSize of the real input (must be power 2)

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.