Debian Codegraph @

examples/loopxseg.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 loopxseg.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 kfreq rspline 0.01,20,0.2,1 ; freq. of loop repetition created by random spline
18 ktrig init 0 ; loop restart trigger (not used)
19 iphase = 0 ; initial phase
20 ; loop of filter cutoff values (oct format). Rescaled further down.
21 kcfoct loopxseg kfreq, ktrig, iphase, 1,1,0,0
22 kenv linseg 0,0.01,1,p3-5.01,1,5,0
23 asig vco2 0.2*kenv,cpsmidinn(48),0
24 kdep rspline 5,8,0.2,1 ; filter depth created by a random spline
25 kcf port cpsoct((kcfoct*kdep)+4), 0.001 ; smooth filter changes
26 asig moogladder asig,kcf,rnd(0.6)
27 aL,aR pan2 asig,rnd(1)
28 outs aL, aR
29 endin
30
31 </CsInstruments>
32 <CsScore>
33 i 1 0 60
34 e
35 </CsScore>
36 </CsoundSynthesizer>