| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
; Audio out Audio in |
| 5 |
-odac ;;;RT audio out |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
;-o nreverb.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
sr = 44100 |
| 12 |
ksmps = 32 |
| 13 |
nchnls = 2 |
| 14 |
0dbfs = 1 |
| 15 |
|
| 16 |
gaout init 0 |
| 17 |
|
| 18 |
instr 1 |
| 19 |
a1 oscili .5, 440 |
| 20 |
outs a1, a1 |
| 21 |
|
| 22 |
gaout = gaout+a1 |
| 23 |
endin |
| 24 |
|
| 25 |
instr 99 |
| 26 |
|
| 27 |
a2 nreverb gaout, 2, .3 |
| 28 |
outs a2*.15, a2*.15 ;volume of reverb |
| 29 |
|
| 30 |
gaout = 0 |
| 31 |
endin |
| 32 |
|
| 33 |
</CsInstruments> |
| 34 |
<CsScore> |
| 35 |
|
| 36 |
i 1 0 .5 |
| 37 |
i 1 1 .5 |
| 38 |
i 1 2 .5 |
| 39 |
i 1 3 .5 |
| 40 |
i 1 4 .5 |
| 41 |
i 99 0 9 |
| 42 |
e |
| 43 |
</CsScore> |
| 44 |
</CsoundSynthesizer> |