Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 5fcfcb7517038d1f44ab4e478e6e61fa > files > 2556

csound-doc-6.10.0-1.mga7.noarch.rpm

<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>