annotate swig/example.py @ 137:11892847d095

- Put the SSI feautres config back how it was.
author tom@acousticscale.org
date Tue, 26 Oct 2010 16:48:03 +0000
parents a9cb396529c2
children a61f41b221e1
rev   line source
tomwalters@0 1 #!/usr/bin/env python
tomwalters@0 2 # Copyright 2010, Thomas Walters
tomwalters@0 3 #
tomwalters@0 4 # AIM-C: A C++ implementation of the Auditory Image Model
tomwalters@1 5 # http://www.acousticscale.org/AIMC
tomwalters@0 6 #
tomwalters@45 7 # Licensed under the Apache License, Version 2.0 (the "License");
tomwalters@45 8 # you may not use this file except in compliance with the License.
tomwalters@45 9 # You may obtain a copy of the License at
tomwalters@0 10 #
tomwalters@45 11 # http://www.apache.org/licenses/LICENSE-2.0
tomwalters@0 12 #
tomwalters@45 13 # Unless required by applicable law or agreed to in writing, software
tomwalters@45 14 # distributed under the License is distributed on an "AS IS" BASIS,
tomwalters@45 15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
tomwalters@45 16 # See the License for the specific language governing permissions and
tomwalters@45 17 # limitations under the License.
tomwalters@0 18
tomwalters@0 19 import aimc
tomwalters@126 20 module_params = aimc.Parameters()
tomwalters@126 21 global_params = aimc.Parameters()
tomwalters@1 22 mod_gauss = aimc.ModuleGaussians(params)
tomwalters@1 23 sig = aimc.SignalBank()
tomwalters@1 24 sig.Initialize(115, 1, 44100)
tomwalters@126 25 mod_gauss.Initialize(sig, global_params)
tomwalters@1 26 mod_gauss.Process(sig)
tomwalters@0 27