Debian Codegraph @

src/Examples/McCurdy Collection/Miscellaneous/PitchFormats.csd

raw
1 ;Written by Iain McCurdy, 2010
2
3 ;Modified for QuteCsound by René, February 2011
4 ;Tested on Ubuntu 10.04 with csound-float 5.13.0 and QuteCsound svn rev 817
5
6 ;Notes on modifications from original csd:
7 ; Add table for exp slider
8
9
10 ;my flags on Ubuntu: -odac -b1024 -B2048 -+rtaudio=alsa -+rtmidi=alsa -Ma -m0
11 <CsoundSynthesizer>
12 <CsOptions>
13
14 </CsOptions>
15 <CsInstruments>
16 sr = 44100 ;SAMPLE RATE
17 ksmps = 100 ;NUMBER OF AUDIO SAMPLES IN EACH CONTROL CYCLE
18 nchnls = 2 ;NUMBER OF CHANNELS (2=STEREO)
19 0dbfs = 1 ;MAXIMUM AMPLITUDE REGARDLESS OF BIT DEPTH
20
21
22 gisine ftgen 0,0,4096,10,1
23 giExp1 ftgen 0, 0, 129, -25, 0, 8.176, 128, 12543.85 ;TABLE FOR EXP SLIDER
24
25
26 instr 100 ;GUI
27 ktrig metro 10
28 if (ktrig == 1) then
29 gktone invalue "Tone"
30
31 kcpsIP invalue "cpsIP"
32 gkcpsIP tablei kcpsIP, giExp1, 1
33
34 gkcps invalue "i_cps"
35 gkoct invalue "i_oct"
36 gkpch invalue "i_pch"
37 gknum invalue "i_MIDI"
38 endif
39 endin
40
41 instr 1 ;MIDI INPUT CONVERTED INTO FOUR FORMATS
42 icps cpsmidi ;READ IN MIDI AS CPS
43 ioct octmidi ;READ IN MIDI AS OCT FORMAT
44 ipch pchmidi ;READ IN MIDI AS PCH FORMAT
45 inum notnum ;READ IN MIDI AS NOTE NUMBER
46
47 outvalue "i_cps", icps ;SEND CPS VALUE TO CPS TEXT BOX
48 outvalue "i_oct", ioct ;SEND OCT VALUE TO CPS TEXT BOX
49 outvalue "i_pch", ipch ;SEND PCH VALUE TO CPS TEXT BOX
50 outvalue "i_MIDI", inum ;SEND NOTE NUMBER VALUE TO CPS TEXT BOX
51 endin
52
53 instr 2 ;PRINT SLIDER CHANGES TO VALUE BOXES
54 koct = octcps(gkcpsIP) ;CONVERT SLIDER VALUE FROM CPS TO OCT
55
56 outvalue "d_cps", gkcpsIP ;SEND CPS VALUE TO CPS TEXT BOX
57 outvalue "d_oct", koct ;SEND OCT TO OCT VALUE BOX
58 outvalue "d_pch", pchoct(koct) ;SEND PCH TO PCH VALUE BOX
59 outvalue "d_MIDI", (koct-3)*12 ;CONVERT OCT TO MIDI NUMBER USING MATHS AND SEND TO MIDI NOTE NUMBER VALUE BOX
60 endin
61
62 instr 3 ;SEND CPS BOX VALUE TO THE OTHER 3 BOXES
63 ioct init octcps(i(gkcps)) ;DERIVE OCT FORMAT VALUE FROM CPS
64
65 outvalue "i_oct", ioct ;SEND OCT VALUE TO OCT BOX
66 outvalue "i_pch", pchoct(ioct) ;CONVERT OCT TO PCH AND SEND TO PCH BOX
67 outvalue "i_MIDI", (ioct-3)*12 ;DERIVE MIDI NOTE NUMBER FROM OCT VALUE AND SEND TO MIDI NOTE NUMBER BOX
68 endin
69
70 instr 4 ;SEND OCT BOX VALUE TO THE OTHER 3 BOXES
71 outvalue "i_cps", cpsoct(i(gkoct)) ;CONVERT OCT VALUE TO CPS AND SEND TO CPS BOX
72 outvalue "i_pch", pchoct(i(gkoct)) ;CONVERT OCT VALUE TO PCH AND SEND TO PCH BOX
73 outvalue "i_MIDI", (i(gkoct)-3)*12 ;DERIVE MIDI NOTE NUMBER FROM OCT VALUE AND SEND TO MIDI NOTE NUMBER BOX
74 endin
75
76 instr 5 ;SEND PCH BOX VALUE TO THE OTHER 3 BOXES
77 outvalue "i_cps", cpspch(i(gkpch)) ;CONVERT PCH VALUE TO CPS FORMAT AND SEND TO CPS BOX
78
79 ipch init i(gkpch) ;CONVERT PCH VALUE TO I-RATE LOCAL PCH VALUE
80 ioct = octpch(ipch) ;CONVERT PCH VALUE TO OCT FORMAT VALUE
81
82 outvalue "i_oct", ioct ;SEND OCT VALUE TO OCT BOX
83 outvalue "i_MIDI", (ioct-3)*12 ;DERIVE MIDI NOTE NUMBER FROM OCT VALUE AND SEND TO MIDI BOTE NUMBER BOX
84 endin
85
86 instr 6 ;SEND MIDI NOTE NUMBER BOX VALUE TO THE OTHER 3 BOXES
87 outvalue "i_cps", cpsmidinn(i(gknum)) ;CONVERT MIDI NOTE NUMBER TO CPS FORMAT AND SEND TO CPS BOX
88 outvalue "i_oct", octmidinn(i(gknum)) ;CONVERT MIDI NOTE NUMBER TO OCT FORMAT AND SEND TO OCT BOX
89 outvalue "i_pch", pchmidinn(i(gknum)) ;CONVERT MIDI NOTE NUMBER TO PCH FORMAT AND SEND TO PCH BOX
90 endin
91
92 instr 10 ;GENERATE A TONE
93 ktrig1 changed gkcpsIP ;IF SLIDER IS CHANGED GENERATE A MOMENTARY '1' (BANG)
94 ktrig2 changed gkcps ;IF CPS BOX IS CHANGED GENERATE A MOMENTARY '1' (BANG)
95
96 if ktrig1=1 then ;IF SLIDER HAS BEEN CHANGED...
97 kcps = gkcpsIP ;TAKE LOCAL CPS VALUE FROM SLIDER
98 elseif ktrig2=1 then ;IF CPS TEXT BOX HAS BEEN CHANGED...
99 kcps = gkcps ;TAKE LOCAL CPS VALUE FROM CPS TEXT BOX
100 endif ;END OF THIS CONDITIONAL BRANCH
101 asig poscil 0.1*gktone, kcps, gisine ;GENERATE A TONE
102 outs asig, asig ;SEND AUDIO TO OUTPUTS
103 endin
104 </CsInstruments>
105 <CsScore>
106 i 100 0 3600 ;GUI
107
108 i 2 0 3600 ;SCAN FOR CHANGES TO SLIDER - UPDATE DISPLAY BOXES
109 i 10 0 3600 ;PLAY A TONE
110 </CsScore>
111 </CsoundSynthesizer>
112 <bsbPanel>
113 <label>Widgets</label>
114 <objectName/>
115 <x>1151</x>
116 <y>142</y>
117 <width>1149</width>
118 <height>604</height>
119 <visible>true</visible>
120 <uuid/>
121 <bgcolor mode="background">
122 <r>241</r>
123 <g>226</g>
124 <b>185</b>
125 </bgcolor>
126 <bsbObject version="2" type="BSBLabel">
127 <objectName/>
128 <x>2</x>
129 <y>245</y>
130 <width>1144</width>
131 <height>357</height>
132 <uuid>{aa607456-d368-4d59-8497-d16d608404c3}</uuid>
133 <visible>true</visible>
134 <midichan>0</midichan>
135 <midicc>0</midicc>
136 <label>Pitch Formats</label>
137 <alignment>center</alignment>
138 <font>Liberation Sans</font>
139 <fontsize>18</fontsize>
140 <precision>3</precision>
141 <color>
142 <r>255</r>
143 <g>255</g>
144 <b>255</b>
145 </color>
146 <bgcolor mode="background">
147 <r>5</r>
148 <g>27</g>
149 <b>150</b>
150 </bgcolor>
151 <bordermode>border</bordermode>
152 <borderradius>5</borderradius>
153 <borderwidth>2</borderwidth>
154 </bsbObject>
155 <bsbObject version="2" type="BSBLabel">
156 <objectName/>
157 <x>7</x>
158 <y>267</y>
159 <width>1136</width>
160 <height>331</height>
161 <uuid>{e41f02b8-6ad4-46dc-805c-0b2eeafbd476}</uuid>
162 <visible>true</visible>
163 <midichan>0</midichan>
164 <midicc>0</midicc>
165 <label>-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
166 Csound accepts expressions of pitch in a variety of formats. Accordingly there are a number of opcodes for conversion between these different formats. The four formats explored in this example are 'cps' (cycles-per-second), 'oct' (octave-point-decimal), 'pch' (octave-point-pitch-class) and MIDI note number.
167
168 "Cycles-per-second is the standard measure of frequency and defines the number of completed cycles of a waveform expressed per second. The unit of measurement of CPS is 'hertz'.
169
170 'Oct' expresses pitch as the octave registration followed by a decimal which expresses the additional interval as a fractional part of an octave. Therefore F# above middle C will be 8.5 (octave=8 + 1/2 an octave).
171
172 'Pch' again begins by expressing the octave registration. Semitones steps this octave are expressed in steps of 0.01. A chromatic scale above middle C in 'pch' format goes: 8.00 8.01 8.02 8.03 8.04 8.05 and so on. The B above middle C will be 8.11, the next semitone step above that (C5) will be 9.00.
173
174 MIDI note numbers express pitch as integers in the range 0-127 corresponding to note of a chromatic MIDI keyboard. MIDI keyboards rarely contain 128 keys so the note numbers available at any one time will be an inner subset of this range. Middle C will be represented by a MIDI note number of 60, the C above that by 72. Fractional MIDI note numbers are allowed and define fractional parts of a semitone but are only useful within Csound as keyboards neither transmit nor recognize fractional MIDI note numbers.
175
176 In this example the user can move the slider at the top of the interface and observe how pitch is expressed in the four formats discussed above. Activating the 'Tone On/Off' button will allow the user to hear the pitch described as a sine tone.
177 In the lower panel values can be typed directly in and converted into the other formats. Notes played on a MIDI keyboard will also be expressed in all 4 formats in these boxes.</label>
178 <alignment>left</alignment>
179 <font>Liberation Sans</font>
180 <fontsize>14</fontsize>
181 <precision>3</precision>
182 <color>
183 <r>255</r>
184 <g>255</g>
185 <b>255</b>
186 </color>
187 <bgcolor mode="nobackground">
188 <r>255</r>
189 <g>255</g>
190 <b>255</b>
191 </bgcolor>
192 <bordermode>noborder</bordermode>
193 <borderradius>1</borderradius>
194 <borderwidth>1</borderwidth>
195 </bsbObject>
196 <bsbObject version="2" type="BSBLabel">
197 <objectName/>
198 <x>2</x>
199 <y>2</y>
200 <width>514</width>
201 <height>240</height>
202 <uuid>{049f4dd4-ff71-4d6d-9157-43c84efad8a4}</uuid>
203 <visible>true</visible>
204 <midichan>0</midichan>
205 <midicc>0</midicc>
206 <label>Pitch Formats</label>
207 <alignment>center</alignment>
208 <font>Liberation Sans</font>
209 <fontsize>18</fontsize>
210 <precision>3</precision>
211 <color>
212 <r>255</r>
213 <g>255</g>
214 <b>255</b>
215 </color>
216 <bgcolor mode="background">
217 <r>5</r>
218 <g>27</g>
219 <b>150</b>
220 </bgcolor>
221 <bordermode>border</bordermode>
222 <borderradius>5</borderradius>
223 <borderwidth>2</borderwidth>
224 </bsbObject>
225 <bsbObject version="2" type="BSBButton">
226 <objectName>Tone</objectName>
227 <x>8</x>
228 <y>12</y>
229 <width>110</width>
230 <height>24</height>
231 <uuid>{9d29ab85-85e6-462e-8761-1ac91e1af325}</uuid>
232 <visible>true</visible>
233 <midichan>0</midichan>
234 <midicc>0</midicc>
235 <type>value</type>
236 <pressedValue>1.00000000</pressedValue>
237 <stringvalue/>
238 <text> Tone On/Off</text>
239 <image>/</image>
240 <eventLine/>
241 <latch>true</latch>
242 <latched>true</latched>
243 </bsbObject>
244 <bsbObject version="2" type="BSBHSlider">
245 <objectName>cpsIP</objectName>
246 <x>8</x>
247 <y>41</y>
248 <width>500</width>
249 <height>27</height>
250 <uuid>{2cf97843-5b49-438e-8034-62a459597e86}</uuid>
251 <visible>true</visible>
252 <midichan>0</midichan>
253 <midicc>0</midicc>
254 <minimum>0.00000000</minimum>
255 <maximum>1.00000000</maximum>
256 <value>0.68200000</value>
257 <mode>lin</mode>
258 <mouseControl act="jump">continuous</mouseControl>
259 <resolution>-1.00000000</resolution>
260 <randomizable group="0">false</randomizable>
261 </bsbObject>
262 <bsbObject version="2" type="BSBLabel">
263 <objectName/>
264 <x>8</x>
265 <y>134</y>
266 <width>500</width>
267 <height>102</height>
268 <uuid>{11faf86e-aa61-4c25-b9cc-b5e7a1d6b5d2}</uuid>
269 <visible>true</visible>
270 <midichan>0</midichan>
271 <midicc>0</midicc>
272 <label>MIDI INPUT &amp; CONVERSIONS</label>
273 <alignment>center</alignment>
274 <font>Liberation Sans</font>
275 <fontsize>12</fontsize>
276 <precision>3</precision>
277 <color>
278 <r>255</r>
279 <g>255</g>
280 <b>255</b>
281 </color>
282 <bgcolor mode="nobackground">
283 <r>255</r>
284 <g>255</g>
285 <b>255</b>
286 </bgcolor>
287 <bordermode>border</bordermode>
288 <borderradius>1</borderradius>
289 <borderwidth>1</borderwidth>
290 </bsbObject>
291 <bsbObject version="2" type="BSBLabel">
292 <objectName/>
293 <x>8</x>
294 <y>79</y>
295 <width>500</width>
296 <height>50</height>
297 <uuid>{67e61bf6-ba32-4c64-bce4-4ae352dc35fa}</uuid>
298 <visible>true</visible>
299 <midichan>0</midichan>
300 <midicc>0</midicc>
301 <label/>
302 <alignment>center</alignment>
303 <font>Liberation Sans</font>
304 <fontsize>12</fontsize>
305 <precision>3</precision>
306 <color>
307 <r>255</r>
308 <g>255</g>
309 <b>255</b>
310 </color>
311 <bgcolor mode="nobackground">
312 <r>255</r>
313 <g>255</g>
314 <b>255</b>
315 </bgcolor>
316 <bordermode>border</bordermode>
317 <borderradius>1</borderradius>
318 <borderwidth>1</borderwidth>
319 </bsbObject>
320 <bsbObject version="2" type="BSBDisplay">
321 <objectName>d_cps</objectName>
322 <x>68</x>
323 <y>89</y>
324 <width>60</width>
325 <height>30</height>
326 <uuid>{26417f0c-07eb-4e23-9391-d771142e4787}</uuid>
327 <visible>true</visible>
328 <midichan>0</midichan>
329 <midicc>0</midicc>
330 <label>1217.494</label>
331 <alignment>right</alignment>
332 <font>Liberation Sans</font>
333 <fontsize>12</fontsize>
334 <precision>3</precision>
335 <color>
336 <r>255</r>
337 <g>255</g>
338 <b>255</b>
339 </color>
340 <bgcolor mode="nobackground">
341 <r>255</r>
342 <g>255</g>
343 <b>255</b>
344 </bgcolor>
345 <bordermode>noborder</bordermode>
346 <borderradius>1</borderradius>
347 <borderwidth>1</borderwidth>
348 </bsbObject>
349 <bsbObject version="2" type="BSBLabel">
350 <objectName/>
351 <x>13</x>
352 <y>89</y>
353 <width>60</width>
354 <height>30</height>
355 <uuid>{c8a8b6a3-8e29-4d54-adf9-46f3ecbd92c6}</uuid>
356 <visible>true</visible>
357 <midichan>0</midichan>
358 <midicc>0</midicc>
359 <label>cps:</label>
360 <alignment>right</alignment>
361 <font>Liberation Sans</font>
362 <fontsize>12</fontsize>
363 <precision>3</precision>
364 <color>
365 <r>255</r>
366 <g>255</g>
367 <b>255</b>
368 </color>
369 <bgcolor mode="nobackground">
370 <r>255</r>
371 <g>255</g>
372 <b>255</b>
373 </bgcolor>
374 <bordermode>noborder</bordermode>
375 <borderradius>1</borderradius>
376 <borderwidth>1</borderwidth>
377 </bsbObject>
378 <bsbObject version="2" type="BSBDisplay">
379 <objectName>d_oct</objectName>
380 <x>183</x>
381 <y>89</y>
382 <width>60</width>
383 <height>30</height>
384 <uuid>{1f397a23-abdd-4e89-8419-c9c49b228d61}</uuid>
385 <visible>true</visible>
386 <midichan>0</midichan>
387 <midicc>0</midicc>
388 <label>10.218</label>
389 <alignment>right</alignment>
390 <font>Liberation Sans</font>
391 <fontsize>12</fontsize>
392 <precision>3</precision>
393 <color>
394 <r>255</r>
395 <g>255</g>
396 <b>255</b>
397 </color>
398 <bgcolor mode="nobackground">
399 <r>255</r>
400 <g>255</g>
401 <b>255</b>
402 </bgcolor>
403 <bordermode>noborder</bordermode>
404 <borderradius>1</borderradius>
405 <borderwidth>1</borderwidth>
406 </bsbObject>
407 <bsbObject version="2" type="BSBLabel">
408 <objectName/>
409 <x>128</x>
410 <y>89</y>
411 <width>60</width>
412 <height>30</height>
413 <uuid>{65f079b5-aab7-4249-91df-5cefa2edd10d}</uuid>
414 <visible>true</visible>
415 <midichan>0</midichan>
416 <midicc>0</midicc>
417 <label>oct:</label>
418 <alignment>right</alignment>
419 <font>Liberation Sans</font>
420 <fontsize>12</fontsize>
421 <precision>3</precision>
422 <color>
423 <r>255</r>
424 <g>255</g>
425 <b>255</b>
426 </color>
427 <bgcolor mode="nobackground">
428 <r>255</r>
429 <g>255</g>
430 <b>255</b>
431 </bgcolor>
432 <bordermode>noborder</bordermode>
433 <borderradius>1</borderradius>
434 <borderwidth>1</borderwidth>
435 </bsbObject>
436 <bsbObject version="2" type="BSBDisplay">
437 <objectName>d_pch</objectName>
438 <x>297</x>
439 <y>89</y>
440 <width>60</width>
441 <height>30</height>
442 <uuid>{c5096e42-e329-4512-8d41-002843b7e38c}</uuid>
443 <visible>true</visible>
444 <midichan>0</midichan>
445 <midicc>0</midicc>
446 <label>10.026</label>
447 <alignment>right</alignment>
448 <font>Liberation Sans</font>
449 <fontsize>12</fontsize>
450 <precision>3</precision>
451 <color>
452 <r>255</r>
453 <g>255</g>
454 <b>255</b>
455 </color>
456 <bgcolor mode="nobackground">
457 <r>255</r>
458 <g>255</g>
459 <b>255</b>
460 </bgcolor>
461 <bordermode>noborder</bordermode>
462 <borderradius>1</borderradius>
463 <borderwidth>1</borderwidth>
464 </bsbObject>
465 <bsbObject version="2" type="BSBLabel">
466 <objectName/>
467 <x>242</x>
468 <y>89</y>
469 <width>60</width>
470 <height>30</height>
471 <uuid>{506f0573-a463-4f9a-b136-e04f7e0e6c2c}</uuid>
472 <visible>true</visible>
473 <midichan>0</midichan>
474 <midicc>0</midicc>
475 <label>pch:</label>
476 <alignment>right</alignment>
477 <font>Liberation Sans</font>
478 <fontsize>12</fontsize>
479 <precision>3</precision>
480 <color>
481 <r>255</r>
482 <g>255</g>
483 <b>255</b>
484 </color>
485 <bgcolor mode="nobackground">
486 <r>255</r>
487 <g>255</g>
488 <b>255</b>
489 </bgcolor>
490 <bordermode>noborder</bordermode>
491 <borderradius>1</borderradius>
492 <borderwidth>1</borderwidth>
493 </bsbObject>
494 <bsbObject version="2" type="BSBDisplay">
495 <objectName>d_MIDI</objectName>
496 <x>412</x>
497 <y>89</y>
498 <width>60</width>
499 <height>30</height>
500 <uuid>{082af5b2-4c57-465d-b6ae-08741589dbc5}</uuid>
501 <visible>true</visible>
502 <midichan>0</midichan>
503 <midicc>0</midicc>
504 <label>86.620</label>
505 <alignment>right</alignment>
506 <font>Liberation Sans</font>
507 <fontsize>12</fontsize>
508 <precision>3</precision>
509 <color>
510 <r>255</r>
511 <g>255</g>
512 <b>255</b>
513 </color>
514 <bgcolor mode="nobackground">
515 <r>255</r>
516 <g>255</g>
517 <b>255</b>
518 </bgcolor>
519 <bordermode>noborder</bordermode>
520 <borderradius>1</borderradius>
521 <borderwidth>1</borderwidth>
522 </bsbObject>
523 <bsbObject version="2" type="BSBLabel">
524 <objectName/>
525 <x>357</x>
526 <y>89</y>
527 <width>60</width>
528 <height>30</height>
529 <uuid>{d865f626-2bb6-49de-949c-74cd87bfd93e}</uuid>
530 <visible>true</visible>
531 <midichan>0</midichan>
532 <midicc>0</midicc>
533 <label>MIDI:</label>
534 <alignment>right</alignment>
535 <font>Liberation Sans</font>
536 <fontsize>12</fontsize>
537 <precision>3</precision>
538 <color>
539 <r>255</r>
540 <g>255</g>
541 <b>255</b>
542 </color>
543 <bgcolor mode="nobackground">
544 <r>255</r>
545 <g>255</g>
546 <b>255</b>
547 </bgcolor>
548 <bordermode>noborder</bordermode>
549 <borderradius>1</borderradius>
550 <borderwidth>1</borderwidth>
551 </bsbObject>
552 <bsbObject version="2" type="BSBLabel">
553 <objectName/>
554 <x>0</x>
555 <y>163</y>
556 <width>60</width>
557 <height>30</height>
558 <uuid>{0e66e816-cd36-458a-84b9-8de0c69fa321}</uuid>
559 <visible>true</visible>
560 <midichan>0</midichan>
561 <midicc>0</midicc>
562 <label>cps:</label>
563 <alignment>right</alignment>
564 <font>Liberation Sans</font>
565 <fontsize>12</fontsize>
566 <precision>3</precision>
567 <color>
568 <r>255</r>
569 <g>255</g>
570 <b>255</b>
571 </color>
572 <bgcolor mode="nobackground">
573 <r>255</r>
574 <g>255</g>
575 <b>255</b>
576 </bgcolor>
577 <bordermode>noborder</bordermode>
578 <borderradius>1</borderradius>
579 <borderwidth>1</borderwidth>
580 </bsbObject>
581 <bsbObject version="2" type="BSBLabel">
582 <objectName/>
583 <x>124</x>
584 <y>163</y>
585 <width>60</width>
586 <height>30</height>
587 <uuid>{c303878a-396d-4717-8726-afc1414e4271}</uuid>
588 <visible>true</visible>
589 <midichan>0</midichan>
590 <midicc>0</midicc>
591 <label>oct:</label>
592 <alignment>right</alignment>
593 <font>Liberation Sans</font>
594 <fontsize>12</fontsize>
595 <precision>3</precision>
596 <color>
597 <r>255</r>
598 <g>255</g>
599 <b>255</b>
600 </color>
601 <bgcolor mode="nobackground">
602 <r>255</r>
603 <g>255</g>
604 <b>255</b>
605 </bgcolor>
606 <bordermode>noborder</bordermode>
607 <borderradius>1</borderradius>
608 <borderwidth>1</borderwidth>
609 </bsbObject>
610 <bsbObject version="2" type="BSBLabel">
611 <objectName/>
612 <x>238</x>
613 <y>163</y>
614 <width>60</width>
615 <height>30</height>
616 <uuid>{86bd64cb-04e2-431a-a582-3c69026e5e0a}</uuid>
617 <visible>true</visible>
618 <midichan>0</midichan>
619 <midicc>0</midicc>
620 <label>pch:</label>
621 <alignment>right</alignment>
622 <font>Liberation Sans</font>
623 <fontsize>12</fontsize>
624 <precision>3</precision>
625 <color>
626 <r>255</r>
627 <g>255</g>
628 <b>255</b>
629 </color>
630 <bgcolor mode="nobackground">
631 <r>255</r>
632 <g>255</g>
633 <b>255</b>
634 </bgcolor>
635 <bordermode>noborder</bordermode>
636 <borderradius>1</borderradius>
637 <borderwidth>1</borderwidth>
638 </bsbObject>
639 <bsbObject version="2" type="BSBLabel">
640 <objectName/>
641 <x>353</x>
642 <y>163</y>
643 <width>60</width>
644 <height>30</height>
645 <uuid>{aa062c21-d41d-4e09-a771-d90f109e3009}</uuid>
646 <visible>true</visible>
647 <midichan>0</midichan>
648 <midicc>0</midicc>
649 <label>MIDI:</label>
650 <alignment>right</alignment>
651 <font>Liberation Sans</font>
652 <fontsize>12</fontsize>
653 <precision>3</precision>
654 <color>
655 <r>255</r>
656 <g>255</g>
657 <b>255</b>
658 </color>
659 <bgcolor mode="nobackground">
660 <r>255</r>
661 <g>255</g>
662 <b>255</b>
663 </bgcolor>
664 <bordermode>noborder</bordermode>
665 <borderradius>1</borderradius>
666 <borderwidth>1</borderwidth>
667 </bsbObject>
668 <bsbObject version="2" type="BSBButton">
669 <objectName/>
670 <x>28</x>
671 <y>196</y>
672 <width>100</width>
673 <height>24</height>
674 <uuid>{dabffd3f-a11b-4b8e-a022-f38af30978c3}</uuid>
675 <visible>true</visible>
676 <midichan>0</midichan>
677 <midicc>0</midicc>
678 <type>event</type>
679 <pressedValue>1.00000000</pressedValue>
680 <stringvalue/>
681 <text>Convert</text>
682 <image>/</image>
683 <eventLine>i 3 0 0.01</eventLine>
684 <latch>false</latch>
685 <latched>false</latched>
686 </bsbObject>
687 <bsbObject version="2" type="BSBButton">
688 <objectName/>
689 <x>142</x>
690 <y>196</y>
691 <width>100</width>
692 <height>24</height>
693 <uuid>{0f2a5f57-408d-46d9-8ba7-2b6f98d79f35}</uuid>
694 <visible>true</visible>
695 <midichan>0</midichan>
696 <midicc>0</midicc>
697 <type>event</type>
698 <pressedValue>1.00000000</pressedValue>
699 <stringvalue/>
700 <text>Convert</text>
701 <image>/</image>
702 <eventLine>i 4 0 0.01</eventLine>
703 <latch>false</latch>
704 <latched>false</latched>
705 </bsbObject>
706 <bsbObject version="2" type="BSBButton">
707 <objectName/>
708 <x>257</x>
709 <y>196</y>
710 <width>100</width>
711 <height>24</height>
712 <uuid>{3326ce9c-aab5-4961-9041-5cf0ec8c3c26}</uuid>
713 <visible>true</visible>
714 <midichan>0</midichan>
715 <midicc>0</midicc>
716 <type>event</type>
717 <pressedValue>1.00000000</pressedValue>
718 <stringvalue/>
719 <text>Convert</text>
720 <image>/</image>
721 <eventLine>i 5 0 0.01</eventLine>
722 <latch>false</latch>
723 <latched>false</latched>
724 </bsbObject>
725 <bsbObject version="2" type="BSBButton">
726 <objectName/>
727 <x>371</x>
728 <y>196</y>
729 <width>100</width>
730 <height>24</height>
731 <uuid>{ecea7ed6-a9e2-4dbb-856a-74a11042ce24}</uuid>
732 <visible>true</visible>
733 <midichan>0</midichan>
734 <midicc>0</midicc>
735 <type>event</type>
736 <pressedValue>1.00000000</pressedValue>
737 <stringvalue/>
738 <text>Convert</text>
739 <image>/</image>
740 <eventLine>i 6 0 0.01</eventLine>
741 <latch>false</latch>
742 <latched>false</latched>
743 </bsbObject>
744 <bsbObject version="2" type="BSBSpinBox">
745 <objectName>i_cps</objectName>
746 <x>58</x>
747 <y>163</y>
748 <width>68</width>
749 <height>24</height>
750 <uuid>{0a076e73-3357-4fdd-9eef-f1be4d484640}</uuid>
751 <visible>true</visible>
752 <midichan>0</midichan>
753 <midicc>0</midicc>
754 <alignment>right</alignment>
755 <font>Liberation Sans</font>
756 <fontsize>12</fontsize>
757 <color>
758 <r>0</r>
759 <g>0</g>
760 <b>0</b>
761 </color>
762 <bgcolor mode="nobackground">
763 <r>255</r>
764 <g>255</g>
765 <b>255</b>
766 </bgcolor>
767 <resolution>0.01000000</resolution>
768 <minimum>0</minimum>
769 <maximum>20000</maximum>
770 <randomizable group="0">false</randomizable>
771 <value>215.47</value>
772 </bsbObject>
773 <bsbObject version="2" type="BSBSpinBox">
774 <objectName>i_oct</objectName>
775 <x>181</x>
776 <y>163</y>
777 <width>60</width>
778 <height>24</height>
779 <uuid>{3c2aefb0-8ea2-43bd-a413-823da8e68654}</uuid>
780 <visible>true</visible>
781 <midichan>0</midichan>
782 <midicc>0</midicc>
783 <alignment>center</alignment>
784 <font>Liberation Sans</font>
785 <fontsize>12</fontsize>
786 <color>
787 <r>0</r>
788 <g>0</g>
789 <b>0</b>
790 </color>
791 <bgcolor mode="nobackground">
792 <r>255</r>
793 <g>255</g>
794 <b>255</b>
795 </bgcolor>
796 <resolution>0.01000000</resolution>
797 <minimum>0</minimum>
798 <maximum>20</maximum>
799 <randomizable group="0">false</randomizable>
800 <value>7.71998</value>
801 </bsbObject>
802 <bsbObject version="2" type="BSBSpinBox">
803 <objectName>i_pch</objectName>
804 <x>295</x>
805 <y>163</y>
806 <width>60</width>
807 <height>24</height>
808 <uuid>{98e5167d-9a4b-43ff-8f0d-8cca4273fe96}</uuid>
809 <visible>true</visible>
810 <midichan>0</midichan>
811 <midicc>0</midicc>
812 <alignment>center</alignment>
813 <font>Liberation Sans</font>
814 <fontsize>12</fontsize>
815 <color>
816 <r>0</r>
817 <g>0</g>
818 <b>0</b>
819 </color>
820 <bgcolor mode="nobackground">
821 <r>255</r>
822 <g>255</g>
823 <b>255</b>
824 </bgcolor>
825 <resolution>0.01000000</resolution>
826 <minimum>0</minimum>
827 <maximum>20</maximum>
828 <randomizable group="0">false</randomizable>
829 <value>7.0864</value>
830 </bsbObject>
831 <bsbObject version="2" type="BSBSpinBox">
832 <objectName>i_MIDI</objectName>
833 <x>410</x>
834 <y>163</y>
835 <width>60</width>
836 <height>24</height>
837 <uuid>{bc5a9d05-aa02-4152-98d1-26cf9c89309d}</uuid>
838 <visible>true</visible>
839 <midichan>0</midichan>
840 <midicc>0</midicc>
841 <alignment>center</alignment>
842 <font>Liberation Sans</font>
843 <fontsize>12</fontsize>
844 <color>
845 <r>0</r>
846 <g>0</g>
847 <b>0</b>
848 </color>
849 <bgcolor mode="nobackground">
850 <r>255</r>
851 <g>255</g>
852 <b>255</b>
853 </bgcolor>
854 <resolution>1.00000000</resolution>
855 <minimum>0</minimum>
856 <maximum>127</maximum>
857 <randomizable group="0">false</randomizable>
858 <value>56.6398</value>
859 </bsbObject>
860 </bsbPanel>
861 <bsbPresets>
862 </bsbPresets>
863 <EventPanel name="" tempo="60.00000000" loop="8.00000000" x="913" y="162" width="655" height="346" visible="true" loopStart="0" loopEnd="0"> </EventPanel>