Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Public Member Functions | Static Public Member Functions | List of all members
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 ()
 
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

void Fft::fft ( )

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.

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: