| I'm trying to pass a variable through an orchestra macro. Is it possible
to pass a string in a macro? It seams not to compile with the "".
Here's the command line and the error. Thanks for any help.
Luís
[macmusg5-7:data_luis/csnd-utilities/orcsco] luis% csound -dodac
--omacro:FILCOD="/Volumes/data/data_luis/MozArt/sfdir/mozart7.aiff"
--smacro:DUR=10 splay.csd
...
Macro definition for
omacro:FILCOD=/Volumes/data/data_luis/MozArt/sfdir/mozart7.aiff
Macro definition for
omacro:FILCOD=/Volumes/data/data_luis/MozArt/sfdir/mozart7.aiff
orch compiler:
12 lines read
instr 1
error: expression syntax, line 8:
a1, a2 diskin /Volumes/data/data_luis/MozArt/sfdir/mozart7.aiff, 1
unary mult or divide: /Volumes/data/data_luis/MozArt/sfdir/mozart7.aiff
1 syntax errors in orchestra. compilation invalid
nchnls=2
instr 1
a1, a2 diskin $FILCOD, 1
outs a1, a2
endin
f1 0 512 10 1
i1 0 $DUR
e
Version: 3
Render: Real
Ask: Yes
Functions: ioObject
WindowBounds: 427 468 927 867
Options: -b128 -A -s -m7 -R
ioView background {60108, 65535, 63132}
ioListing {75, 280} {562, 166}
ioGraph {163, 38} {472, 230}
ioSlider {76, 39} {34, 229} 20.000000 2000.000000 299.773987 pitch
--
Luís Antunes Pena
http://icem.folkwang-hochschule.de/~pena |