Debian Codegraph @

examples/resonxk.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 resonxk.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 gisin ftgen 0, 0, 2^10, 10, 1
17
18 instr 1
19
20 ksig randomh 400, 1800, 150
21 aout poscil .2, 1000+ksig, gisin
22 outs aout, aout
23 endin
24
25 instr 2
26
27 ksig randomh 400, 1800, 150
28 kcf line 1, p3, 1000 ;vary high-pass
29 ilay = p4
30 ksig resonxk ksig, kcf, 100, ilay
31 aout poscil .2, 1000+ksig, gisin
32 asig interp ksig ;convert k-rate to a-rate
33 aout balance asig, aout ;avoid getting asig out of range
34 outs aout, aout
35 endin
36
37 </CsInstruments>
38 <CsScore>
39 i 1 0 5
40 i 2 6 5 1 ;number of filter stack = 1
41 i 2 12 5 5 ;number of filter stack = 5
42 e
43 </CsScore>
44 </CsoundSynthesizer>