Mercurial > hg > aimc
comparison swig/example.py @ 149:a61f41b221e1
corrected a bug in the swig example and added a new more complex example
author | hamel.phil |
---|---|
date | Wed, 05 Jan 2011 18:48:02 +0000 |
parents | a9cb396529c2 |
children | 9fcf55c040fe |
comparison
equal
deleted
inserted
replaced
148:89215dab69c5 | 149:a61f41b221e1 |
---|---|
17 # limitations under the License. | 17 # limitations under the License. |
18 | 18 |
19 import aimc | 19 import aimc |
20 module_params = aimc.Parameters() | 20 module_params = aimc.Parameters() |
21 global_params = aimc.Parameters() | 21 global_params = aimc.Parameters() |
22 mod_gauss = aimc.ModuleGaussians(params) | 22 mod_gauss = aimc.ModuleGaussians(module_params) |
23 sig = aimc.SignalBank() | 23 sig = aimc.SignalBank() |
24 sig.Initialize(115, 1, 44100) | 24 sig.Initialize(115, 1, 44100) |
25 mod_gauss.Initialize(sig, global_params) | 25 mod_gauss.Initialize(sig, global_params) |
26 mod_gauss.Process(sig) | 26 mod_gauss.Process(sig) |
27 | 27 |