| 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 delay.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 |
adel init 0 |
| 19 |
ilev = p4 ;level of direct sound |
| 20 |
idelay = p5 *.001 ;Delay in ms |
| 21 |
ifd = p6 ;feedback |
| 22 |
|
| 23 |
ain diskin2 "Mathews.wav", 1, 1 |
| 24 |
adel delay ain + (adel*ifd), idelay;ifd = amount of feedback |
| 25 |
asig moogvcf adel, 1500, .6, 1 ;color feedback |
| 26 |
outs asig*ilev, ain |
| 27 |
|
| 28 |
endin |
| 29 |
|
| 30 |
</CsInstruments> |
| 31 |
<CsScore> |
| 32 |
;Delay is in ms |
| 33 |
i 1 0 5 1.5 200 .95 ;with feedback |
| 34 |
i 1 + 5 1.5 20 .95 |
| 35 |
i 1 + 3 1.5 5 .95 |
| 36 |
i 1 + 7 2 5 0 ;no feedback |
| 37 |
|
| 38 |
e |
| 39 |
</CsScore> |
| 40 |
</CsoundSynthesizer> |