Mercurial > hg > aimc
annotate swig/example.py @ 31:fa06bfacf004
-Typo in file path
author | tomwalters |
---|---|
date | Wed, 24 Feb 2010 15:18:00 +0000 |
parents | bc394a985042 |
children | c5f5e9569863 |
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@0 | 7 # This program is free software: you can redistribute it and/or modify |
tomwalters@0 | 8 # it under the terms of the GNU General Public License as published by |
tomwalters@0 | 9 # the Free Software Foundation, either version 3 of the License, or |
tomwalters@0 | 10 # (at your option) any later version. |
tomwalters@0 | 11 # |
tomwalters@0 | 12 # This program is distributed in the hope that it will be useful, |
tomwalters@0 | 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
tomwalters@0 | 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
tomwalters@0 | 15 # GNU General Public License for more details. |
tomwalters@0 | 16 # |
tomwalters@0 | 17 # You should have received a copy of the GNU General Public License |
tomwalters@1 | 18 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
tomwalters@0 | 19 |
tomwalters@0 | 20 import aimc |
tomwalters@1 | 21 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@1 | 25 mod_gauss.Initialize(sig) |
tomwalters@1 | 26 mod_gauss.Process(sig) |
tomwalters@0 | 27 |