| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
; Audio out Audio in |
| 5 |
-odac -iadc ;;;RT audio I/O |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o cigoto.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
|
| 12 |
sr=44100 |
| 13 |
kr=4410 |
| 14 |
ksmps=10 |
| 15 |
nchnls=2 |
| 16 |
|
| 17 |
instr 1 ;table playback |
| 18 |
ar lposcil 1, 1, 0, 262144, 1 |
| 19 |
outs ar,ar |
| 20 |
endin |
| 21 |
|
| 22 |
instr 2 |
| 23 |
vcopy 2, 1, 40000 ;copy vector from sample to empty table |
| 24 |
vmult 5, 10000, 262144 ;scale noise to make it audible |
| 25 |
vcopy 1, 5, 40000 ;put noise into sample |
| 26 |
turnoff |
| 27 |
endin |
| 28 |
|
| 29 |
instr 3 |
| 30 |
vcopy 1, 2, 40000 ;put original information back in |
| 31 |
turnoff |
| 32 |
endin |
| 33 |
|
| 34 |
</CsInstruments> |
| 35 |
<CsScore> |
| 36 |
f1 0 262144 -1 "drumsMlp.wav" 0 4 0 |
| 37 |
f2 0 262144 2 0 |
| 38 |
|
| 39 |
f5 0 262144 21 3 30000 |
| 40 |
|
| 41 |
i1 0 4 |
| 42 |
i2 3 1 |
| 43 |
|
| 44 |
s |
| 45 |
i1 0 4 |
| 46 |
i3 3 1 |
| 47 |
s |
| 48 |
|
| 49 |
i1 0 4 |
| 50 |
|
| 51 |
</CsScore> |
| 52 |
</CsoundSynthesizer> |