Mercurial > hg > qm-dsp
comparison dsp/signalconditioning/FiltFilt.h @ 0:d7116e3183f8
* Queen Mary C++ DSP library
author | cannam |
---|---|
date | Wed, 05 Apr 2006 17:35:59 +0000 |
parents | |
children | e5907ae6de17 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d7116e3183f8 |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
2 | |
3 /* | |
4 QM DSP Library | |
5 | |
6 Centre for Digital Music, Queen Mary, University of London. | |
7 This file copyright 2005-2006 Christian Landone. | |
8 All rights reserved. | |
9 */ | |
10 | |
11 #ifndef FILTFILT_H | |
12 #define FILTFILT_H | |
13 | |
14 #include "Filter.h" | |
15 | |
16 struct FiltFiltConfig{ | |
17 unsigned int ord; | |
18 double* ACoeffs; | |
19 double* BCoeffs; | |
20 }; | |
21 | |
22 class FiltFilt | |
23 { | |
24 public: | |
25 FiltFilt( FiltFiltConfig Config ); | |
26 virtual ~FiltFilt(); | |
27 | |
28 void reset(); | |
29 void process( double* src, double* dst, unsigned int length ); | |
30 | |
31 private: | |
32 void initialise( FiltFiltConfig Config ); | |
33 void deInitialise(); | |
34 | |
35 unsigned int m_ord; | |
36 | |
37 Filter* m_filter; | |
38 | |
39 double* m_filtScratchIn; | |
40 double* m_filtScratchOut; | |
41 | |
42 FilterConfig m_filterConfig; | |
43 }; | |
44 | |
45 #endif |