| 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 vdelayx.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 |
ims = .5 ;maximum delay time in seconds |
| 19 |
iws = 1024 ;window size |
| 20 |
adl = .5 ;delay time |
| 21 |
asig diskin2 "fox.wav", 1, 0, 1 ;loop fox.wav |
| 22 |
a2 poscil .2, .2, 1 ;make an LFO |
| 23 |
adl = a2 + ims/2 ;offset the LFO so that it is positive |
| 24 |
aout vdelayx asig, adl, ims, iws ;use the LFO to control delay time |
| 25 |
outs aout, aout |
| 26 |
|
| 27 |
endin |
| 28 |
</CsInstruments> |
| 29 |
<CsScore> |
| 30 |
f1 0 8192 10 1 |
| 31 |
|
| 32 |
i 1 0 10 |
| 33 |
|
| 34 |
e |
| 35 |
</CsScore> |
| 36 |
</CsoundSynthesizer> |