Debian Codegraph @

src/Examples/FLOSS Manual Examples/08 Other Communication/08B02_Processing_to_Csound.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 -o dac
4 </CsOptions>
5 <CsInstruments>
6 sr = 44100
7 ksmps = 8
8 nchnls = 1
9 0dbfs = 1
10
11 ; handle used to reference osc stream
12 gihandle OSCinit 12001
13
14 instr 1
15 ; initialise variable used for analog values
16 gkana0 init 0
17 ; read in OSC channel '/analog/0'
18 gktrigana0 OSClisten gihandle, "/analog/0", "i", gkana0
19 ; print changed values to terminal
20 printk2 gkana0
21 endin
22
23 </CsInstruments>
24 <CsScore>
25 i 1 0 3600
26 </CsScore>
27 </CsoundSynthesizer>
28 ;example by Iain McCurdy