Debian Codegraph @

examples/musical/Ftmorf_Cucchi.csd

raw
1 <CsoundSynthesizer>
2
3 <CsOptions>
4
5 ; Select audio/midi flags here according to platform
6 -odac ;;;realtime audio out
7 ;-iadc ;;;uncomment -iadc if realtime audio input is needed too
8 ; For Non-realtime ouput leave only the line below:
9 ; -o Ftmorf_Cucchi.wav -W ;;; for file output any platform
10
11 ; By Stefano Cucchi - 2022
12
13 </CsOptions>
14
15 <CsInstruments>
16
17 sr = 48000
18 kr = 4800
19 ksmps = 10
20 nchnls = 2
21 0dbfs = 1
22
23
24 garevL init 0
25 garevR init 0
26
27 instr 1
28
29
30 kgenenvelop linseg 0, 0.3, 0.3, p3-0.6, 0.2, 0.3, 0
31
32 kftndx1 linseg 0, p3, 7
33 iresfn1 = 2
34 iftfn1 = 1
35 ftmorf kftndx1, iftfn1, iresfn1
36 asuono1 oscili 0.5, p4, 2
37 outch 1, asuono1 * kgenenvelop
38
39 kftndx2 linseg 7, p3*0.5, 0, p3*0.5, 7
40 iresfn2 = 2
41 iftfn2 = 1
42 ftmorf kftndx2, iftfn2, iresfn2
43 asuono2 oscili 0.5, p5, 2
44 outch 2, asuono2 * kgenenvelop
45
46 kftndx3 linseg 0, p3*0.2, 7, p3*0.8, 0
47 iresfn3 = 2
48 iftfn3 = 1
49 ftmorf kftndx3, iftfn3, iresfn3
50 asuono3 oscili 0.5, p6, 2
51 outch 1, asuono3 * kgenenvelop
52
53
54 kftndx4 linseg 3, p3*0.2, 7, p3*0.8, 0
55 iresfn4 = 2
56 iftfn4 = 1
57 ftmorf kftndx4, iftfn4, iresfn4
58 asuono4 oscili 0.5, p7, 2
59 outch 2, asuono4 * kgenenvelop
60
61
62 garevL = garevL + (asuono1+asuono3)*kgenenvelop
63 garevR = garevR + (asuono2+asuono4)*kgenenvelop
64
65
66 endin
67
68
69 instr 10
70
71 arevL reverb2 garevL, 2.4, 0.4
72 arevR reverb2 garevR, 2.2, 0.8
73
74 outch 1, arevR*0.2
75 outch 2, arevL*0.2
76
77
78 clear garevL
79 clear garevR
80
81 endin
82
83 </CsInstruments>
84
85 <CsScore>
86
87 f1 0 8 -2 3 4 5 6 7 8 9 10 ;
88 f2 0 4097 10 1 /*contents of f4 dont matter */
89
90 f3 0 4097 10 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
91 f4 0 4097 10 1 0 1
92 f5 0 4097 10 1 0 1 0 1 0 1 0 1 0 0 0 0 0 1
93 f6 0 4097 -7 1 2000 1 10 -1 2000 -1 87 1
94 f7 0 4097 10 1 1 1 1 1 1 0 0 1 0 1 0 1 1
95 f8 0 4097 10 1 1 1 0 1 1 0 0 0 1 0 1 1
96 f9 0 4097 -7 1 2000 -1 10 1 2000 -1 87 1
97 f10 0 4097 10 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1
98
99
100 i1 0 20 57 57.2 57.7 58.1
101 i 10 0 25
102
103 e 3
104
105 </CsScore>
106
107 </CsoundSynthesizer>