| 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 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o FLbutton.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
sr = 44100 |
| 12 |
nchnls = 1 |
| 13 |
|
| 14 |
FLpanel "Button Bank", 520, 140, 100, 100 |
| 15 |
;itype = 2 ;Light Buttons |
| 16 |
itype = 22 ;Plastic Light Buttons |
| 17 |
inumx = 10 |
| 18 |
inumy = 4 |
| 19 |
iwidth = 500 |
| 20 |
iheight = 120 |
| 21 |
ix = 10 |
| 22 |
iy = 10 |
| 23 |
iopcode = 0 |
| 24 |
istarttim = 0 |
| 25 |
idur = 1 |
| 26 |
|
| 27 |
gkbutton, ihbb FLbutBank itype, inumx, inumy, iwidth, iheight, ix, iy, iopcode, 1, istarttim, idur |
| 28 |
|
| 29 |
FLpanelEnd |
| 30 |
FLrun |
| 31 |
|
| 32 |
instr 1 |
| 33 |
ibutton = i(gkbutton) |
| 34 |
prints "Button %i pushed!\\n", ibutton |
| 35 |
endin |
| 36 |
|
| 37 |
</CsInstruments> |
| 38 |
<CsScore> |
| 39 |
|
| 40 |
; Real-time performance for 1 hour. |
| 41 |
f 0 3600 |
| 42 |
e |
| 43 |
|
| 44 |
|
| 45 |
</CsScore> |
| 46 |
</CsoundSynthesizer> |