Mercurial > hg > vamp-tempogram
view FIRFilter.h @ 39:716f797e2025
Further Makefile fixes
author | Chris Cannam |
---|---|
date | Fri, 12 Sep 2014 15:09:38 +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__) */