| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac -Q1 ;;;realtime audio out with MIDI out |
| 5 |
;-iadc ;;;uncomment -iadc if realtime audio input is needed too |
| 6 |
</CsOptions> |
| 7 |
<CsInstruments> |
| 8 |
|
| 9 |
sr = 44100 |
| 10 |
ksmps = 32 |
| 11 |
nchnls = 2 |
| 12 |
0dbfs = 1 |
| 13 |
|
| 14 |
instr 1 ; change attack time of external synth |
| 15 |
|
| 16 |
initc7 1, 6, 0 ; set controller 6 to 0 |
| 17 |
nrpn 1, 99, 1 ; set MSB |
| 18 |
nrpn 1, 98, 99 ; set LSB |
| 19 |
katt ctrl7 1, 6, 1, 127 ; DataEntMSB |
| 20 |
idur = 2 |
| 21 |
noteondur2 1, 60, 100, idur ; play note on synth |
| 22 |
|
| 23 |
endin |
| 24 |
</CsInstruments> |
| 25 |
<CsScore> |
| 26 |
|
| 27 |
i 1 0 3 |
| 28 |
e |
| 29 |
</CsScore> |
| 30 |
</CsoundSynthesizer> |