AuxPort 0.2
Modules for Audio Software Development
Loading...
Searching...
No Matches
AuxPort::Audio::FourierTransform Class Reference

Implementation of Fast Fourier Transform based on optimized Cooley-Tukey Algorithm. More...

#include <AuxFFT.h>

Public Member Functions

 FourierTransform (size_t fftSize)
 Provide FFT Size, (Note should be a power of 2).
 
void computeTransform (const std::vector< float > &inputBuffer, std::vector< float > &output)
 Performs FFT on the AudioBuffer passed in the argument and returns an AudioBuffer with FFT Values.
 
void computeInverseTransform (std::vector< float > &outputBuffer)
 Performs in place IFFT.
 
std::complex< float > get (size_t index) const
 Performs in-place FFT.
 
std::vector< std::complex< float > > * getFourierTransformFrame ()
 Returns the pointer to the Fourier Transform Vector.
 
size_t size () const
 Returns the size.
 

Detailed Description

Implementation of Fast Fourier Transform based on optimized Cooley-Tukey Algorithm.

Definition at line 51 of file AuxFFT.h.

Constructor & Destructor Documentation

◆ FourierTransform()

AuxPort::Audio::FourierTransform::FourierTransform ( size_t fftSize)

Provide FFT Size, (Note should be a power of 2).

Definition at line 3 of file AuxFFT.cpp.

Member Function Documentation

◆ computeInverseTransform()

void AuxPort::Audio::FourierTransform::computeInverseTransform ( std::vector< float > & outputBuffer)

Performs in place IFFT.

Definition at line 22 of file AuxFFT.cpp.

◆ computeTransform()

void AuxPort::Audio::FourierTransform::computeTransform ( const std::vector< float > & inputBuffer,
std::vector< float > & output )

Performs FFT on the AudioBuffer passed in the argument and returns an AudioBuffer with FFT Values.

Definition at line 11 of file AuxFFT.cpp.

◆ get()

std::complex< float > AuxPort::Audio::FourierTransform::get ( size_t index) const

Performs in-place FFT.

Definition at line 33 of file AuxFFT.cpp.

◆ getFourierTransformFrame()

std::vector< std::complex< float > > * AuxPort::Audio::FourierTransform::getFourierTransformFrame ( )

Returns the pointer to the Fourier Transform Vector.

Definition at line 38 of file AuxFFT.cpp.

◆ size()

size_t AuxPort::Audio::FourierTransform::size ( ) const

Returns the size.

Definition at line 43 of file AuxFFT.cpp.


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