Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
Loading...
Searching...
No Matches
Fft Class Reference

#include <Fft.h>

Public Member Functions

 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 Public Member Functions

static bool isPowerOfTwo (unsigned int n)
static unsigned int roundUpToPowerOfTwo (unsigned int n)

Detailed Description

A real-to-complex FFT and complex-to-real IFFT. This is a wrapper for the libne10 FFT.

Examples
Gui/frequency-response/render.cpp.

Member Function Documentation

◆ fft() [1/2]

void Fft::fft ( )

Perform the FFT of the signal whose time-domain representation is stored internally.

◆ fft() [2/2]

void Fft::fft ( const std::vector< float > & input)

Perform the FFT of the signal whose time-domain representation is passed as an argument.

◆ ifft() [1/2]

void Fft::ifft ( )

Perform the IFFT of the internal frequency-domain signal.

◆ ifft() [2/2]

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.

◆ fdr()

float & Fft::fdr ( unsigned int n)
inline

Get the real part of the frequency-domain representation at index n.

◆ fdi()

float & Fft::fdi ( unsigned int n)
inline

Get the imaginary part of the frequency-domain representation at index n.

◆ fda()

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.

◆ td()

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: