annotate 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 |
rev |
line source |
c@0
|
1 //
|
c@0
|
2 // FIRFilter.h
|
c@0
|
3 // Tempogram
|
c@0
|
4 //
|
c@0
|
5 // Created by Carl Bussey on 25/06/2014.
|
c@0
|
6 // Copyright (c) 2014 Carl Bussey. All rights reserved.
|
c@0
|
7 //
|
c@0
|
8
|
c@0
|
9 #ifndef __Tempogram__FIRFilter__
|
c@0
|
10 #define __Tempogram__FIRFilter__
|
c@0
|
11
|
c@0
|
12 class FIRFilter{
|
c@0
|
13 public:
|
c@0
|
14 FIRFilter(const unsigned int lengthInput, const unsigned int numberOfCoefficients);
|
c@0
|
15 ~FIRFilter();
|
c@0
|
16 void process(const float *input, const float *coefficients, float *output);
|
c@0
|
17 private:
|
c@0
|
18 unsigned int _lengthInput;
|
c@0
|
19 unsigned int _numberOfCoefficients;
|
c@0
|
20 unsigned int _lengthFIRFFT;
|
c@0
|
21
|
c@0
|
22 double *fftInput;
|
c@0
|
23 double *fftCoefficients;
|
c@0
|
24 double *fftReal1;
|
c@0
|
25 double *fftImag1;
|
c@0
|
26 double *fftReal2;
|
c@0
|
27 double *fftImag2;
|
c@0
|
28 double *fftFilteredReal;
|
c@0
|
29 double *fftFilteredImag;
|
c@0
|
30 double *fftOutputReal;
|
c@0
|
31 double *fftOutputImag;
|
c@0
|
32
|
c@0
|
33 void initialise();
|
c@0
|
34 void cleanup();
|
c@0
|
35 };
|
c@0
|
36
|
c@0
|
37 #endif /* defined(__Tempogram__FIRFilter__) */
|