Mercurial > hg > aimc
annotate trunk/swig/example.py @ 273:c26222c51fb7
- Fixed the python SWIG wrappers
- Added stub test for the Gaussian features, and test data
- Fixed build errors
author | tomwalters |
---|---|
date | Mon, 15 Feb 2010 20:37:26 +0000 |
parents | e14c70d1b171 |
children | 30dde71d0230 |
rev | line source |
---|---|
tomwalters@268 | 1 #!/usr/bin/env python |
tomwalters@268 | 2 # Copyright 2010, Thomas Walters |
tomwalters@268 | 3 # |
tomwalters@268 | 4 # AIM-C: A C++ implementation of the Auditory Image Model |
tomwalters@273 | 5 # http://www.acousticscale.org/AIMC |
tomwalters@268 | 6 # |
tomwalters@268 | 7 # This program is free software: you can redistribute it and/or modify |
tomwalters@268 | 8 # it under the terms of the GNU General Public License as published by |
tomwalters@268 | 9 # the Free Software Foundation, either version 3 of the License, or |
tomwalters@268 | 10 # (at your option) any later version. |
tomwalters@268 | 11 # |
tomwalters@268 | 12 # This program is distributed in the hope that it will be useful, |
tomwalters@268 | 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
tomwalters@268 | 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
tomwalters@268 | 15 # GNU General Public License for more details. |
tomwalters@268 | 16 # |
tomwalters@268 | 17 # You should have received a copy of the GNU General Public License |
tomwalters@273 | 18 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
tomwalters@268 | 19 |
tomwalters@268 | 20 import aimc |
tomwalters@273 | 21 params = aimc.Parameters() |
tomwalters@273 | 22 mod_gauss = aimc.ModuleGaussians(params) |
tomwalters@273 | 23 sig = aimc.SignalBank() |
tomwalters@273 | 24 sig.Initialize(115, 1, 44100) |
tomwalters@273 | 25 mod_gauss.Initialize(sig) |
tomwalters@273 | 26 mod_gauss.Process(sig) |
tomwalters@268 | 27 |