Debian Codegraph @

examples/vdelayxs.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 vdelayxs.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; by Menno Knevel 2022
12
13 sr = 44100
14 ksmps = 32
15 nchnls = 2
16 0dbfs = 1
17
18 instr 1
19
20 ims = .5 ;maximum delay time in seconds
21 iws = 1024 ;window size
22 adl = .5 ;delay time
23 asig1, asig2 diskin2 "drumsSlp.wav", 1, 0, 1 ;loop stereo file
24 a2 poscil .25, .1, 1 ;make an LFO, 1 cycle per 2 seconds
25 adl = a2 + ims/2 ;offset the LFO so that it is positive
26 aoutL, aoutR vdelayxs asig1, asig2, adl, ims, iws ;use the LFO to control delay time
27 outs aoutL, aoutR
28
29 endin
30 </CsInstruments>
31 <CsScore>
32 f1 0 8192 10 1
33
34 i 1 0 10
35
36 e
37 </CsScore>
38 </CsoundSynthesizer>