Ardour
9.0-pre0-386-g96ef4d20f2
|
#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 |
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 | ( | ) |
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.