Hi,
I tried to copy and paste the OSCinit example from the Csound documentation in an effect and it is not working. I previously tried to create an effect using the same opcode and couldn’t make it work, do you know why? I tried to install csound plugins and reinstall csound with no luck. I am using the latest pro version on MacOS.
Thanks!
<Cabbage>
form caption("Untitled") size(400, 300), guiMode("queue") pluginId("def1")
rslider bounds(296, 162, 100, 100), channel("gain"), range(0, 1, 0, 1, .01), text("Gain"), trackerColour("lime"), outlineColour(0, 0, 0, 50), textColour("black")
</Cabbage>
<CsoundSynthesizer>
<CsOptions>
-n -d
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 100
nchnls = 2
gihandle OSCinit 7770
instr 1
kf1 init 0
kf2 init 0
nxtmsg:
kk OSClisten gihandle, "/foo/bar", "ff", kf1, kf2
if (kk == 0) goto ex
printk 0, kf1
printk 0, kf2
kgoto nxtmsg
ex:
endin
</CsInstruments>
<CsScore>
f0 z
i1 0 [60*60*24*7]
</CsScore>
</CsoundSynthesizer>
/*============================================================*/
UnifiedCSD: /Users/julienbeisel/test.csd
error: syntax error, unexpected T_IDENT (token "OSCinit")
from file /Users/julienbeisel/test.csd (1), line 19:
>>> gihandle OSCinit <<<
Unexpected untyped word gihandle when expecting a variable
Parsing failed due to invalid input!
Stopping on parser failure
cannot compile orchestra

