Debian Codegraph @

examples/vdelay.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 vdelay.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 = 100 ;maximum delay time in msec
19 aout poscil .8, 220, 1 ;make a signal
20 a2 poscil3 ims/2, 1/p3, 1 ;make an LFO
21 a2 = a2 + ims/2 ;offset the LFO so that it is positive
22 asig vdelay aout, a2, ims ;use the LFO to control delay time
23 outs asig, asig
24
25 endin
26 </CsInstruments>
27 <CsScore>
28 f1 0 8192 10 1 ;sine wave
29
30 i 1 0 5
31
32 e
33 </CsScore>
34 </CsoundSynthesizer>
35