Debian Codegraph @

examples/looptseg.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 looptseg.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 = 1 ; frequency of loop repetition
18 ktrig init 0 ; loop restart trigger (not used)
19 iphase = 0 ; initial phase
20 ktyp line 6,p3,-6 ; explore the useful range of curve types
21 ; loop of filter cutoff values (oct format)
22 ; value curve dur.
23 kcfoct looptseg kfreq, ktrig, iphase,13, ktyp, 1, \
24 4, ktyp, 0, \
25 11, ktyp, 1, \
26 4
27 asig vco2 0.2,cpsmidinn(48),0 ; a sawtooth
28 asig moogladder asig,cpsoct(kcfoct),rnd(0.6) ; filter sawtooth
29 outs asig, asig
30 endin
31
32 </CsInstruments>
33 <CsScore>
34 i 1 0 12
35 e
36 </CsScore>
37 </CsoundSynthesizer>