| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac -Q1 -M0 ;;;realtime audio out and midi in and out |
| 5 |
;-iadc ;;;uncomment -iadc if realtime audio input is needed too |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o outipb.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
sr = 44100 |
| 12 |
ksmps = 10 |
| 13 |
nchnls = 2 |
| 14 |
|
| 15 |
instr 1 |
| 16 |
|
| 17 |
ikey notnum |
| 18 |
ivel veloc |
| 19 |
|
| 20 |
ipb = 10 ;a little out of tune |
| 21 |
outipb 1, ipb, 0, 127 ;(= pitchbend) |
| 22 |
midion 1, ikey, ivel ;of external synth |
| 23 |
|
| 24 |
endin |
| 25 |
</CsInstruments> |
| 26 |
<CsScore> |
| 27 |
f0 30 |
| 28 |
|
| 29 |
e |
| 30 |
</CsScore> |
| 31 |
</CsoundSynthesizer> |