Mercurial > hg > aimc
annotate swig/example.py @ 646:e76951e4da20
Style fixes.
- Fix most lint errors found by
http://google-styleguide.googlecode.com/svn/trunk/cpplint/cpplint.py
- Clean up commenting style.
- Alphabetize #includes and using statements.
author | ronw@google.com |
---|---|
date | Tue, 11 Jun 2013 20:41:15 +0000 |
parents | 0a8fac5bbfeb |
children |
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@237 | 20 module_params = aimc.Parameters() |
tomwalters@237 | 21 global_params = aimc.Parameters() |
hamel@260 | 22 mod_gauss = aimc.ModuleGaussians(module_params) |
tomwalters@1 | 23 sig = aimc.SignalBank() |
tomwalters@1 | 24 sig.Initialize(115, 1, 44100) |
tomwalters@237 | 25 mod_gauss.Initialize(sig, global_params) |
tomwalters@1 | 26 mod_gauss.Process(sig) |
tomwalters@0 | 27 |