LMMS
Loading...
Searching...
No Matches
dsp::fft< T, O > Class Template Reference

#include <fft.h>

Public Types

typedef std::complex< T > complex

Public Member Functions

 fft ()
void calculate (complex *input, complex *output, bool inverse) const
template<class InType>
void calculateN (InType *input, complex *output, bool inverse, int order) const
void execute_r2r (int order, float *input, float *output, complex *tmp, bool inverse=false) const

Private Attributes

int scramble [1<< O]
complex sines [1<< O]

Detailed Description

template<class T, int O>
class dsp::fft< T, O >

FFT routine copied from my old OneSignal library, modified to match Calf's style. It's not fast at all, just a straightforward implementation.

Member Typedef Documentation

◆ complex

template<class T, int O>
typedef std::complex<T> dsp::fft< T, O >::complex

Constructor & Destructor Documentation

◆ fft()

template<class T, int O>
dsp::fft< T, O >::fft ( )
inline

Member Function Documentation

◆ calculate()

template<class T, int O>
void dsp::fft< T, O >::calculate ( complex * input,
complex * output,
bool inverse ) const
inline

◆ calculateN()

template<class T, int O>
template<class InType>
void dsp::fft< T, O >::calculateN ( InType * input,
complex * output,
bool inverse,
int order ) const
inline

◆ execute_r2r()

template<class T, int O>
void dsp::fft< T, O >::execute_r2r ( int order,
float * input,
float * output,
complex * tmp,
bool inverse = false ) const
inline

Member Data Documentation

◆ scramble

template<class T, int O>
int dsp::fft< T, O >::scramble[1<< O]
private

◆ sines

template<class T, int O>
complex dsp::fft< T, O >::sines[1<< O]
private

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