| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac ;;;RT audio out |
| 5 |
;-iadc ;;;uncomment -iadc if RT audio input is needed too |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o comb.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 |
gamix init 0 |
| 17 |
|
| 18 |
instr 1 |
| 19 |
|
| 20 |
kcps expon p5, p3, p4 |
| 21 |
asig vco2 0.3, kcps |
| 22 |
outs asig, asig |
| 23 |
|
| 24 |
gamix = gamix + asig |
| 25 |
|
| 26 |
endin |
| 27 |
|
| 28 |
instr 99 |
| 29 |
|
| 30 |
krvt = 3.5 |
| 31 |
ilpt = 0.1 |
| 32 |
aleft comb gamix, krvt, ilpt |
| 33 |
aright comb gamix, krvt, ilpt*.2 |
| 34 |
outs aleft, aright |
| 35 |
|
| 36 |
clear gamix ; clear mixer |
| 37 |
|
| 38 |
endin |
| 39 |
|
| 40 |
</CsInstruments> |
| 41 |
<CsScore> |
| 42 |
|
| 43 |
i 1 0 3 20 2000 |
| 44 |
i 1 5 .01 440 440 |
| 45 |
|
| 46 |
i 99 0 8 |
| 47 |
e |
| 48 |
|
| 49 |
</CsScore> |
| 50 |
</CsoundSynthesizer> |