Debian Codegraph @

src/Examples/FLOSS Manual Examples/05 Sound Modification/05D01_delay.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 -odac ; activates real time sound output
4 </CsOptions>
5 <CsInstruments>
6 sr = 44100
7 ksmps = 32
8 nchnls = 2
9 0dbfs = 1
10
11 instr 1
12 ; -- create an input signal: short 'blip' sounds --
13 kEnv loopseg 0.5, 0, 0, 0,0.0005, 1 , 0.1, 0, 1.9, 0, 0
14 kCps randomh 400, 600, 0.5
15 aEnv interp kEnv
16 aSig poscil aEnv, kCps
17
18 ; -- create a delay buffer --
19 aBufOut delayr 0.3
20 delayw aSig
21
22 ; -- send audio to output (input and output to the buffer are mixed)
23 aOut = aSig + (aBufOut*0.4)
24 out aOut/2, aOut/2
25 endin
26
27 </CsInstruments>
28 <CsScore>
29 i 1 0 25
30 </CsScore>
31 </CsoundSynthesizer>
32 ;example by Iain McCurdy