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