Debian Codegraph @

examples/vdelayxw.csd

raw
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 vdelayxw.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 ;best quality
20 adl = .5 ;delay time
21 asig diskin2 "flute.aiff", .5, 0, 1 ;loop flute.aiff at half speed
22 a2 poscil3 .2, .1, 1 ;make an LFO, 1 cycle per 2 seconds
23 adl = a2 + ims/2 ;offset the LFO so that it is positive
24 aout vdelayxw 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>