Mercurial > hg > qm-dsp
view dsp/transforms/FFT.h @ 272:330c2e11f8a9
* Build fixes for gcc 4.3.2
* _Maybe_, but probably not, fix crash in tempo tracker... let's see how
we get on
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 10 Nov 2008 14:01:55 +0000 |
parents | 9edaa3ce62e8 |
children | 6cb2b3cd5356 |
line wrap: on
line source
/* -*- 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. This file is based on Don Cross's public domain FFT implementation. */ #ifndef FFT_H #define FFT_H class FFT { public: static void process(unsigned int nSamples, bool bInverseTransform, const double *lpRealIn, const double *lpImagIn, double *lpRealOut, double *lpImagOut); FFT(); virtual ~FFT(); protected: static unsigned int reverseBits(unsigned int nIndex, unsigned int nBits); static unsigned int numberOfBitsNeeded( unsigned int nSamples ); static bool isPowerOfTwo( unsigned int nX ); }; #endif