annotate trunk/src/Modules/BMM/ModuleGammatone.h @ 280:e55d0c225a57

- Lots of changes to make cpplint happy. It still complains about header guards, but that's pretty much it now.
author tomwalters
date Thu, 18 Feb 2010 21:12:41 +0000
parents 6b4921704eb1
children 34993448961f
rev   line source
tomwalters@276 1 // Copyright 2009-2010, Thomas Walters
tomwalters@276 2 //
tomwalters@276 3 // AIM-C: A C++ implementation of the Auditory Image Model
tomwalters@276 4 // http://www.acousticscale.org/AIMC
tomwalters@276 5 //
tomwalters@276 6 // This program is free software: you can redistribute it and/or modify
tomwalters@276 7 // it under the terms of the GNU General Public License as published by
tomwalters@276 8 // the Free Software Foundation, either version 3 of the License, or
tomwalters@276 9 // (at your option) any later version.
tomwalters@276 10 //
tomwalters@276 11 // This program is distributed in the hope that it will be useful,
tomwalters@276 12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
tomwalters@276 13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
tomwalters@276 14 // GNU General Public License for more details.
tomwalters@276 15 //
tomwalters@276 16 // You should have received a copy of the GNU General Public License
tomwalters@276 17 // along with this program. If not, see <http://www.gnu.org/licenses/>.
tomwalters@276 18
tomwalters@276 19 /*! \file
tomwalters@276 20 * \brief Slaney's gammatone filterbank
tomwalters@276 21 *
tomwalters@276 22 * \author Thomas Walters <tom@acousticscale.org>
tomwalters@276 23 * \date created 2009/11/13
tomwalters@276 24 * \version \$Id$
tomwalters@276 25 */
tomwalters@280 26 #ifndef _AIMC_MODULES_BMM_GAMMATONE_H_
tomwalters@280 27 #define _AIMC_MODULES_BMM_GAMMATONE_H_
tomwalters@276 28
tomwalters@276 29 #include <vector>
tomwalters@276 30
tomwalters@277 31 #include "Support/Module.h"
tomwalters@277 32 #include "Support/Parameters.h"
tomwalters@277 33 #include "Support/SignalBank.h"
tomwalters@277 34
tomwalters@276 35 namespace aimc {
tomwalters@276 36 using std::vector;
tomwalters@276 37 class ModuleGammatone : public Module {
tomwalters@276 38 public:
tomwalters@280 39 explicit ModuleGammatone(Parameters *params);
tomwalters@276 40 virtual ~ModuleGammatone();
tomwalters@280 41 /*! \brief Process a buffer
tomwalters@280 42 */
tomwalters@276 43 virtual void Process(const SignalBank &input);
tomwalters@276 44
tomwalters@276 45 private:
tomwalters@276 46 virtual bool InitializeInternal(const SignalBank& input);
tomwalters@276 47 virtual void ResetInternal();
tomwalters@276 48 vector<vector<float> > forward_;
tomwalters@277 49 vector<vector<float> > back_;
tomwalters@277 50 vector<vector<float> > state_;
tomwalters@276 51 vector<float> centre_frequencies_;
tomwalters@276 52 int num_channels_;
tomwalters@276 53 float max_frequency_;
tomwalters@276 54 float min_frequency_;
tomwalters@276 55 };
tomwalters@280 56 } // namespace aimc
tomwalters@280 57 #endif // _AIMC_MODULES_BMM_GAMMATONE_H_