Debian Codegraph @

src/Examples/CsoundQt/Widgets/Scrollnumber_Widget.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 </CsOptions>
4 <CsInstruments>
5
6 sr = 44100
7 ksmps = 128
8 nchnls = 2
9 0dbfs = 1
10 A4 = 442
11
12
13 instr 1 ; always on
14 kmidi invalue "midi"
15 ka invalue "a"
16 kb invalue "b"
17
18 if changed(kmidi, ka, kb) == 1 then
19 khertz = mtof(kmidi)
20 outvalue "hertz", sprintfk("%.1f Hz.", khertz)
21 outvalue "c", sprintfk("is %.3f", ka*kb)
22 endif
23
24 endin
25
26 </CsInstruments>
27 <CsScore>
28 i 1 0 3600
29 </CsScore>
30 </CsoundSynthesizer>
31
32
33 <bsbPanel>
34 <label>Widgets</label>
35 <objectName/>
36 <x>735</x>
37 <y>252</y>
38 <width>281</width>
39 <height>319</height>
40 <visible>true</visible>
41 <uuid/>
42 <bgcolor mode="background">
43 <r>138</r>
44 <g>149</g>
45 <b>156</b>
46 </bgcolor>
47 <bsbObject type="BSBLabel" version="2">
48 <objectName/>
49 <x>21</x>
50 <y>7</y>
51 <width>227</width>
52 <height>37</height>
53 <uuid>{e0d516ac-0bd9-4502-a3a2-9fa4f22f7054}</uuid>
54 <visible>true</visible>
55 <midichan>0</midichan>
56 <midicc>-3</midicc>
57 <description/>
58 <label>Scroll Number Widget</label>
59 <alignment>center</alignment>
60 <valignment>top</valignment>
61 <font>Liberation Sans</font>
62 <fontsize>24</fontsize>
63 <precision>3</precision>
64 <color>
65 <r>0</r>
66 <g>0</g>
67 <b>0</b>
68 </color>
69 <bgcolor mode="nobackground">
70 <r>191</r>
71 <g>204</g>
72 <b>234</b>
73 </bgcolor>
74 <bordermode>false</bordermode>
75 <borderradius>1</borderradius>
76 <borderwidth>0</borderwidth>
77 </bsbObject>
78 <bsbObject type="BSBLabel" version="2">
79 <objectName/>
80 <x>9</x>
81 <y>46</y>
82 <width>250</width>
83 <height>108</height>
84 <uuid>{1972f251-3570-4dc4-8a87-50de9868eebe}</uuid>
85 <visible>true</visible>
86 <midichan>0</midichan>
87 <midicc>-3</midicc>
88 <description/>
89 <label>Scroll Number Widgets are just like display widgets but their values can be changed by dragging with the mouse. The number of decimal places used and the size of the step for each mouse pixel is set by the resolution in the properties.</label>
90 <alignment>left</alignment>
91 <valignment>top</valignment>
92 <font>Liberation Sans</font>
93 <fontsize>12</fontsize>
94 <precision>3</precision>
95 <color>
96 <r>0</r>
97 <g>0</g>
98 <b>0</b>
99 </color>
100 <bgcolor mode="background">
101 <r>191</r>
102 <g>204</g>
103 <b>234</b>
104 </bgcolor>
105 <bordermode>false</bordermode>
106 <borderradius>5</borderradius>
107 <borderwidth>0</borderwidth>
108 </bsbObject>
109 <bsbObject type="BSBLabel" version="2">
110 <objectName/>
111 <x>9</x>
112 <y>223</y>
113 <width>250</width>
114 <height>43</height>
115 <uuid>{e42a48e9-9ee1-4337-8488-301faeedb988}</uuid>
116 <visible>true</visible>
117 <midichan>0</midichan>
118 <midicc>-3</midicc>
119 <description/>
120 <label/>
121 <alignment>left</alignment>
122 <valignment>top</valignment>
123 <font>Helvetica</font>
124 <fontsize>6</fontsize>
125 <precision>3</precision>
126 <color>
127 <r>0</r>
128 <g>0</g>
129 <b>0</b>
130 </color>
131 <bgcolor mode="background">
132 <r>193</r>
133 <g>163</g>
134 <b>142</b>
135 </bgcolor>
136 <bordermode>noborder</bordermode>
137 <borderradius>5</borderradius>
138 <borderwidth>0</borderwidth>
139 </bsbObject>
140 <bsbObject type="BSBScrollNumber" version="2">
141 <objectName>a</objectName>
142 <x>15</x>
143 <y>230</y>
144 <width>55</width>
145 <height>26</height>
146 <uuid>{d46c4956-ab0b-4024-987f-e277c708d41a}</uuid>
147 <visible>true</visible>
148 <midichan>0</midichan>
149 <midicc>0</midicc>
150 <description/>
151 <alignment>right</alignment>
152 <font>Liberation Sans</font>
153 <fontsize>12</fontsize>
154 <color>
155 <r>30</r>
156 <g>30</g>
157 <b>30</b>
158 </color>
159 <bgcolor mode="background">
160 <r>220</r>
161 <g>220</g>
162 <b>220</b>
163 </bgcolor>
164 <value>3.22900000</value>
165 <resolution>0.00100000</resolution>
166 <minimum>-999999999999.00000000</minimum>
167 <maximum>999999999999.00000000</maximum>
168 <bordermode>false</bordermode>
169 <borderradius>5</borderradius>
170 <borderwidth>0</borderwidth>
171 <randomizable group="0">false</randomizable>
172 <mouseControl act=""/>
173 </bsbObject>
174 <bsbObject type="BSBScrollNumber" version="2">
175 <objectName>b</objectName>
176 <x>110</x>
177 <y>230</y>
178 <width>55</width>
179 <height>26</height>
180 <uuid>{81904718-714a-4157-a559-e688b0c0205c}</uuid>
181 <visible>true</visible>
182 <midichan>0</midichan>
183 <midicc>0</midicc>
184 <description/>
185 <alignment>right</alignment>
186 <font>Liberation Sans</font>
187 <fontsize>12</fontsize>
188 <color>
189 <r>30</r>
190 <g>30</g>
191 <b>30</b>
192 </color>
193 <bgcolor mode="background">
194 <r>220</r>
195 <g>220</g>
196 <b>220</b>
197 </bgcolor>
198 <value>26.10000000</value>
199 <resolution>0.10000000</resolution>
200 <minimum>-999999999999.00000000</minimum>
201 <maximum>999999999999.00000000</maximum>
202 <bordermode>false</bordermode>
203 <borderradius>5</borderradius>
204 <borderwidth>0</borderwidth>
205 <randomizable group="0">false</randomizable>
206 <mouseControl act=""/>
207 </bsbObject>
208 <bsbObject type="BSBLabel" version="2">
209 <objectName/>
210 <x>70</x>
211 <y>230</y>
212 <width>44</width>
213 <height>26</height>
214 <uuid>{2ee5bcc9-bff7-4d21-a848-8b2af2c72899}</uuid>
215 <visible>true</visible>
216 <midichan>0</midichan>
217 <midicc>-3</midicc>
218 <description/>
219 <label>times</label>
220 <alignment>left</alignment>
221 <valignment>center</valignment>
222 <font>Liberation Sans</font>
223 <fontsize>12</fontsize>
224 <precision>3</precision>
225 <color>
226 <r>0</r>
227 <g>0</g>
228 <b>0</b>
229 </color>
230 <bgcolor mode="nobackground">
231 <r>255</r>
232 <g>255</g>
233 <b>255</b>
234 </bgcolor>
235 <bordermode>false</bordermode>
236 <borderradius>1</borderradius>
237 <borderwidth>0</borderwidth>
238 </bsbObject>
239 <bsbObject type="BSBLabel" version="2">
240 <objectName>c</objectName>
241 <x>165</x>
242 <y>230</y>
243 <width>90</width>
244 <height>26</height>
245 <uuid>{73266aa0-0ae3-4bcd-bbaf-911453733b6c}</uuid>
246 <visible>true</visible>
247 <midichan>0</midichan>
248 <midicc>-3</midicc>
249 <description/>
250 <label>is 84.277</label>
251 <alignment>left</alignment>
252 <valignment>center</valignment>
253 <font>Liberation Sans</font>
254 <fontsize>12</fontsize>
255 <precision>3</precision>
256 <color>
257 <r>0</r>
258 <g>0</g>
259 <b>0</b>
260 </color>
261 <bgcolor mode="nobackground">
262 <r>255</r>
263 <g>255</g>
264 <b>255</b>
265 </bgcolor>
266 <bordermode>false</bordermode>
267 <borderradius>1</borderradius>
268 <borderwidth>0</borderwidth>
269 </bsbObject>
270 <bsbObject type="BSBLabel" version="2">
271 <objectName/>
272 <x>9</x>
273 <y>161</y>
274 <width>250</width>
275 <height>54</height>
276 <uuid>{e0e82cee-79df-4f1c-9011-fd8655d840a5}</uuid>
277 <visible>true</visible>
278 <midichan>0</midichan>
279 <midicc>-3</midicc>
280 <description/>
281 <label/>
282 <alignment>left</alignment>
283 <valignment>top</valignment>
284 <font>Arial</font>
285 <fontsize>12</fontsize>
286 <precision>3</precision>
287 <color>
288 <r>0</r>
289 <g>0</g>
290 <b>0</b>
291 </color>
292 <bgcolor mode="background">
293 <r>193</r>
294 <g>163</g>
295 <b>142</b>
296 </bgcolor>
297 <bordermode>noborder</bordermode>
298 <borderradius>5</borderradius>
299 <borderwidth>0</borderwidth>
300 </bsbObject>
301 <bsbObject type="BSBScrollNumber" version="2">
302 <objectName>midi</objectName>
303 <x>18</x>
304 <y>169</y>
305 <width>87</width>
306 <height>25</height>
307 <uuid>{ae8f1ea4-e737-4ace-ba33-16f1b5c32b32}</uuid>
308 <visible>true</visible>
309 <midichan>0</midichan>
310 <midicc>0</midicc>
311 <description/>
312 <alignment>center</alignment>
313 <font>Liberation Serif</font>
314 <fontsize>16</fontsize>
315 <color>
316 <r>255</r>
317 <g>255</g>
318 <b>255</b>
319 </color>
320 <bgcolor mode="background">
321 <r>54</r>
322 <g>63</g>
323 <b>69</b>
324 </bgcolor>
325 <value>69.00000000</value>
326 <resolution>1.00000000</resolution>
327 <minimum>-999999999999.00000000</minimum>
328 <maximum>999999999999.00000000</maximum>
329 <bordermode>false</bordermode>
330 <borderradius>5</borderradius>
331 <borderwidth>0</borderwidth>
332 <randomizable group="0">false</randomizable>
333 <mouseControl act=""/>
334 </bsbObject>
335 <bsbObject type="BSBLabel" version="2">
336 <objectName/>
337 <x>15</x>
338 <y>194</y>
339 <width>110</width>
340 <height>24</height>
341 <uuid>{de1f7fcb-de33-4c40-a4fa-2c9aed935b86}</uuid>
342 <visible>true</visible>
343 <midichan>0</midichan>
344 <midicc>-3</midicc>
345 <description/>
346 <label>MIDI note number</label>
347 <alignment>left</alignment>
348 <valignment>top</valignment>
349 <font>Arial</font>
350 <fontsize>10</fontsize>
351 <precision>3</precision>
352 <color>
353 <r>0</r>
354 <g>0</g>
355 <b>0</b>
356 </color>
357 <bgcolor mode="nobackground">
358 <r>255</r>
359 <g>255</g>
360 <b>255</b>
361 </bgcolor>
362 <bordermode>noborder</bordermode>
363 <borderradius>1</borderradius>
364 <borderwidth>0</borderwidth>
365 </bsbObject>
366 <bsbObject type="BSBLabel" version="2">
367 <objectName/>
368 <x>107</x>
369 <y>170</y>
370 <width>38</width>
371 <height>23</height>
372 <uuid>{658fc00b-9195-42be-9887-1a49b2734e83}</uuid>
373 <visible>true</visible>
374 <midichan>0</midichan>
375 <midicc>-3</midicc>
376 <description/>
377 <label>has</label>
378 <alignment>right</alignment>
379 <valignment>top</valignment>
380 <font>Arial</font>
381 <fontsize>12</fontsize>
382 <precision>3</precision>
383 <color>
384 <r>0</r>
385 <g>0</g>
386 <b>0</b>
387 </color>
388 <bgcolor mode="nobackground">
389 <r>255</r>
390 <g>255</g>
391 <b>255</b>
392 </bgcolor>
393 <bordermode>noborder</bordermode>
394 <borderradius>1</borderradius>
395 <borderwidth>0</borderwidth>
396 </bsbObject>
397 <bsbObject type="BSBLabel" version="2">
398 <objectName>hertz</objectName>
399 <x>150</x>
400 <y>169</y>
401 <width>97</width>
402 <height>25</height>
403 <uuid>{566a8d25-ee1d-4705-ba26-c36c772cd35f}</uuid>
404 <visible>true</visible>
405 <midichan>0</midichan>
406 <midicc>-3</midicc>
407 <description/>
408 <label>442.0 Hz.</label>
409 <alignment>left</alignment>
410 <valignment>top</valignment>
411 <font>Liberation Sans</font>
412 <fontsize>12</fontsize>
413 <precision>1</precision>
414 <color>
415 <r>0</r>
416 <g>0</g>
417 <b>0</b>
418 </color>
419 <bgcolor mode="background">
420 <r>206</r>
421 <g>214</g>
422 <b>169</b>
423 </bgcolor>
424 <bordermode>false</bordermode>
425 <borderradius>5</borderradius>
426 <borderwidth>0</borderwidth>
427 </bsbObject>
428 </bsbPanel>
429 <bsbPresets>
430 </bsbPresets>