comparison FIRFilter.h @ 0:31d2a7e07786

Moved all to folder "tempogram".
author Carl Bussey <c.bussey@se10.qmul.ac.uk>
date Mon, 07 Jul 2014 10:08:14 +0100
parents
children 21147df9cb2d
comparison
equal deleted inserted replaced
-1:000000000000 0:31d2a7e07786
1 //
2 // FIRFilter.h
3 // Tempogram
4 //
5 // Created by Carl Bussey on 25/06/2014.
6 // Copyright (c) 2014 Carl Bussey. All rights reserved.
7 //
8
9 #ifndef __Tempogram__FIRFilter__
10 #define __Tempogram__FIRFilter__
11
12 class FIRFilter{
13 public:
14 FIRFilter(const unsigned int lengthInput, const unsigned int numberOfCoefficients);
15 ~FIRFilter();
16 void process(const float *input, const float *coefficients, float *output);
17 private:
18 unsigned int _lengthInput;
19 unsigned int _numberOfCoefficients;
20 unsigned int _lengthFIRFFT;
21
22 double *fftInput;
23 double *fftCoefficients;
24 double *fftReal1;
25 double *fftImag1;
26 double *fftReal2;
27 double *fftImag2;
28 double *fftFilteredReal;
29 double *fftFilteredImag;
30 double *fftOutputReal;
31 double *fftOutputImag;
32
33 void initialise();
34 void cleanup();
35 };
36
37 #endif /* defined(__Tempogram__FIRFilter__) */