#include <Fft.h>
|
| Fft (unsigned int length) |
|
int | setup (unsigned int length) |
|
void | cleanup () |
|
void | fft () |
|
void | fft (const std::vector< float > &input) |
|
void | ifft () |
|
void | ifft (const std::vector< float > &reInput, const std::vector< float > &imInput) |
|
float & | fdr (unsigned int n) |
|
float & | fdi (unsigned int n) |
|
float | fda (unsigned int n) |
|
float & | td (unsigned int n) |
|
|
static bool | isPowerOfTwo (unsigned int n) |
|
static unsigned int | roundUpToPowerOfTwo (unsigned int n) |
|
A real-to-complex FFT and complex-to-real IFFT. This is a wrapper for the libne10 FFT.
- Examples:
- Gui/frequency-response/render.cpp.
Perform the FFT of the signal whose time-domain representation is stored internally.
void Fft::fft |
( |
const std::vector< float > & |
input | ) |
|
Perform the FFT of the signal whose time-domain representation is passed as an argument.
Perform the IFFT of the internal frequency-domain signal.
void Fft::ifft |
( |
const std::vector< float > & |
reInput, |
|
|
const std::vector< float > & |
imInput |
|
) |
| |
Perform the IFFT of the signal whose frequency-domain representation is passed as arguments.
float& Fft::fdr |
( |
unsigned int |
n | ) |
|
|
inline |
Get the real part of the frequency-domain representation at index n
.
float& Fft::fdi |
( |
unsigned int |
n | ) |
|
|
inline |
Get the imaginary part of the frequency-domain representation at index n
.
float Fft::fda |
( |
unsigned int |
n | ) |
|
|
inline |
Get the absolute value of the frequency-domain representation at index n
. The value is computed on the fly at each call and is not cached.
float& Fft::td |
( |
unsigned int |
n | ) |
|
|
inline |
Get the time-domain representation at index n
.
The documentation for this class was generated from the following files:
- libraries/Fft/Fft.h
- libraries/Fft/Fft.cpp