| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
; Audio out No messages |
| 5 |
-odac -d ;;;RT audio out |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o wterrain.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 |
instr 1 |
| 17 |
|
| 18 |
kdclk linseg 0, 0.01, 1, p3-0.02, 1, 0.01, 0 |
| 19 |
kcx line 0.1, p3, 1.9 |
| 20 |
krx linseg 0.1, p3/2, 0.5, p3/2, 0.1 |
| 21 |
kpch line cpspch(p4), p3, p5 * cpspch(p4) |
| 22 |
a1 wterrain .5, kpch, kcx, kcx, -krx, krx, p6, p7 |
| 23 |
a1 dcblock a1 |
| 24 |
outs a1*kdclk, a1*kdclk |
| 25 |
|
| 26 |
endin |
| 27 |
|
| 28 |
|
| 29 |
</CsInstruments> |
| 30 |
<CsScore> |
| 31 |
f1 0 8192 10 1 0 0.33 0 0.2 0 0.14 0 0.11 |
| 32 |
f2 0 4096 10 1 |
| 33 |
|
| 34 |
i1 0 4 7.00 1 1 1 |
| 35 |
i1 4 4 6.07 1 1 2 |
| 36 |
i1 8 8 6.00 1 2 2 |
| 37 |
e |
| 38 |
</CsScore> |
| 39 |
</CsoundSynthesizer> |