Debian Codegraph @

examples/musical/Poisson_Cucchi.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 RT audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o Poisson_Cucchi -W ;;; for file output any platform
8
9 ; By Stefano Cucchi - 2024
10
11 </CsOptions>
12 <CsInstruments>
13
14 sr = 44100
15 ksmps = 32
16 nchnls = 2
17 0dbfs = 1
18
19 instr 1
20
21 klambda1 linseg p4, p3, p5
22 kindex poisson klambda1
23
24 klambda2 linseg p6, p3, p7
25 ktrigfreq poisson klambda2
26
27 ksig poscil 1, ktrigfreq
28 ktrig trigger ksig, 0, 0
29
30 schedkwhen ktrig, 0, 20, 10, 0, 0.2, kindex, 10
31
32 endin
33
34 instr 10
35
36 kcnt = p4
37 kpc table kcnt, p5
38 kcps = cpspch(kpc)
39
40 asig1 oscil 0.5, kcps, 1
41
42 kenvelope linseg 0, p3*0.5, 1, p3*0.5, 0
43
44 asig1 = asig1*kenvelope
45 outs asig1, asig1
46
47 endin
48
49 </CsInstruments>
50 <CsScore>
51
52 f 1 0 4096 10 1 0 1 0 1 0 0 1 1
53
54 f 10 0 24 -2 8.00 8.01 8.02 8.03 8.04 8.05 8.06 8.07 8.08 8.09 8.10 8.11 9.00 9.01 9.02 9.03 9.04 9.05 9.06 9.07 9.08 9.09 9.10 9.11
55
56 i1 0 30 0 23 2 17
57
58 e
59 </CsScore>
60 </CsoundSynthesizer>