| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
;-odac ;;;realtime audio out |
| 5 |
;-iadc ;;;uncomment -iadc if realtime audio input is needed too |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
-o plate.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
; Note: this example is heavy on CPU |
| 11 |
sr = 44100 |
| 12 |
ksmps = 32 |
| 13 |
nchnls = 2 |
| 14 |
0dbfs = 1 |
| 15 |
|
| 16 |
instr 1 |
| 17 |
|
| 18 |
ab diskin2 "drumsMlp.wav", 1 |
| 19 |
al,ar platerev 1, 2, p4, 0.73, 1.0, 5.0, 0.001, ab,ab |
| 20 |
outs al*.25,ar*.25 |
| 21 |
|
| 22 |
endin |
| 23 |
</CsInstruments> |
| 24 |
<CsScore> |
| 25 |
f1 0 8 -2 0.3 0.3875 0.39274 0.32 0.85714 0.78548 |
| 26 |
f2 0 8 -2 0.2 0.666667 1.57097 0.24 0.75 0.78548 |
| 27 |
i1 0 4 1 |
| 28 |
i1 + 4 2 |
| 29 |
e |
| 30 |
|
| 31 |
</CsScore> |
| 32 |
</CsoundSynthesizer> |