Debian Codegraph @

src/Examples/FLOSS Manual Examples/05 Sound Modification/05D04_deltapi.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 aEnv interp kEnv
15 aSig poscil aEnv, 500
16
17 aDelayTime randomi 0.05, 0.2, 1 ; modulating delay time
18 ; -- create a delay buffer --
19 aBufOut delayr 0.2 ; read audio from end of buffer
20 aTap deltapi aDelayTime ; 'tap' the delay buffer
21 delayw aSig + (aTap*0.9) ; write audio into buffer
22
23 ; send audio to the output (mix the input signal with the delayed signal)
24 aOut linen aSig + (aTap*0.4), .1, p3, 1
25 out aOut/2, aOut/2
26 endin
27
28 </CsInstruments>
29 <CsScore>
30 i 1 0 30
31 </CsScore>
32 </CsoundSynthesizer>
33 ;example by Iain McCurdy