tomwalters@277: // Copyright 2010, Thomas Walters tomwalters@268: // tomwalters@268: // AIM-C: A C++ implementation of the Auditory Image Model tomwalters@268: // http://www.acousticscale.org/AIMC tomwalters@268: // tomwalters@318: // Licensed under the Apache License, Version 2.0 (the "License"); tomwalters@318: // you may not use this file except in compliance with the License. tomwalters@318: // You may obtain a copy of the License at tomwalters@268: // tomwalters@318: // http://www.apache.org/licenses/LICENSE-2.0 tomwalters@268: // tomwalters@318: // Unless required by applicable law or agreed to in writing, software tomwalters@318: // distributed under the License is distributed on an "AS IS" BASIS, tomwalters@318: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. tomwalters@318: // See the License for the specific language governing permissions and tomwalters@318: // limitations under the License. tomwalters@268: tomwalters@273: %module aimc tomwalters@273: %include "std_string.i" tomwalters@334: %include stl.i tomwalters@336: %include "std_vector.i" tomwalters@336: tomwalters@336: namespace std { tomwalters@336: %template(FloatVector) vector; tomwalters@336: } tomwalters@336: tomwalters@268: %{ tomwalters@268: #include "Support/Common.h" tomwalters@268: #include "Support/Module.h" tomwalters@268: #include "Support/Parameters.h" tomwalters@268: #include "Support/SignalBank.h" tomwalters@285: #include "Modules/BMM/ModuleGammatone.h" tomwalters@285: #include "Modules/BMM/ModulePZFC.h" tomwalters@285: #include "Modules/NAP/ModuleHCL.h" tomwalters@285: #include "Modules/Strobes/ModuleParabola.h" tomwalters@305: #include "Modules/Strobes/ModuleLocalMax.h" tomwalters@285: #include "Modules/SAI/ModuleSAI.h" tomwalters@285: #include "Modules/SSI/ModuleSSI.h" tomwalters@285: #include "Modules/Profile/ModuleSlice.h" tomwalters@292: #include "Modules/Profile/ModuleScaler.h" tomwalters@411: #include "Modules/Features/ModuleGaussians.h" tomwalters@268: %} tomwalters@268: tomwalters@285: %include "Support/Parameters.h" tomwalters@336: using namespace std; tomwalters@285: %include "Support/SignalBank.h" tomwalters@334: tomwalters@334: namespace aimc { tomwalters@334: using std::ostream; tomwalters@334: using std::set; tomwalters@334: using std::string; tomwalters@334: class Module { tomwalters@334: public: tomwalters@334: explicit Module(Parameters *parameters); tomwalters@334: virtual ~Module(); tomwalters@410: virtual bool Initialize(const SignalBank &input, tomwalters@410: Parameters *global_parameters); tomwalters@334: bool initialized() const; tomwalters@334: bool AddTarget(Module* target_module); tomwalters@334: bool RemoveTarget(Module* target_module); tomwalters@334: void RemoveAllTargets(); tomwalters@334: virtual void Process(const SignalBank &input) = 0; tomwalters@334: void Reset(); tomwalters@334: const SignalBank* GetOutputBank() const; tomwalters@334: string version() const; tomwalters@334: string id() const; tomwalters@334: string description() const; tomwalters@334: string type() const; tomwalters@334: }; tomwalters@334: } tomwalters@334: tomwalters@285: %include "Modules/BMM/ModuleGammatone.h" tomwalters@285: %include "Modules/BMM/ModulePZFC.h" tomwalters@285: %include "Modules/NAP/ModuleHCL.h" tomwalters@285: %include "Modules/Strobes/ModuleParabola.h" tomwalters@305: %include "Modules/Strobes/ModuleLocalMax.h" tomwalters@285: %include "Modules/SAI/ModuleSAI.h" tomwalters@285: %include "Modules/SSI/ModuleSSI.h" tomwalters@285: %include "Modules/Profile/ModuleSlice.h" tomwalters@292: %include "Modules/Profile/ModuleScaler.h" tomwalters@411: %include "Modules/Features/ModuleGaussians.h"