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