Ardour  9.0-pre0-386-g96ef4d20f2
FFT Class Reference

#include <FFT.h>

Public Member Functions

 FFT (int nsamples)
 
 ~FFT ()
 
void process (bool inverse, const double *realIn, const double *imagIn, double *realOut, double *imagOut)
 

Private Attributes

D * m_d
 

Detailed Description

Definition at line 18 of file FFT.h.

Constructor & Destructor Documentation

◆ FFT()

FFT::FFT ( int  nsamples)

Construct an FFT object to carry out complex-to-complex transforms of size nsamples. nsamples does not have to be a power of two.

◆ ~FFT()

FFT::~FFT ( )

Member Function Documentation

◆ process()

void FFT::process ( bool  inverse,
const double *  realIn,
const double *  imagIn,
double *  realOut,
double *  imagOut 
)

Carry out a forward or inverse transform (depending on the value of inverse) of size nsamples, where nsamples is the value provided to the constructor above.

realIn and (where present) imagIn should contain nsamples each, and realOut and imagOut should point to enough space to receive nsamples each.

imagIn may be NULL if the signal is real, but the other pointers must be valid.

The inverse transform is scaled by 1/nsamples.

Member Data Documentation

◆ m_d

D* FFT::m_d
private

Definition at line 49 of file FFT.h.


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