Mercurial > hg > vamp-tempogram
view FIRFilter.h @ 31:f795b84c1ff2
This include change seems necessary for my compiler
author | Chris Cannam |
---|---|
date | Thu, 04 Sep 2014 10:08:09 +0100 |
parents | de7213b35755 |
children | 4cf2d163127b |
line wrap: on
line source
// // FIRFilter.h // Tempogram // // Created by Carl Bussey on 25/06/2014. // Copyright (c) 2014 Carl Bussey. All rights reserved. // #ifndef __Tempogram__FIRFilter__ #define __Tempogram__FIRFilter__ #include <cmath> #include <vamp-sdk/FFT.h> #include <assert.h> #include <iostream> class FIRFilter{ public: enum OutputTypeArgument{ first = 0, middle, all }; FIRFilter(const size_t &lengthInput, const size_t &numberOfCoefficients); ~FIRFilter(); void process(const float *pInput, const float *pCoefficients, float * pOutput, OutputTypeArgument outputType = first); private: size_t m_lengthInput; size_t m_numberOfCoefficients; size_t m_lengthFIRFFT; double *m_pFftInput; double *m_pFftCoefficients; double *m_pFftReal1; double *m_pFftImag1; double *m_pFftReal2; double *m_pFftImag2; double *m_pFftFilteredReal; double *m_pFftFilteredImag; double *m_pFftOutputReal; double *m_pFftOutputImag; void initialise(); void cleanup(); }; #endif /* defined(__Tempogram__FIRFilter__) */