| 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 |
ksmps=128 |
| 11 |
nchnls=2 |
| 12 |
|
| 13 |
;Example by Andres Cabrera 2007 |
| 14 |
|
| 15 |
FLpanel "FLkeyIn", 400, 300, -1, -1, 5, 1, 1 |
| 16 |
FLpanelEnd |
| 17 |
|
| 18 |
FLrun |
| 19 |
|
| 20 |
0dbfs = 1 |
| 21 |
|
| 22 |
instr 1 |
| 23 |
kascii FLkeyIn |
| 24 |
ktrig changed kascii |
| 25 |
if (kascii > 0) then |
| 26 |
printf "Key Down: %i\n", ktrig, kascii |
| 27 |
else |
| 28 |
printf "Key Up: %i\n", ktrig, -kascii |
| 29 |
endif |
| 30 |
endin |
| 31 |
|
| 32 |
</CsInstruments> |
| 33 |
<CsScore> |
| 34 |
i 1 0 120 |
| 35 |
e |
| 36 |
|
| 37 |
</CsScore> |
| 38 |
</CsoundSynthesizer> |