Debian Codegraph @

src/Scripts/Koenig-Essay/csds/G01.csd

raw
1 <CsoundSynthesizer>
2
3 ; Id: G01.CSD mg (2006, rev.2009)
4 ; author: marco gasperini (marcogsp at yahoo dot it)
5
6 ; G.M. Koenig
7 ; ESSAY (1957)
8
9 <CsOptions>
10 -W -f -oG01.wav
11 </CsOptions>
12
13 <CsInstruments>
14
15 sr = 192000
16 kr = 192000
17 ksmps = 1
18 nchnls = 1
19
20
21 ;=============================================
22 ; SINUS TONES (S)
23 ;=============================================
24 instr 1
25 iamp = ampdb(90+p4)
26 ifreq = p5
27
28 a1 oscili iamp , ifreq , 1
29 aenv expseg .001 , .005, 1 , p3-.01 ,1, .005,.001
30
31 aout = a1 * aenv
32
33 out aout
34 endin
35 ;=============================================
36
37 ;=============================================
38 ; FILTERED NOISE (N)
39 ;=============================================
40 instr 2
41 iamp = ampdb(90+p4)
42 ifreq = p5
43 ibw = ifreq * .05 ; filtered noise's bandwidth 5% of central frequency
44
45 a1 rnd31 iamp , 1
46 k1 rms a1
47
48 afilt butterbp a1 , ifreq , ibw
49 afilt butterbp afilt , ifreq , ibw
50
51 aenv expseg .001 , .005, .8 , p3-.01 ,.8 ,.005,.001
52
53 aout gain afilt , k1
54 aout = aout * aenv
55
56 out aout
57 endin
58 ;=============================================
59
60 ;=============================================
61 ; FILTERED IMPULSES (I)
62 ;=============================================
63 instr 3
64 iamp = ampdb(86+p4)
65 ifreq = p5
66 ibw = ifreq * .01 ; filtered pulse's bandwidth 1% of central frequency
67
68 if1 = ifreq-(ibw/3)
69 if2 = ifreq+((2*ibw)/3)
70
71
72 a1 mpulse iamp , 0
73
74 afilt atonex a1 , if1 , 2
75 afilt tonex afilt*800 , if2 , 2
76 afilt butterbp afilt*340 , ifreq , ibw*.05
77
78
79 aenv linseg 1 , p3-.01, 1 , .01 , 0
80
81 aout = afilt * aenv
82
83 out aout*(sr/192000)
84 endin
85 ;=============================================
86 </CsInstruments>
87 <CsScore>
88 ;functions--------------------------------------------------
89 f1 0 8192 10 1 ; sinusoid
90 ;/functions--------------------------------------------------
91
92 t0 4572 ; 76.2 cm/sec. tape speed (durations in cm)
93
94 ;test--------------------------------------------------
95 ;mute-------------------------------------------------
96 q 1 0 1
97 q 2 0 1
98 q 3 0 1
99 ;/mute-------------------------------------------------
100 ;/test-------------------------------------------------
101
102 ;==================================================
103 ; 170. MATERIAL G
104 ; 171. total length: 1298.5 cm, 10 sections
105 ;
106 ; length sequence
107 ; 38.7 cm (4)
108 ; 440.5 cm (10)
109 ; 58 cm (5)
110 ; 11.4 cm (1)
111 ; 17.2 cm (2)
112 ; 130.5 cm (7)
113 ; 87 cm (6)
114 ; 25.8 cm (3)
115 ; 293.6 cm (9)
116 ; 195.8 cm (8)
117 ;==================================================
118
119 ;==================================171.1
120 ; 38.7 cm 9/8
121 ;---------------------------------------
122 ; p4 p5
123 ; iamp ifreq
124 ; [dB] [Hz]
125 i1 0 5.6 0 3200 ; S
126 i1 + 4.9 0 2691 ; S
127 i1 + 3.5 0 2263 ; S
128 i1 + 7 -.5 3064 ; S
129 i1 + 6.3 -.2 2577 ; S
130 i1 + 3.9 0 1903 ; S
131 i1 + 3.1 0 2167 ; S
132 i1 + 4.4 0 1600 ; S
133 s
134 t0 4572
135 ;==================================171.2
136 ; 440.5 cm 3/2
137 ;---------------------------------------
138 i1 0 152.8 -6 2934 ; S
139 i1 + 101.9 -6 1822 ; S
140 i1 + 30.2 -5 2467 ; S
141 i1 + 13.4 0 1345 ; S
142 i1 + 8.9 0 1532 ; S
143 i1 + 45.3 -1 2075 ; S
144 i1 + 20.1 -.7 1745 ; S
145 i3 372.6 67.9 -2 1131 ; I
146 s
147 t0 4572
148 ;==================================171.3
149 ; 58 cm 8/7
150 ;---------------------------------------
151 i1 0 9.6 -.3 1288 ; S
152 i1 + 8.4 -1 2810 ; S
153 i1 + 5.7 0 1467 ; S
154 i1 + 4.3 0 2363 ; S
155 i1 + 11.1 -.5 1083 ; S
156 i1 + 6.5 0 1987 ; S
157 i1 + 5 0 951 ; S
158 i1 + 7.4 -.7 1233 ; S
159 s
160 t0 4572
161 ;==================================171.4
162 ; 11.4 cm 12/11
163 ;---------------------------------------
164 i1 0 1.3 0 1671 ; S
165 i3 1.3 1.2 .5 911 ; I
166 i3 + 1.9 -.5 1037 ; I
167 i3 + 1.6 -3 1405 ; I
168 i1 6 1.5 0 800 ; S
169 i1 + 1 0 1181 ; S
170 i1 + 1.8 0 872 ; S
171 i1 + 1.1 0 766 ; S
172 s
173 t0 4572
174 ;==================================171.5
175 ; 17.2 cm 11/10
176 ;---------------------------------------
177 i1 0 1.7 0 993 ; S
178 i1 + 1.5 0 734 ; S
179 i1 + 2.4 0 835 ; S
180 i3 5.6 2 3 673 ; I
181 i3 + 1.8 3.5 644 ; I
182 i3 + 2.7 3 702 ; I
183 i3 + 2.2 4 617 ; I
184 i3 + 2.9 4 591 ; I
185 s
186 t0 4572
187 ;==================================171.6
188 ; 130.5 cm 6/5
189 ;---------------------------------------
190 i1 0 7.9 0 566 ; S
191 i1 + 28.3 0 542 ; S
192 i1 + 16.4 0 519 ; S
193 i1 + 11.4 0 497 ; S
194 i1 + 9.5 0 418 ; S
195 i3 73.5 19.7 7 436 ; I
196 i3 + 13.7 6 456 ; I
197 i3 + 23.6 8.5 351 ; I
198 s
199 t0 4572
200 ;==================================171.7
201 ; 87 cm 7/6
202 ;---------------------------------------
203 i3 0 11.1 6 476 ; I
204 i3 + 9.5 8 367 ; I
205 i3 + 6 10 295 ; I
206 i3 + 15 8 383 ; I
207 i1 41.6 12.9 0 248 ; S
208 i1 + 6.9 0 308 ; S
209 i1 + 17.5 0 400 ; S
210 i3 78.9 8.1 13 209 ; I
211 s
212 t0 4572
213 ;==================================171.8
214 ; 25.8 cm 10/9
215 ;---------------------------------------
216 i3 0 2.7 9.5 322 ; I
217 i3 + 2.4 11 259 ; I
218 i3 + 4.1 14.5 176 ; I
219 i3 + 3.3 16 148 ; I
220 i3 + 3 9 336 ; I
221 i3 + 4.5 12.5 218 ; I
222 i3 + 3.7 11 271 ; I
223 i3 + 2.1 17.5 124 ; I
224 s
225 t0 4572
226 ;==================================171.9
227 ; 293.6 cm 4/3
228 ;---------------------------------------
229 i1 0 45.9 0 183 ; S
230 i3 45.9 34.4 19 104 ; I
231 i3 + 14.5 10.5 283 ; I
232 i3 + 81.5 12.5 228 ; I
233 i3 + 61.2 15.5 154 ; I
234 i3 + 19.4 13.5 192 ; I
235 i3 + 10.9 17 130 ; I
236 i3 + 25.8 12 238 ; I
237 s
238 t0 4572
239 ;==================================171.10
240 ; 195.8 cm 5/4
241 ;---------------------------------------
242 i3 0 47.1 18.5 109 ; I
243 i3 + 37.6 15.5 161 ; I
244 i3 + 19.3 13.5 200 ; I
245 i3 + 12.3 17 135 ; I
246 i3 + 9.9 15 168 ; I
247 i3 + 24.1 18.5 114 ; I
248 i3 + 15.4 16.5 141 ; I
249 i3 + 30.1 18 119 ; I
250
251 ; total length: 1298.5 cm
252 e
253 </CsScore>
254 </CsoundSynthesizer>