/usr/share/doc/csound/examples/osclisten.csd is in csound 1:6.02~dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | <CsoundSynthesizer>
-m3 -otest2
<CsInstruments>
giport1 OSCinit 7770
giport2 OSCinit 7771
instr 1
kf1 init 0.0
Sf2 = ""
ktrig init 1
kk OSClisten giport1, "/foo/bar", "fs", kf1, Sf2
printf "Port 7770, /foo/bar: %f, %s\n", kk * ktrig, kf1, Sf2
kk OSClisten giport1, "/foo/blah", "fs", kf1, Sf2
printf "Port 7770, /foo/blah: %f, %s\n", kk * ktrig, kf1, Sf2
kk OSClisten giport2, "/foo/bar", "fs", kf1, Sf2
printf "Port 7771, /foo/bar: %f, %s\n", kk * ktrig, kf1, Sf2
ktrig = 3 - ktrig ; make sure that it always changes
endin
</CsInstruments>
<CsScore>
i 1 0 20
e
</CsScore>
</CsoundSynthesizer>
|