see http://www.csounds.com/journal/issue7/commandLineFXProcessing.html
You use the ftgen to dynamically build table in the orchestra section (not the score section), and you can pass a variable field through with --omacro:Filename="/foo/path/file.wav"
gitemp ftgen 1, 0, isize, 1, "$Filename", 0, 0, 1
I didn't try this with [csound~] yet, there may be issues with passing in strings that you need to deal with
a.
On Mon, 13 Sep 2010 12:25:05 -0700 ronni montoya ronni.montoya@gmail.com wrote:
Hello everybody, im using csound with pd using csoundapi, Im not really a csound guy so i been mostly experimenting with csound codes made by other, like granular synthesis codes. If i want to send a parameter from pd to csound i just add this line in csound: gk3 invalue "grain_size"
I was wondering how can a do for loading sounds in csound from pd. i would like to have different options like sound1.wav, sound2.wav , sound3.wav. as pd messages and then just select from pd the sound i want to load into csound. Do anybody know can i do this in csound/pd?
This is my code in csound with the sound i would like to change from pd:
<CsScore> f1 0 0 1 "kukon.aif" 0 0 1 f2 0 1025 20 2 1
i1 0 3600
</CsScore>
thanks in advance
Ronni
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list