annotate trunk/swig/aim_modules.i @ 335:71c438f9daf7

- Scripts for running recognition experiments using AIM-C and HTK to compare MFCCs against features generated with AIM-C
author tomwalters
date Wed, 04 Aug 2010 06:41:56 +0000
parents 4ee5bb246f60
children 890332908f57
rev   line source
tomwalters@277 1 // Copyright 2010, Thomas Walters
tomwalters@268 2 //
tomwalters@268 3 // AIM-C: A C++ implementation of the Auditory Image Model
tomwalters@268 4 // http://www.acousticscale.org/AIMC
tomwalters@268 5 //
tomwalters@318 6 // Licensed under the Apache License, Version 2.0 (the "License");
tomwalters@318 7 // you may not use this file except in compliance with the License.
tomwalters@318 8 // You may obtain a copy of the License at
tomwalters@268 9 //
tomwalters@318 10 // http://www.apache.org/licenses/LICENSE-2.0
tomwalters@268 11 //
tomwalters@318 12 // Unless required by applicable law or agreed to in writing, software
tomwalters@318 13 // distributed under the License is distributed on an "AS IS" BASIS,
tomwalters@318 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
tomwalters@318 15 // See the License for the specific language governing permissions and
tomwalters@318 16 // limitations under the License.
tomwalters@268 17
tomwalters@273 18 %module aimc
tomwalters@273 19 %include "std_string.i"
tomwalters@334 20 %include stl.i
tomwalters@268 21 %{
tomwalters@268 22 #include "Support/Common.h"
tomwalters@268 23 #include "Support/Module.h"
tomwalters@268 24 #include "Support/Parameters.h"
tomwalters@268 25 #include "Support/SignalBank.h"
tomwalters@285 26 #include "Modules/BMM/ModuleGammatone.h"
tomwalters@285 27 #include "Modules/BMM/ModulePZFC.h"
tomwalters@285 28 #include "Modules/NAP/ModuleHCL.h"
tomwalters@285 29 #include "Modules/Strobes/ModuleParabola.h"
tomwalters@305 30 #include "Modules/Strobes/ModuleLocalMax.h"
tomwalters@285 31 #include "Modules/SAI/ModuleSAI.h"
tomwalters@285 32 #include "Modules/SSI/ModuleSSI.h"
tomwalters@285 33 #include "Modules/Profile/ModuleSlice.h"
tomwalters@292 34 #include "Modules/Profile/ModuleScaler.h"
tomwalters@268 35 %}
tomwalters@268 36
tomwalters@285 37 %include "Support/Parameters.h"
tomwalters@285 38 %include "Support/SignalBank.h"
tomwalters@334 39
tomwalters@334 40 namespace aimc {
tomwalters@334 41 using std::ostream;
tomwalters@334 42 using std::set;
tomwalters@334 43 using std::string;
tomwalters@334 44 class Module {
tomwalters@334 45 public:
tomwalters@334 46 explicit Module(Parameters *parameters);
tomwalters@334 47 virtual ~Module();
tomwalters@334 48 virtual bool Initialize(const SignalBank &input);
tomwalters@334 49 bool initialized() const;
tomwalters@334 50 bool AddTarget(Module* target_module);
tomwalters@334 51 bool RemoveTarget(Module* target_module);
tomwalters@334 52 void RemoveAllTargets();
tomwalters@334 53 virtual void Process(const SignalBank &input) = 0;
tomwalters@334 54 void Reset();
tomwalters@334 55 const SignalBank* GetOutputBank() const;
tomwalters@334 56 string version() const;
tomwalters@334 57 string id() const;
tomwalters@334 58 string description() const;
tomwalters@334 59 string type() const;
tomwalters@334 60 };
tomwalters@334 61 }
tomwalters@334 62
tomwalters@285 63 %include "Modules/BMM/ModuleGammatone.h"
tomwalters@285 64 %include "Modules/BMM/ModulePZFC.h"
tomwalters@285 65 %include "Modules/NAP/ModuleHCL.h"
tomwalters@285 66 %include "Modules/Strobes/ModuleParabola.h"
tomwalters@305 67 %include "Modules/Strobes/ModuleLocalMax.h"
tomwalters@285 68 %include "Modules/SAI/ModuleSAI.h"
tomwalters@285 69 %include "Modules/SSI/ModuleSSI.h"
tomwalters@285 70 %include "Modules/Profile/ModuleSlice.h"
tomwalters@292 71 %include "Modules/Profile/ModuleScaler.h"