tomwalters@268: #!/usr/bin/env python tomwalters@268: # Copyright 2010, Thomas Walters tomwalters@268: # tomwalters@268: # AIM-C: A C++ implementation of the Auditory Image Model tomwalters@273: # 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@268: import aimc tomwalters@411: module_params = aimc.Parameters() tomwalters@411: global_params = aimc.Parameters() hamel@447: mod_gauss = aimc.ModuleGaussians(module_params) tomwalters@273: sig = aimc.SignalBank() tomwalters@273: sig.Initialize(115, 1, 44100) tomwalters@411: mod_gauss.Initialize(sig, global_params) tomwalters@273: mod_gauss.Process(sig) tomwalters@268: