Mercurial > hg > vamp-tempogram
view FIRFilter.h @ 1:3fd1a41b089b
* Now displaying some output. Needs testing to see if bugs are present.
author | Carl Bussey <c.bussey@se10.qmul.ac.uk> |
---|---|
date | Wed, 09 Jul 2014 10:26:51 +0100 |
parents | 31d2a7e07786 |
children | 21147df9cb2d |
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__ class FIRFilter{ public: FIRFilter(const unsigned int lengthInput, const unsigned int numberOfCoefficients); ~FIRFilter(); void process(const float *input, const float *coefficients, float *output); private: unsigned int _lengthInput; unsigned int _numberOfCoefficients; unsigned int _lengthFIRFFT; double *fftInput; double *fftCoefficients; double *fftReal1; double *fftImag1; double *fftReal2; double *fftImag2; double *fftFilteredReal; double *fftFilteredImag; double *fftOutputReal; double *fftOutputImag; void initialise(); void cleanup(); }; #endif /* defined(__Tempogram__FIRFilter__) */