File: osclisten.csd

package info (click to toggle)
csound 1%3A6.03.2~dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 45,708 kB
  • ctags: 30,934
  • sloc: ansic: 166,298; cpp: 57,275; python: 9,433; xml: 1,302; yacc: 1,072; lex: 833; perl: 635; java: 618; lisp: 562; sh: 514; makefile: 459; tcl: 341
file content (28 lines) | stat: -rw-r--r-- 693 bytes parent folder | download | duplicates (3)
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>