comparison trunk/src/Modules/BMM/ModuleGammatone.h @ 276:a57b29e373c7

- Added stub for a Slaney IIR Gammatone filterbank
author tomwalters
date Tue, 16 Feb 2010 18:40:55 +0000
parents
children 6b4921704eb1
comparison
equal deleted inserted replaced
275:ce2bab04f155 276:a57b29e373c7
1 // Copyright 2009-2010, Thomas Walters
2 //
3 // AIM-C: A C++ implementation of the Auditory Image Model
4 // http://www.acousticscale.org/AIMC
5 //
6 // This program is free software: you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation, either version 3 of the License, or
9 // (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19 /*! \file
20 * \brief Slaney's gammatone filterbank
21 *
22 * \author Thomas Walters <tom@acousticscale.org>
23 * \date created 2009/11/13
24 * \version \$Id$
25 */
26
27 #include <vector>
28
29 namespace aimc {
30 using std::vector;
31 class ModuleGammatone : public Module {
32 public:
33 ModuleGammatone(Parameters *params);
34 virtual ~ModuleGammatone();
35 //! \brief Process a buffer
36 virtual void Process(const SignalBank &input);
37
38 private:
39 virtual bool InitializeInternal(const SignalBank& input);
40 virtual void ResetInternal();
41 vector<vector<float> > forward_;
42 vector<vector<float> > feedback_;
43 vector<float> centre_frequencies_;
44 int num_channels_;
45 float max_frequency_;
46 float min_frequency_;
47 };
48 } // namespace aimc