Debian Codegraph @

examples/vdelayxq.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 vdelayxq.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 nchnls = 4
14 0dbfs = 1
15
16 instr 1
17
18 ims = .5 ;maximum delay time in seconds
19 iws = 1024 ;window size
20 adl = .5
21 aout1 diskin2 "drumsMlp.wav", 1, 0, 1 ;loop drumsMlp.wav
22 aout2 diskin2 "fox.wav", 1, 0, 1 ;loop fox.wav
23 aout3 diskin2 "Church.wav", 1, 0, 1 ;loop Church.wav
24 aout4 diskin2 "flute.aiff", 1, 0, 1 ;loop flute.aiff
25 a2 poscil .1, .5, 1 ;make an LFO, 1 cycle per 2 seconds
26 adl = a2 + ims/2 ;offset the LFO so that it is positive
27 aout1, aout2, aout3, aout4 vdelayxq aout1, aout2, aout3, aout4, adl, ims, iws; Use the LFO to control delay time
28 outq aout1, aout2, aout3, aout4
29
30 endin
31 </CsInstruments>
32 <CsScore>
33 f1 0 8192 10 1
34
35 i 1 0 10
36
37 e
38 </CsScore>
39 </CsoundSynthesizer>