Debian Codegraph @

src/Examples/CsoundQt/Miscellaneous/No_Reinit.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 </CsOptions>
4 <CsInstruments>
5
6 sr = 44100
7 ksmps = 128
8 nchnls = 2
9 0dbfs = 1
10
11 ; This table maps menu values to vco2 oscillator modes
12 giwavemodes ftgen 0, 0, 8, -2, 0, 10, 12
13
14 instr 1 ;read widgets
15 ; When values from sliders are to be used on the init pass,
16 ; they must be read outside the instrument, because
17 ; they are not read during the init pass
18 gkwave invalue "wave"
19 gkfreq invalue "freq"
20 endin
21
22 instr 10
23 kenv adsr p3/5, p3/5, 0.6, p3/2
24 imode tab_i i(gkwave), giwavemodes
25 aout vco2 0.1, i(gkfreq), imode
26 outs aout*kenv, aout*kenv
27 endin
28
29 </CsInstruments>
30 <CsScore>
31 i 1 0 3600
32 f 0 3600
33 </CsScore>
34 </CsoundSynthesizer>
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50 <bsbPanel>
51 <label>Widgets</label>
52 <objectName/>
53 <x>207</x>
54 <y>302</y>
55 <width>373</width>
56 <height>293</height>
57 <visible>true</visible>
58 <uuid/>
59 <bgcolor mode="background">
60 <r>170</r>
61 <g>170</g>
62 <b>127</b>
63 </bgcolor>
64 <bsbObject version="2" type="BSBDropdown">
65 <objectName>wave</objectName>
66 <x>25</x>
67 <y>30</y>
68 <width>120</width>
69 <height>23</height>
70 <uuid>{209046cb-065c-45d2-a8af-c6cc76c4e15b}</uuid>
71 <visible>true</visible>
72 <midichan>0</midichan>
73 <midicc>-3</midicc>
74 <bsbDropdownItemList>
75 <bsbDropdownItem>
76 <name>saw</name>
77 <value>0</value>
78 <stringvalue/>
79 </bsbDropdownItem>
80 <bsbDropdownItem>
81 <name>square</name>
82 <value>1</value>
83 <stringvalue/>
84 </bsbDropdownItem>
85 <bsbDropdownItem>
86 <name>triangle</name>
87 <value>2</value>
88 <stringvalue/>
89 </bsbDropdownItem>
90 </bsbDropdownItemList>
91 <selectedIndex>1</selectedIndex>
92 <randomizable group="0">false</randomizable>
93 </bsbObject>
94 <bsbObject version="2" type="BSBLabel">
95 <objectName/>
96 <x>150</x>
97 <y>31</y>
98 <width>204</width>
99 <height>25</height>
100 <uuid>{fd5594a3-7a80-40e3-be90-7335292cd7b9}</uuid>
101 <visible>true</visible>
102 <midichan>0</midichan>
103 <midicc>-3</midicc>
104 <label>&lt;-- Select waveform from this menu</label>
105 <alignment>center</alignment>
106 <font>Helvetica</font>
107 <fontsize>10</fontsize>
108 <precision>3</precision>
109 <color>
110 <r>255</r>
111 <g>255</g>
112 <b>255</b>
113 </color>
114 <bgcolor mode="nobackground">
115 <r>32</r>
116 <g>32</g>
117 <b>32</b>
118 </bgcolor>
119 <bordermode>noborder</bordermode>
120 <borderradius>1</borderradius>
121 <borderwidth>1</borderwidth>
122 </bsbObject>
123 <bsbObject version="2" type="BSBHSlider">
124 <objectName>freq</objectName>
125 <x>25</x>
126 <y>70</y>
127 <width>180</width>
128 <height>20</height>
129 <uuid>{6a07f97c-5c18-46b2-8515-bdd1d252fce1}</uuid>
130 <visible>true</visible>
131 <midichan>0</midichan>
132 <midicc>-3</midicc>
133 <minimum>200.00000000</minimum>
134 <maximum>800.00000000</maximum>
135 <value>703.03030300</value>
136 <mode>lin</mode>
137 <mouseControl act="jump">continuous</mouseControl>
138 <resolution>-1.00000000</resolution>
139 <randomizable group="0">false</randomizable>
140 </bsbObject>
141 <bsbObject version="2" type="BSBLabel">
142 <objectName/>
143 <x>220</x>
144 <y>65</y>
145 <width>130</width>
146 <height>25</height>
147 <uuid>{9795fb33-ed0e-40cd-be54-4e72136ba27b}</uuid>
148 <visible>true</visible>
149 <midichan>0</midichan>
150 <midicc>-3</midicc>
151 <label>Frequency</label>
152 <alignment>left</alignment>
153 <font>Bitstream Vera Sans</font>
154 <fontsize>10</fontsize>
155 <precision>3</precision>
156 <color>
157 <r>255</r>
158 <g>255</g>
159 <b>255</b>
160 </color>
161 <bgcolor mode="nobackground">
162 <r>255</r>
163 <g>255</g>
164 <b>255</b>
165 </bgcolor>
166 <bordermode>noborder</bordermode>
167 <borderradius>1</borderradius>
168 <borderwidth>1</borderwidth>
169 </bsbObject>
170 <bsbObject version="2" type="BSBButton">
171 <objectName>button1</objectName>
172 <x>26</x>
173 <y>98</y>
174 <width>180</width>
175 <height>40</height>
176 <uuid>{9346008b-c023-4171-84ec-419a0542d75e}</uuid>
177 <visible>true</visible>
178 <midichan>0</midichan>
179 <midicc>-3</midicc>
180 <type>event</type>
181 <pressedValue>1.00000000</pressedValue>
182 <stringvalue/>
183 <text>Generate note</text>
184 <image>/</image>
185 <eventLine>i10 0 5</eventLine>
186 <latch>false</latch>
187 <latched>false</latched>
188 </bsbObject>
189 <bsbObject version="2" type="BSBLabel">
190 <objectName/>
191 <x>208</x>
192 <y>100</y>
193 <width>130</width>
194 <height>36</height>
195 <uuid>{d0e5f205-22ef-46a1-9e95-a0dad502c127}</uuid>
196 <visible>true</visible>
197 <midichan>0</midichan>
198 <midicc>-3</midicc>
199 <label>Push this button to generate notes</label>
200 <alignment>center</alignment>
201 <font>Bitstream Vera Sans</font>
202 <fontsize>10</fontsize>
203 <precision>3</precision>
204 <color>
205 <r>255</r>
206 <g>255</g>
207 <b>255</b>
208 </color>
209 <bgcolor mode="nobackground">
210 <r>255</r>
211 <g>255</g>
212 <b>255</b>
213 </bgcolor>
214 <bordermode>noborder</bordermode>
215 <borderradius>1</borderradius>
216 <borderwidth>1</borderwidth>
217 </bsbObject>
218 <bsbObject version="2" type="BSBLabel">
219 <objectName/>
220 <x>28</x>
221 <y>148</y>
222 <width>308</width>
223 <height>101</height>
224 <uuid>{bd0c8e45-f7e6-4d91-948f-b571a61c20ec}</uuid>
225 <visible>true</visible>
226 <midichan>0</midichan>
227 <midicc>-3</midicc>
228 <label/>
229 <alignment>left</alignment>
230 <font>DejaVu Sans</font>
231 <fontsize>10</fontsize>
232 <precision>3</precision>
233 <color>
234 <r>0</r>
235 <g>0</g>
236 <b>0</b>
237 </color>
238 <bgcolor mode="background">
239 <r>169</r>
240 <g>191</g>
241 <b>120</b>
242 </bgcolor>
243 <bordermode>noborder</bordermode>
244 <borderradius>1</borderradius>
245 <borderwidth>1</borderwidth>
246 </bsbObject>
247 <bsbObject version="2" type="BSBLabel">
248 <objectName/>
249 <x>42</x>
250 <y>180</y>
251 <width>277</width>
252 <height>66</height>
253 <uuid>{1ea04247-ebf6-41f1-979d-83efd84fc316}</uuid>
254 <visible>true</visible>
255 <midichan>0</midichan>
256 <midicc>-3</midicc>
257 <label>Values for waveform and frequency are only applied during the init pass so they remain constant for every note. Changes only apply for new notes</label>
258 <alignment>center</alignment>
259 <font>Bitstream Vera Sans</font>
260 <fontsize>10</fontsize>
261 <precision>3</precision>
262 <color>
263 <r>255</r>
264 <g>255</g>
265 <b>255</b>
266 </color>
267 <bgcolor mode="nobackground">
268 <r>255</r>
269 <g>255</g>
270 <b>255</b>
271 </bgcolor>
272 <bordermode>noborder</bordermode>
273 <borderradius>1</borderradius>
274 <borderwidth>1</borderwidth>
275 </bsbObject>
276 <bsbObject version="2" type="BSBLabel">
277 <objectName/>
278 <x>118</x>
279 <y>153</y>
280 <width>105</width>
281 <height>24</height>
282 <uuid>{bda3bb14-efd3-4e02-b523-a58928c5437f}</uuid>
283 <visible>true</visible>
284 <midichan>0</midichan>
285 <midicc>-3</midicc>
286 <label>No Reinit</label>
287 <alignment>left</alignment>
288 <font>Bitstream Vera Sans</font>
289 <fontsize>16</fontsize>
290 <precision>3</precision>
291 <color>
292 <r>82</r>
293 <g>111</g>
294 <b>63</b>
295 </color>
296 <bgcolor mode="nobackground">
297 <r>255</r>
298 <g>255</g>
299 <b>255</b>
300 </bgcolor>
301 <bordermode>noborder</bordermode>
302 <borderradius>1</borderradius>
303 <borderwidth>1</borderwidth>
304 </bsbObject>
305 </bsbPanel>
306 <bsbPresets>
307 </bsbPresets>
308 <MacOptions>
309 Version: 3
310 Render: Real
311 Ask: Yes
312 Functions: ioObject
313 Listing: Window
314 WindowBounds: 207 302 373 293
315 CurrentView: io
316 IOViewEdit: On
317 Options: -b128 -A -s -m167 -R
318 </MacOptions>
319 <MacGUI>
320 ioView background {43690, 43690, 32639}
321 ioMenu {25, 30} {120, 23} 1 303 "saw,square,triangle" wave
322 ioText {150, 31} {202, 26} label 0.000000 0.00100 "" center "Helvetica" 10 {65280, 65280, 65280} {65280, 65280, 65280} nobackground noborder <-- Select waveform from this menu
323 ioSlider {25, 70} {180, 20} 200.000000 800.000000 703.030303 freq
324 ioText {220, 65} {130, 25} label 0.000000 0.00100 "" left "Bitstream Vera Sans" 10 {65280, 65280, 65280} {65280, 65280, 65280} nobackground noborder Frequency
325 ioButton {26, 98} {180, 40} event 1.000000 "button1" "Generate note" "/" i10 0 5
326 ioText {208, 100} {130, 36} label 0.000000 0.00100 "" center "Bitstream Vera Sans" 10 {65280, 65280, 65280} {65280, 65280, 65280} nobackground noborder Push this button to generate notes
327 ioText {28, 148} {308, 101} label 0.000000 0.00100 "" left "DejaVu Sans" 10 {0, 0, 0} {43264, 48896, 30720} nobackground noborder
328 ioText {42, 180} {277, 66} label 0.000000 0.00100 "" center "Bitstream Vera Sans" 10 {65280, 65280, 65280} {65280, 65280, 65280} nobackground noborder Values for waveform and frequency are only applied during the init pass so they remain constant for every note. Changes only apply for new notes
329 ioText {118, 153} {105, 24} label 0.000000 0.00100 "" left "Bitstream Vera Sans" 16 {20992, 28416, 16128} {65280, 65280, 65280} nobackground noborder No Reinit
330 </MacGUI>