Debian Codegraph @

examples/FLxyin-2.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in No messages
5 -odac -iadc -d ;;;RT audio I/O
6 </CsOptions>
7 <CsInstruments>
8
9 sr=44100
10 kr=441
11 ksmps=100
12 nchnls=2
13
14 ; Example by Gabriel Maldonado
15
16 FLpanel "Move the mouse inside this panel to hear the effect",400,400
17 FLpanel_end
18 FLrun
19
20 instr 1
21
22 k1, k2, kinside FLxyin 50, 1000, 50, 1000, 100, 300, 50, 250, -2,-3
23 ;if k1 <= 50 || k1 >=5000 || k2 <=100 || k2 >= 8000 kgoto end ; if cursor is outside bounds, then don't play!!!
24
25 a1 oscili 3000, k1, 1
26 a2 oscili 3000, k2, 1
27
28 outs a1,a2
29 printk2 k1
30 printk2 k2, 10
31 printk2 kinside, 20
32 end:
33 endin
34
35 </CsInstruments>
36 <CsScore>
37
38 f1 0 1024 10 1
39 f2 0 17 19 1 1 90 1
40 f3 0 17 19 2 1 90 1
41 i1 0 3600
42
43 </CsScore>
44 </CsoundSynthesizer>