2011-03-02 07:37:39 -05:00
|
|
|
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
|
|
|
|
|
|
|
|
/*
|
|
|
|
QM DSP Library
|
|
|
|
|
|
|
|
Centre for Digital Music, Queen Mary, University of London.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FFT_H
|
|
|
|
#define FFT_H
|
|
|
|
|
2015-10-04 14:51:05 -04:00
|
|
|
class FFT
|
2011-03-02 07:37:39 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
FFT(unsigned int nsamples);
|
|
|
|
virtual ~FFT();
|
|
|
|
|
|
|
|
void process(bool inverse,
|
|
|
|
const double *realIn, const double *imagIn,
|
|
|
|
double *realOut, double *imagOut);
|
2015-10-04 14:51:05 -04:00
|
|
|
|
2011-03-02 07:37:39 -05:00
|
|
|
private:
|
|
|
|
unsigned int m_n;
|
|
|
|
void *m_private;
|
|
|
|
};
|
|
|
|
|
|
|
|
class FFTReal
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
FFTReal(unsigned int nsamples);
|
|
|
|
~FFTReal();
|
|
|
|
|
|
|
|
void process(bool inverse,
|
|
|
|
const double *realIn,
|
|
|
|
double *realOut, double *imagOut);
|
|
|
|
|
|
|
|
private:
|
|
|
|
unsigned int m_n;
|
|
|
|
void *m_private_real;
|
2015-10-04 14:51:05 -04:00
|
|
|
};
|
2011-03-02 07:37:39 -05:00
|
|
|
|
|
|
|
#endif
|