Debian Codegraph @

src/Examples/CsoundQt/Useful/SF_Play_from_buffer_2.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 </CsOptions>
4 <CsInstruments>
5
6 sr = 44100
7 ksmps = 16
8 nchnls = 2
9 0dbfs = 1
10
11 /*****Playing a soundfile 2b: Play from a buffer with more features*****/
12 ;written by joachim heintz and andres cabrera
13 ;mar 2009
14
15 opcode PlayBuf, ak, iiikiki
16 /*Plays a buffer (function table) with a known length,
17 and gives the time in the range 0-1.*/
18 /*input:
19 ifn: name or nummer of the function table
20 ifnlen: its length in samples resp. indices
21 ifnsr: its samplerate
22 kspeed: speed of reading (1 = normal)
23 iskip: skiptime in seconds
24 kvol: volume multiplier (1 = normal)
25 icnvrt: 1 = samplerate conversion if the sr of the soundfile is not the same as in the orchestra; 0 = no conversion
26 */
27 /*output:
28 asig: audio signal reading the table
29 ktimout: time in the table in seconds
30 */
31 ifn, ifnlen, ifnsr, kspeed, iskip, kvol, icnvrt xin
32 if ifnsr != sr then
33 setksmps 1; if sr is different, set local ksmps to 1 for best quality
34 endif
35 if icnvrt == 1 then
36 irel = ifnlen / ifnsr
37 else
38 irel = ifnlen / sr
39 endif
40 kcps = kspeed / irel
41 iphs = iskip / irel
42 asig poscil3 kvol, kcps, ifn, iphs
43 ktim phasor kcps, iphs
44 ktimout = ktim * irel
45 xout asig, ktimout
46 endop
47
48 opcode ShowLED_a, 0, Sakik
49 ;Shows an audio signal in an outvalue channel.
50 ;You can choose to show the value in dB or in raw amplitudes.
51 ;
52 ;Input:
53 ;Soutchan: string with the name of the outvalue channel
54 ;asig: audio signal which is to displayed
55 ;kdispfreq: refresh frequency (Hz)
56 ;idb: 1 = show in dB, 0 = show in raw amplitudes (both in the range 0-1)
57 ;idbrange: if idb=1: how many db-steps are shown (e.g. if 36 you will not see anything from a signal below -36 dB)
58
59 Soutchan, asig, ktrig, idb, kdbrange xin
60 kdispval max_k asig, ktrig, 1
61 if idb != 0 then
62 kdb = dbfsamp(kdispval)
63 kval = (kdbrange + kdb) / kdbrange
64 else
65 kval = kdispval
66 endif
67 if ktrig == 1 then
68 outvalue Soutchan, kval
69 endif
70 endop
71
72 opcode ShowOver_a, 0, Sakk
73 ;Shows if the incoming audio signal was more than 1 and stays there for some time
74 ;Input:
75 ;Soutchan: string with the name of the outvalue channel
76 ;asig: audio signal which is to displayed
77 ;kdispfreq: refresh frequency (Hz)
78 ;khold: time in seconds to "hold the red light"
79
80 Soutchan, asig, ktrig, khold xin
81 kon init 0
82 ktim times
83 kstart init 0
84 kend init 0
85 khold = (khold < .01 ? .01 : khold); avoiding too short hold times
86 kmax max_k asig, ktrig, 1
87 if kon == 0 && kmax > 1 && ktrig == 1 then
88 kstart = ktim
89 kend = kstart + khold
90 outvalue Soutchan, kmax
91 kon = 1
92 endif
93 if kon == 1 && ktim > kend && ktrig == 1 then
94 outvalue Soutchan, 0
95 kon = 0
96 endif
97 endop
98
99
100
101 instr 1; always on
102 gkpaus init 0; status of the pause button
103 gkspeed init 1; speed for reading the buffer
104 gkconvertsr invalue "convertsr"
105 kdb invalue "db"; gain value in dB
106 gkskip invalue "skip"; skiptime in sec
107 gkloop invalue "loop"; value 1 if checked
108 ;volume display
109 gkmult = ampdbfs(kdb)
110 Sdb_disp sprintfk "%+.2f dB", kdb
111 outvalue "db_disp", Sdb_disp
112 endin
113
114 instr 2 ;play
115 Sfile invalue "_Browse1"; get the name (look at the example in Examples->Reserved Channels)
116 gilen filelen Sfile; duration of the file
117 gichn filenchnls Sfile; is the file mono or stereo
118 gifilesr filesr Sfile
119
120 ;reading the data in the buffers (function tables)
121 giL ftgen 0, 0, 0, -1, Sfile, 0, 0, 1
122 gilenbuf = ftlen(giL)
123 if gichn == 2 then
124 giR ftgen 0, 0, 0, -1, Sfile, 0, 0, 2
125 endif
126
127 ;send a message if the sr of the file doesn't match the sr of the orchestra
128 if gifilesr != sr then
129 if i(gkconvertsr) == 1 then
130 Swarn sprintf "Warning:\nSamplerate of the file is %d, but samplerate of the orchestra is %d. Samplerate will be converted by changing speed of reading.", gifilesr, sr
131 outvalue "message", Swarn
132 else
133 Swarn sprintf "Warning:\nSamplerate of the file is %d, but samplerate of the orchestra is %d. Samplerate will not be converted, so you will have changes in tempo and pitch.", gifilesr, sr
134 outvalue "message", Swarn
135 endif
136 else
137 Smess sprintf "Length = %.3f\nSamplerate = %d\nChannels = %d", gilen, gifilesr, gichn
138 outvalue "message", Smess
139 endif
140
141
142 if gkpaus == 1 then ;if pause
143 event "i", 4, 0, .1; call the pause instr
144 else
145 event "i", 10, 0, 1
146 endif
147 turnoff
148 endin
149
150 instr 3; stop
151 turnoff2 1, 0,0
152 endin
153
154 instr 4; pause/resume
155 if gkpaus == 0 then
156 gkspeed = 0
157 gkpaus = 1
158 else
159 gkspeed = 1
160 gkpaus = 0
161 endif
162 turnoff
163 endin
164
165
166 instr 10; playing
167 iloop = i(gkloop)
168 iskip = i(gkskip)
169 icnvrt = i(gkconvertsr)
170
171 kdbrange invalue "dbrange" ;dB range for the meters
172 kpeakhold invalue "peakhold" ;Duration of clip indicator hold in seconds
173
174 idur = (iloop == 1 ? 9999 : gilen - iskip)
175 p3 = idur
176 if gichn == 1 then
177 aL, ktimout PlayBuf giL, gilenbuf, gifilesr, gkspeed, iskip, gkmult, icnvrt
178 aR = aL
179 else
180 aL, ktimout PlayBuf giL, gilenbuf, gifilesr, gkspeed, iskip, gkmult, icnvrt
181 aR, knix PlayBuf giR, gilenbuf, gifilesr, gkspeed, iskip, gkmult, icnvrt
182 endif
183 ;show output
184 kTrigDisp metro 10
185 ShowLED_a "outL", aL, kTrigDisp, 1, kdbrange
186 ShowLED_a "outR", aR, kTrigDisp, 1, kdbrange
187 ShowOver_a "outLover", aL, kTrigDisp, kpeakhold
188 ShowOver_a "outRover", aR, kTrigDisp, kpeakhold
189 ;read and show time
190 ktimouthor = int(ktimout / 3600)
191 Shor sprintfk "%02d", ktimouthor
192 ktimoutmin = int(ktimout / 60)
193 Smin sprintfk "%02d", ktimoutmin
194 ktimoutsec = int(ktimout % 60)
195 Ssec sprintfk "%02d", ktimoutsec
196 ktimoutms = frac(ktimout) * 1000
197 Sms sprintfk "%03d", ktimoutms
198 outvalue "hor", Shor
199 outvalue "min", Smin
200 outvalue "sec", Ssec
201 outvalue "ms", Sms
202
203 outs aL, aR
204 endin
205
206
207 </CsInstruments>
208 <CsScore>
209 i 1 0 36000; don't listen to music longer than 10 hours
210 e
211 </CsScore>
212 </CsoundSynthesizer>
213 <bsbPanel>
214 <label>Widgets</label>
215 <objectName/>
216 <x>0</x>
217 <y>0</y>
218 <width>483</width>
219 <height>539</height>
220 <visible>true</visible>
221 <uuid/>
222 <bgcolor mode="background">
223 <r>120</r>
224 <g>138</g>
225 <b>170</b>
226 </bgcolor>
227 <bsbObject version="2" type="BSBLineEdit">
228 <objectName>_Browse1</objectName>
229 <x>15</x>
230 <y>95</y>
231 <width>345</width>
232 <height>24</height>
233 <uuid>{16aca12d-8e44-4b5c-9e02-6db2c75f57e3}</uuid>
234 <visible>true</visible>
235 <midichan>0</midichan>
236 <midicc>0</midicc>
237 <label/>
238 <alignment>left</alignment>
239 <font>DejaVu Sans</font>
240 <fontsize>10</fontsize>
241 <precision>3</precision>
242 <color>
243 <r>0</r>
244 <g>0</g>
245 <b>0</b>
246 </color>
247 <bgcolor mode="nobackground">
248 <r>229</r>
249 <g>229</g>
250 <b>229</b>
251 </bgcolor>
252 <background>nobackground</background>
253 </bsbObject>
254 <bsbObject version="2" type="BSBButton">
255 <objectName>_Browse1</objectName>
256 <x>362</x>
257 <y>92</y>
258 <width>100</width>
259 <height>30</height>
260 <uuid>{903e3360-4b33-4c1e-8063-1d4c05bb242a}</uuid>
261 <visible>true</visible>
262 <midichan>0</midichan>
263 <midicc>-3</midicc>
264 <type>value</type>
265 <pressedValue>1.00000000</pressedValue>
266 <stringvalue>/home/linux/Joachim/Materialien/SamplesKlangbearbeitung/PassageMono.aiff</stringvalue>
267 <text>Open File</text>
268 <image>/</image>
269 <eventLine/>
270 <latch>false</latch>
271 <latched>false</latched>
272 </bsbObject>
273 <bsbObject version="2" type="BSBHSlider">
274 <objectName>db</objectName>
275 <x>110</x>
276 <y>235</y>
277 <width>160</width>
278 <height>31</height>
279 <uuid>{79bc1456-4022-44f7-8e0d-225f5e96526b}</uuid>
280 <visible>true</visible>
281 <midichan>0</midichan>
282 <midicc>-3</midicc>
283 <minimum>-18.00000000</minimum>
284 <maximum>18.00000000</maximum>
285 <value>-0.45000000</value>
286 <mode>lin</mode>
287 <mouseControl act="jump">continuous</mouseControl>
288 <resolution>-1.00000000</resolution>
289 <randomizable group="0">false</randomizable>
290 </bsbObject>
291 <bsbObject version="2" type="BSBDisplay">
292 <objectName>db_disp</objectName>
293 <x>270</x>
294 <y>235</y>
295 <width>120</width>
296 <height>31</height>
297 <uuid>{0150cd3e-fcf9-4433-a8a2-e43791847383}</uuid>
298 <visible>true</visible>
299 <midichan>0</midichan>
300 <midicc>0</midicc>
301 <label>-0.45 dB</label>
302 <alignment>left</alignment>
303 <font>DejaVu Sans</font>
304 <fontsize>18</fontsize>
305 <precision>3</precision>
306 <color>
307 <r>0</r>
308 <g>0</g>
309 <b>0</b>
310 </color>
311 <bgcolor mode="nobackground">
312 <r>255</r>
313 <g>255</g>
314 <b>255</b>
315 </bgcolor>
316 <bordermode>noborder</bordermode>
317 <borderradius>1</borderradius>
318 <borderwidth>1</borderwidth>
319 </bsbObject>
320 <bsbObject version="2" type="BSBButton">
321 <objectName/>
322 <x>13</x>
323 <y>138</y>
324 <width>78</width>
325 <height>26</height>
326 <uuid>{a291df2a-9d8b-4a45-ab3d-c4bb52537abb}</uuid>
327 <visible>true</visible>
328 <midichan>0</midichan>
329 <midicc>-3</midicc>
330 <type>event</type>
331 <pressedValue>1.00000000</pressedValue>
332 <stringvalue/>
333 <text>Play</text>
334 <image>/</image>
335 <eventLine>i 2 0 .1</eventLine>
336 <latch>false</latch>
337 <latched>false</latched>
338 </bsbObject>
339 <bsbObject version="2" type="BSBButton">
340 <objectName>_Stop</objectName>
341 <x>221</x>
342 <y>138</y>
343 <width>80</width>
344 <height>25</height>
345 <uuid>{e3508832-4264-4f71-becd-61be2a132d5b}</uuid>
346 <visible>true</visible>
347 <midichan>0</midichan>
348 <midicc>-3</midicc>
349 <type>value</type>
350 <pressedValue>1.00000000</pressedValue>
351 <stringvalue/>
352 <text>Stop</text>
353 <image>/</image>
354 <eventLine>i 3 0 .1</eventLine>
355 <latch>false</latch>
356 <latched>true</latched>
357 </bsbObject>
358 <bsbObject version="2" type="BSBSpinBox">
359 <objectName>skip</objectName>
360 <x>13</x>
361 <y>203</y>
362 <width>87</width>
363 <height>25</height>
364 <uuid>{d6f2a1f3-eb8b-4082-8b03-eca92a7db848}</uuid>
365 <visible>true</visible>
366 <midichan>0</midichan>
367 <midicc>-3</midicc>
368 <alignment>right</alignment>
369 <font>Lucida Grande</font>
370 <fontsize>10</fontsize>
371 <color>
372 <r>0</r>
373 <g>0</g>
374 <b>0</b>
375 </color>
376 <bgcolor mode="nobackground">
377 <r>255</r>
378 <g>255</g>
379 <b>255</b>
380 </bgcolor>
381 <resolution>0.00100000</resolution>
382 <minimum>-1e+12</minimum>
383 <maximum>1e+12</maximum>
384 <randomizable group="0">false</randomizable>
385 <value>0</value>
386 </bsbObject>
387 <bsbObject version="2" type="BSBButton">
388 <objectName/>
389 <x>115</x>
390 <y>137</y>
391 <width>80</width>
392 <height>25</height>
393 <uuid>{0e7e868a-bb71-4ed9-9f5c-8a5168d53620}</uuid>
394 <visible>true</visible>
395 <midichan>0</midichan>
396 <midicc>-3</midicc>
397 <type>event</type>
398 <pressedValue>1.00000000</pressedValue>
399 <stringvalue/>
400 <text>Pause</text>
401 <image>/</image>
402 <eventLine>i 4 0 .1</eventLine>
403 <latch>false</latch>
404 <latched>false</latched>
405 </bsbObject>
406 <bsbObject version="2" type="BSBCheckBox">
407 <objectName>loop</objectName>
408 <x>141</x>
409 <y>200</y>
410 <width>20</width>
411 <height>20</height>
412 <uuid>{18e70fdf-dbab-4cf7-9c33-f7e5db09ad56}</uuid>
413 <visible>true</visible>
414 <midichan>0</midichan>
415 <midicc>-3</midicc>
416 <selected>false</selected>
417 <label/>
418 <pressedValue>1</pressedValue>
419 <randomizable group="0">false</randomizable>
420 </bsbObject>
421 <bsbObject version="2" type="BSBDisplay">
422 <objectName>min</objectName>
423 <x>331</x>
424 <y>296</y>
425 <width>37</width>
426 <height>30</height>
427 <uuid>{427186bf-14a9-4b64-8a19-d22cce59633d}</uuid>
428 <visible>true</visible>
429 <midichan>0</midichan>
430 <midicc>-3</midicc>
431 <label>00</label>
432 <alignment>right</alignment>
433 <font>Lucida Grande</font>
434 <fontsize>18</fontsize>
435 <precision>3</precision>
436 <color>
437 <r>0</r>
438 <g>0</g>
439 <b>0</b>
440 </color>
441 <bgcolor mode="nobackground">
442 <r>255</r>
443 <g>255</g>
444 <b>255</b>
445 </bgcolor>
446 <bordermode>noborder</bordermode>
447 <borderradius>1</borderradius>
448 <borderwidth>1</borderwidth>
449 </bsbObject>
450 <bsbObject version="2" type="BSBDisplay">
451 <objectName>sec</objectName>
452 <x>378</x>
453 <y>296</y>
454 <width>35</width>
455 <height>31</height>
456 <uuid>{5d54bf1a-4ba9-4a73-8b1c-821429894ba6}</uuid>
457 <visible>true</visible>
458 <midichan>0</midichan>
459 <midicc>-3</midicc>
460 <label>09</label>
461 <alignment>right</alignment>
462 <font>DejaVu Sans</font>
463 <fontsize>18</fontsize>
464 <precision>3</precision>
465 <color>
466 <r>0</r>
467 <g>0</g>
468 <b>0</b>
469 </color>
470 <bgcolor mode="nobackground">
471 <r>255</r>
472 <g>255</g>
473 <b>255</b>
474 </bgcolor>
475 <bordermode>noborder</bordermode>
476 <borderradius>1</borderradius>
477 <borderwidth>1</borderwidth>
478 </bsbObject>
479 <bsbObject version="2" type="BSBLabel">
480 <objectName/>
481 <x>366</x>
482 <y>296</y>
483 <width>14</width>
484 <height>29</height>
485 <uuid>{ad04bd24-c15e-48bd-b79a-aef90a60f8c0}</uuid>
486 <visible>true</visible>
487 <midichan>0</midichan>
488 <midicc>-3</midicc>
489 <label>:</label>
490 <alignment>center</alignment>
491 <font>Lucida Grande</font>
492 <fontsize>18</fontsize>
493 <precision>3</precision>
494 <color>
495 <r>0</r>
496 <g>0</g>
497 <b>0</b>
498 </color>
499 <bgcolor mode="nobackground">
500 <r>255</r>
501 <g>255</g>
502 <b>255</b>
503 </bgcolor>
504 <bordermode>noborder</bordermode>
505 <borderradius>1</borderradius>
506 <borderwidth>1</borderwidth>
507 </bsbObject>
508 <bsbObject version="2" type="BSBLabel">
509 <objectName/>
510 <x>11</x>
511 <y>172</y>
512 <width>88</width>
513 <height>30</height>
514 <uuid>{0989bcfd-9791-4812-b5c8-9d564434be8d}</uuid>
515 <visible>true</visible>
516 <midichan>0</midichan>
517 <midicc>-3</midicc>
518 <label>skiptime</label>
519 <alignment>center</alignment>
520 <font>Lucida Grande</font>
521 <fontsize>14</fontsize>
522 <precision>3</precision>
523 <color>
524 <r>0</r>
525 <g>0</g>
526 <b>0</b>
527 </color>
528 <bgcolor mode="nobackground">
529 <r>255</r>
530 <g>255</g>
531 <b>255</b>
532 </bgcolor>
533 <bordermode>noborder</bordermode>
534 <borderradius>1</borderradius>
535 <borderwidth>1</borderwidth>
536 </bsbObject>
537 <bsbObject version="2" type="BSBLabel">
538 <objectName/>
539 <x>120</x>
540 <y>174</y>
541 <width>59</width>
542 <height>30</height>
543 <uuid>{8a1f863a-148c-4eea-897d-f8c4ae5bb01f}</uuid>
544 <visible>true</visible>
545 <midichan>0</midichan>
546 <midicc>-3</midicc>
547 <label>loop</label>
548 <alignment>center</alignment>
549 <font>Lucida Grande</font>
550 <fontsize>14</fontsize>
551 <precision>3</precision>
552 <color>
553 <r>0</r>
554 <g>0</g>
555 <b>0</b>
556 </color>
557 <bgcolor mode="nobackground">
558 <r>255</r>
559 <g>255</g>
560 <b>255</b>
561 </bgcolor>
562 <bordermode>noborder</bordermode>
563 <borderradius>1</borderradius>
564 <borderwidth>1</borderwidth>
565 </bsbObject>
566 <bsbObject version="2" type="BSBLabel">
567 <objectName/>
568 <x>12</x>
569 <y>234</y>
570 <width>88</width>
571 <height>30</height>
572 <uuid>{e58f4db9-254f-430c-9d75-6f57d504fbe5}</uuid>
573 <visible>true</visible>
574 <midichan>0</midichan>
575 <midicc>-3</midicc>
576 <label>volume</label>
577 <alignment>center</alignment>
578 <font>Lucida Grande</font>
579 <fontsize>18</fontsize>
580 <precision>3</precision>
581 <color>
582 <r>0</r>
583 <g>0</g>
584 <b>0</b>
585 </color>
586 <bgcolor mode="nobackground">
587 <r>255</r>
588 <g>255</g>
589 <b>255</b>
590 </bgcolor>
591 <bordermode>noborder</bordermode>
592 <borderradius>1</borderradius>
593 <borderwidth>1</borderwidth>
594 </bsbObject>
595 <bsbObject version="2" type="BSBDisplay">
596 <objectName>message</objectName>
597 <x>9</x>
598 <y>399</y>
599 <width>464</width>
600 <height>131</height>
601 <uuid>{a5c41213-116d-4c3b-b779-b0f2db33cb7b}</uuid>
602 <visible>true</visible>
603 <midichan>0</midichan>
604 <midicc>0</midicc>
605 <label/>
606 <alignment>center</alignment>
607 <font>DejaVu Sans</font>
608 <fontsize>14</fontsize>
609 <precision>3</precision>
610 <color>
611 <r>0</r>
612 <g>0</g>
613 <b>0</b>
614 </color>
615 <bgcolor mode="background">
616 <r>197</r>
617 <g>197</g>
618 <b>197</b>
619 </bgcolor>
620 <bordermode>border</bordermode>
621 <borderradius>1</borderradius>
622 <borderwidth>1</borderwidth>
623 </bsbObject>
624 <bsbObject version="2" type="BSBLabel">
625 <objectName/>
626 <x>11</x>
627 <y>364</y>
628 <width>462</width>
629 <height>30</height>
630 <uuid>{057ac2d1-8533-4178-a423-87cdc6ea13fc}</uuid>
631 <visible>true</visible>
632 <midichan>0</midichan>
633 <midicc>-3</midicc>
634 <label>Messages</label>
635 <alignment>center</alignment>
636 <font>Lucida Grande</font>
637 <fontsize>18</fontsize>
638 <precision>3</precision>
639 <color>
640 <r>0</r>
641 <g>0</g>
642 <b>0</b>
643 </color>
644 <bgcolor mode="nobackground">
645 <r>255</r>
646 <g>255</g>
647 <b>255</b>
648 </bgcolor>
649 <bordermode>noborder</bordermode>
650 <borderradius>1</borderradius>
651 <borderwidth>1</borderwidth>
652 </bsbObject>
653 <bsbObject version="2" type="BSBController">
654 <objectName>outL</objectName>
655 <x>10</x>
656 <y>273</y>
657 <width>250</width>
658 <height>19</height>
659 <uuid>{41760197-5e26-4055-8358-c6a1e7d58fa3}</uuid>
660 <visible>true</visible>
661 <midichan>0</midichan>
662 <midicc>-3</midicc>
663 <objectName2>out1_post</objectName2>
664 <xMin>0.00000000</xMin>
665 <xMax>1.00000000</xMax>
666 <yMin>0.00000000</yMin>
667 <yMax>1.00000000</yMax>
668 <xValue>0.50617135</xValue>
669 <yValue>0.52631600</yValue>
670 <type>fill</type>
671 <pointsize>1</pointsize>
672 <fadeSpeed>0.00000000</fadeSpeed>
673 <mouseControl act="press">jump</mouseControl>
674 <color>
675 <r>0</r>
676 <g>234</g>
677 <b>0</b>
678 </color>
679 <randomizable mode="both" group="0">false</randomizable>
680 <bgcolor>
681 <r>0</r>
682 <g>0</g>
683 <b>0</b>
684 </bgcolor>
685 </bsbObject>
686 <bsbObject version="2" type="BSBController">
687 <objectName>outLover</objectName>
688 <x>258</x>
689 <y>273</y>
690 <width>21</width>
691 <height>19</height>
692 <uuid>{e082e5d1-8e6a-4662-8b3f-2e8cb50814e5}</uuid>
693 <visible>true</visible>
694 <midichan>0</midichan>
695 <midicc>-3</midicc>
696 <objectName2>outLover</objectName2>
697 <xMin>0.00000000</xMin>
698 <xMax>1.00000000</xMax>
699 <yMin>0.00000000</yMin>
700 <yMax>1.00000000</yMax>
701 <xValue>0.00000000</xValue>
702 <yValue>0.00000000</yValue>
703 <type>fill</type>
704 <pointsize>1</pointsize>
705 <fadeSpeed>0.00000000</fadeSpeed>
706 <mouseControl act="press">jump</mouseControl>
707 <color>
708 <r>196</r>
709 <g>14</g>
710 <b>12</b>
711 </color>
712 <randomizable mode="both" group="0">false</randomizable>
713 <bgcolor>
714 <r>0</r>
715 <g>0</g>
716 <b>0</b>
717 </bgcolor>
718 </bsbObject>
719 <bsbObject version="2" type="BSBController">
720 <objectName>outR</objectName>
721 <x>10</x>
722 <y>300</y>
723 <width>250</width>
724 <height>19</height>
725 <uuid>{9530a3d5-9c8f-4e3f-a369-37d31ce808d8}</uuid>
726 <visible>true</visible>
727 <midichan>0</midichan>
728 <midicc>-3</midicc>
729 <objectName2>out2_post</objectName2>
730 <xMin>0.00000000</xMin>
731 <xMax>1.00000000</xMax>
732 <yMin>0.00000000</yMin>
733 <yMax>1.00000000</yMax>
734 <xValue>0.50617135</xValue>
735 <yValue>0.52631600</yValue>
736 <type>fill</type>
737 <pointsize>1</pointsize>
738 <fadeSpeed>0.00000000</fadeSpeed>
739 <mouseControl act="press">jump</mouseControl>
740 <color>
741 <r>0</r>
742 <g>234</g>
743 <b>0</b>
744 </color>
745 <randomizable mode="both" group="0">false</randomizable>
746 <bgcolor>
747 <r>0</r>
748 <g>0</g>
749 <b>0</b>
750 </bgcolor>
751 </bsbObject>
752 <bsbObject version="2" type="BSBController">
753 <objectName>outRover</objectName>
754 <x>258</x>
755 <y>300</y>
756 <width>21</width>
757 <height>19</height>
758 <uuid>{8487174c-0be1-472d-bbd7-3910cb0ee79b}</uuid>
759 <visible>true</visible>
760 <midichan>0</midichan>
761 <midicc>-3</midicc>
762 <objectName2>outRover</objectName2>
763 <xMin>0.00000000</xMin>
764 <xMax>1.00000000</xMax>
765 <yMin>0.00000000</yMin>
766 <yMax>1.00000000</yMax>
767 <xValue>0.00000000</xValue>
768 <yValue>0.00000000</yValue>
769 <type>fill</type>
770 <pointsize>1</pointsize>
771 <fadeSpeed>0.00000000</fadeSpeed>
772 <mouseControl act="press">jump</mouseControl>
773 <color>
774 <r>196</r>
775 <g>14</g>
776 <b>12</b>
777 </color>
778 <randomizable mode="both" group="0">false</randomizable>
779 <bgcolor>
780 <r>0</r>
781 <g>0</g>
782 <b>0</b>
783 </bgcolor>
784 </bsbObject>
785 <bsbObject version="2" type="BSBSpinBox">
786 <objectName>dbrange</objectName>
787 <x>96</x>
788 <y>330</y>
789 <width>80</width>
790 <height>25</height>
791 <uuid>{e56c5ecf-8dd6-4ab6-a692-0d0af432ec5e}</uuid>
792 <visible>true</visible>
793 <midichan>0</midichan>
794 <midicc>-3</midicc>
795 <alignment>left</alignment>
796 <font>Lucida Grande</font>
797 <fontsize>10</fontsize>
798 <color>
799 <r>0</r>
800 <g>0</g>
801 <b>0</b>
802 </color>
803 <bgcolor mode="nobackground">
804 <r>255</r>
805 <g>255</g>
806 <b>255</b>
807 </bgcolor>
808 <resolution>0.10000000</resolution>
809 <minimum>-1e+12</minimum>
810 <maximum>1e+12</maximum>
811 <randomizable group="0">false</randomizable>
812 <value>48</value>
813 </bsbObject>
814 <bsbObject version="2" type="BSBLabel">
815 <objectName/>
816 <x>11</x>
817 <y>329</y>
818 <width>81</width>
819 <height>27</height>
820 <uuid>{fdb9a176-d48a-47d5-a4f5-8d8206a668f0}</uuid>
821 <visible>true</visible>
822 <midichan>0</midichan>
823 <midicc>0</midicc>
824 <label>dB Range</label>
825 <alignment>left</alignment>
826 <font>Nimbus Sans L</font>
827 <fontsize>14</fontsize>
828 <precision>3</precision>
829 <color>
830 <r>0</r>
831 <g>0</g>
832 <b>0</b>
833 </color>
834 <bgcolor mode="nobackground">
835 <r>255</r>
836 <g>255</g>
837 <b>255</b>
838 </bgcolor>
839 <bordermode>noborder</bordermode>
840 <borderradius>1</borderradius>
841 <borderwidth>1</borderwidth>
842 </bsbObject>
843 <bsbObject version="2" type="BSBSpinBox">
844 <objectName>peakhold</objectName>
845 <x>348</x>
846 <y>331</y>
847 <width>57</width>
848 <height>25</height>
849 <uuid>{2eec9b56-b85e-4c82-8b51-e852c51d13f3}</uuid>
850 <visible>true</visible>
851 <midichan>0</midichan>
852 <midicc>-3</midicc>
853 <alignment>left</alignment>
854 <font>Lucida Grande</font>
855 <fontsize>10</fontsize>
856 <color>
857 <r>0</r>
858 <g>0</g>
859 <b>0</b>
860 </color>
861 <bgcolor mode="nobackground">
862 <r>255</r>
863 <g>255</g>
864 <b>255</b>
865 </bgcolor>
866 <resolution>1.00000000</resolution>
867 <minimum>-1e+12</minimum>
868 <maximum>1e+12</maximum>
869 <randomizable group="0">false</randomizable>
870 <value>3</value>
871 </bsbObject>
872 <bsbObject version="2" type="BSBLabel">
873 <objectName/>
874 <x>218</x>
875 <y>329</y>
876 <width>131</width>
877 <height>27</height>
878 <uuid>{a2a86f3a-03d7-4069-b13c-aa66c4e1a1f2}</uuid>
879 <visible>true</visible>
880 <midichan>0</midichan>
881 <midicc>-3</midicc>
882 <label>Peak Hold time</label>
883 <alignment>left</alignment>
884 <font>DejaVu Sans</font>
885 <fontsize>14</fontsize>
886 <precision>3</precision>
887 <color>
888 <r>0</r>
889 <g>0</g>
890 <b>0</b>
891 </color>
892 <bgcolor mode="nobackground">
893 <r>255</r>
894 <g>255</g>
895 <b>255</b>
896 </bgcolor>
897 <bordermode>noborder</bordermode>
898 <borderradius>1</borderradius>
899 <borderwidth>1</borderwidth>
900 </bsbObject>
901 <bsbObject version="2" type="BSBCheckBox">
902 <objectName>convertsr</objectName>
903 <x>216</x>
904 <y>201</y>
905 <width>20</width>
906 <height>20</height>
907 <uuid>{9a016013-437a-42fb-bec6-c8b6b26161cb}</uuid>
908 <visible>true</visible>
909 <midichan>0</midichan>
910 <midicc>-3</midicc>
911 <selected>false</selected>
912 <label/>
913 <pressedValue>1</pressedValue>
914 <randomizable group="0">false</randomizable>
915 </bsbObject>
916 <bsbObject version="2" type="BSBLabel">
917 <objectName/>
918 <x>192</x>
919 <y>174</y>
920 <width>62</width>
921 <height>30</height>
922 <uuid>{877b025c-3d7a-4143-b0b2-8bffe7ae7591}</uuid>
923 <visible>true</visible>
924 <midichan>0</midichan>
925 <midicc>-3</midicc>
926 <label>convert</label>
927 <alignment>center</alignment>
928 <font>Lucida Grande</font>
929 <fontsize>14</fontsize>
930 <precision>3</precision>
931 <color>
932 <r>0</r>
933 <g>0</g>
934 <b>0</b>
935 </color>
936 <bgcolor mode="nobackground">
937 <r>255</r>
938 <g>255</g>
939 <b>255</b>
940 </bgcolor>
941 <bordermode>noborder</bordermode>
942 <borderradius>1</borderradius>
943 <borderwidth>1</borderwidth>
944 </bsbObject>
945 <bsbObject version="2" type="BSBDisplay">
946 <objectName>hor</objectName>
947 <x>289</x>
948 <y>295</y>
949 <width>32</width>
950 <height>32</height>
951 <uuid>{728567e2-f821-4f99-bc41-86d8d09ca29f}</uuid>
952 <visible>true</visible>
953 <midichan>0</midichan>
954 <midicc>-3</midicc>
955 <label>00</label>
956 <alignment>right</alignment>
957 <font>Lucida Grande</font>
958 <fontsize>18</fontsize>
959 <precision>3</precision>
960 <color>
961 <r>0</r>
962 <g>0</g>
963 <b>0</b>
964 </color>
965 <bgcolor mode="nobackground">
966 <r>255</r>
967 <g>255</g>
968 <b>255</b>
969 </bgcolor>
970 <bordermode>noborder</bordermode>
971 <borderradius>1</borderradius>
972 <borderwidth>1</borderwidth>
973 </bsbObject>
974 <bsbObject version="2" type="BSBDisplay">
975 <objectName>ms</objectName>
976 <x>424</x>
977 <y>297</y>
978 <width>44</width>
979 <height>30</height>
980 <uuid>{bdf71544-8723-4843-aa62-5bd7463479fa}</uuid>
981 <visible>true</visible>
982 <midichan>0</midichan>
983 <midicc>-3</midicc>
984 <label>147</label>
985 <alignment>right</alignment>
986 <font>DejaVu Sans</font>
987 <fontsize>18</fontsize>
988 <precision>3</precision>
989 <color>
990 <r>0</r>
991 <g>0</g>
992 <b>0</b>
993 </color>
994 <bgcolor mode="nobackground">
995 <r>255</r>
996 <g>255</g>
997 <b>255</b>
998 </bgcolor>
999 <bordermode>noborder</bordermode>
1000 <borderradius>1</borderradius>
1001 <borderwidth>1</borderwidth>
1002 </bsbObject>
1003 <bsbObject version="2" type="BSBLabel">
1004 <objectName/>
1005 <x>320</x>
1006 <y>297</y>
1007 <width>14</width>
1008 <height>29</height>
1009 <uuid>{c5db02d0-f14f-491a-85e3-0ae9a9fb2e17}</uuid>
1010 <visible>true</visible>
1011 <midichan>0</midichan>
1012 <midicc>-3</midicc>
1013 <label>:</label>
1014 <alignment>center</alignment>
1015 <font>Lucida Grande</font>
1016 <fontsize>18</fontsize>
1017 <precision>3</precision>
1018 <color>
1019 <r>0</r>
1020 <g>0</g>
1021 <b>0</b>
1022 </color>
1023 <bgcolor mode="nobackground">
1024 <r>255</r>
1025 <g>255</g>
1026 <b>255</b>
1027 </bgcolor>
1028 <bordermode>noborder</bordermode>
1029 <borderradius>1</borderradius>
1030 <borderwidth>1</borderwidth>
1031 </bsbObject>
1032 <bsbObject version="2" type="BSBLabel">
1033 <objectName/>
1034 <x>411</x>
1035 <y>296</y>
1036 <width>14</width>
1037 <height>29</height>
1038 <uuid>{3be38656-011b-4f94-b4b4-4aaf49e4c2f7}</uuid>
1039 <visible>true</visible>
1040 <midichan>0</midichan>
1041 <midicc>-3</midicc>
1042 <label>:</label>
1043 <alignment>center</alignment>
1044 <font>Lucida Grande</font>
1045 <fontsize>18</fontsize>
1046 <precision>3</precision>
1047 <color>
1048 <r>0</r>
1049 <g>0</g>
1050 <b>0</b>
1051 </color>
1052 <bgcolor mode="nobackground">
1053 <r>255</r>
1054 <g>255</g>
1055 <b>255</b>
1056 </bgcolor>
1057 <bordermode>noborder</bordermode>
1058 <borderradius>1</borderradius>
1059 <borderwidth>1</borderwidth>
1060 </bsbObject>
1061 <bsbObject version="2" type="BSBLabel">
1062 <objectName/>
1063 <x>286</x>
1064 <y>268</y>
1065 <width>39</width>
1066 <height>29</height>
1067 <uuid>{1defe710-4b95-4b28-a441-add693fb143b}</uuid>
1068 <visible>true</visible>
1069 <midichan>0</midichan>
1070 <midicc>-3</midicc>
1071 <label>hh</label>
1072 <alignment>center</alignment>
1073 <font>Lucida Grande</font>
1074 <fontsize>14</fontsize>
1075 <precision>3</precision>
1076 <color>
1077 <r>0</r>
1078 <g>0</g>
1079 <b>0</b>
1080 </color>
1081 <bgcolor mode="nobackground">
1082 <r>255</r>
1083 <g>255</g>
1084 <b>255</b>
1085 </bgcolor>
1086 <bordermode>noborder</bordermode>
1087 <borderradius>1</borderradius>
1088 <borderwidth>1</borderwidth>
1089 </bsbObject>
1090 <bsbObject version="2" type="BSBLabel">
1091 <objectName/>
1092 <x>331</x>
1093 <y>268</y>
1094 <width>39</width>
1095 <height>29</height>
1096 <uuid>{3e752ddf-02ab-4d1e-a8b6-75166f26b6c5}</uuid>
1097 <visible>true</visible>
1098 <midichan>0</midichan>
1099 <midicc>-3</midicc>
1100 <label>min</label>
1101 <alignment>center</alignment>
1102 <font>Lucida Grande</font>
1103 <fontsize>14</fontsize>
1104 <precision>3</precision>
1105 <color>
1106 <r>0</r>
1107 <g>0</g>
1108 <b>0</b>
1109 </color>
1110 <bgcolor mode="nobackground">
1111 <r>255</r>
1112 <g>255</g>
1113 <b>255</b>
1114 </bgcolor>
1115 <bordermode>noborder</bordermode>
1116 <borderradius>1</borderradius>
1117 <borderwidth>1</borderwidth>
1118 </bsbObject>
1119 <bsbObject version="2" type="BSBLabel">
1120 <objectName/>
1121 <x>377</x>
1122 <y>268</y>
1123 <width>39</width>
1124 <height>29</height>
1125 <uuid>{f51e465c-fa73-4ab7-861d-310f7f1cdb90}</uuid>
1126 <visible>true</visible>
1127 <midichan>0</midichan>
1128 <midicc>-3</midicc>
1129 <label>sec</label>
1130 <alignment>center</alignment>
1131 <font>Lucida Grande</font>
1132 <fontsize>14</fontsize>
1133 <precision>3</precision>
1134 <color>
1135 <r>0</r>
1136 <g>0</g>
1137 <b>0</b>
1138 </color>
1139 <bgcolor mode="nobackground">
1140 <r>255</r>
1141 <g>255</g>
1142 <b>255</b>
1143 </bgcolor>
1144 <bordermode>noborder</bordermode>
1145 <borderradius>1</borderradius>
1146 <borderwidth>1</borderwidth>
1147 </bsbObject>
1148 <bsbObject version="2" type="BSBLabel">
1149 <objectName/>
1150 <x>426</x>
1151 <y>268</y>
1152 <width>39</width>
1153 <height>29</height>
1154 <uuid>{28af6ecc-132b-43f2-a5df-4bafbc2e9716}</uuid>
1155 <visible>true</visible>
1156 <midichan>0</midichan>
1157 <midicc>-3</midicc>
1158 <label>ms</label>
1159 <alignment>center</alignment>
1160 <font>Lucida Grande</font>
1161 <fontsize>14</fontsize>
1162 <precision>3</precision>
1163 <color>
1164 <r>0</r>
1165 <g>0</g>
1166 <b>0</b>
1167 </color>
1168 <bgcolor mode="nobackground">
1169 <r>255</r>
1170 <g>255</g>
1171 <b>255</b>
1172 </bgcolor>
1173 <bordermode>noborder</bordermode>
1174 <borderradius>1</borderradius>
1175 <borderwidth>1</borderwidth>
1176 </bsbObject>
1177 <bsbObject version="2" type="BSBLabel">
1178 <objectName/>
1179 <x>256</x>
1180 <y>173</y>
1181 <width>218</width>
1182 <height>54</height>
1183 <uuid>{b4ded076-4eba-4e14-a816-056de35c4eaa}</uuid>
1184 <visible>true</visible>
1185 <midichan>0</midichan>
1186 <midicc>-3</midicc>
1187 <label>(sample rate conversion if the sr of the file doesn't match the sr of the orchestra)</label>
1188 <alignment>center</alignment>
1189 <font>Lucida Grande</font>
1190 <fontsize>12</fontsize>
1191 <precision>3</precision>
1192 <color>
1193 <r>0</r>
1194 <g>0</g>
1195 <b>0</b>
1196 </color>
1197 <bgcolor mode="nobackground">
1198 <r>255</r>
1199 <g>255</g>
1200 <b>255</b>
1201 </bgcolor>
1202 <bordermode>noborder</bordermode>
1203 <borderradius>1</borderradius>
1204 <borderwidth>1</borderwidth>
1205 </bsbObject>
1206 <bsbObject version="2" type="BSBLabel">
1207 <objectName/>
1208 <x>15</x>
1209 <y>9</y>
1210 <width>450</width>
1211 <height>46</height>
1212 <uuid>{d03f29ef-2f75-435d-922b-27d8b592105d}</uuid>
1213 <visible>true</visible>
1214 <midichan>0</midichan>
1215 <midicc>-3</midicc>
1216 <label>SOUNDFILE PLAYER</label>
1217 <alignment>center</alignment>
1218 <font>Lucida Grande</font>
1219 <fontsize>26</fontsize>
1220 <precision>3</precision>
1221 <color>
1222 <r>0</r>
1223 <g>0</g>
1224 <b>0</b>
1225 </color>
1226 <bgcolor mode="nobackground">
1227 <r>255</r>
1228 <g>255</g>
1229 <b>255</b>
1230 </bgcolor>
1231 <bordermode>noborder</bordermode>
1232 <borderradius>1</borderradius>
1233 <borderwidth>1</borderwidth>
1234 </bsbObject>
1235 <bsbObject version="2" type="BSBLabel">
1236 <objectName/>
1237 <x>14</x>
1238 <y>51</y>
1239 <width>450</width>
1240 <height>46</height>
1241 <uuid>{17681a9f-a482-46f8-8a5e-77ad193c08ce}</uuid>
1242 <visible>true</visible>
1243 <midichan>0</midichan>
1244 <midicc>-3</midicc>
1245 <label>(playing from a buffer)</label>
1246 <alignment>center</alignment>
1247 <font>Lucida Grande</font>
1248 <fontsize>22</fontsize>
1249 <precision>3</precision>
1250 <color>
1251 <r>0</r>
1252 <g>0</g>
1253 <b>0</b>
1254 </color>
1255 <bgcolor mode="nobackground">
1256 <r>255</r>
1257 <g>255</g>
1258 <b>255</b>
1259 </bgcolor>
1260 <bordermode>noborder</bordermode>
1261 <borderradius>1</borderradius>
1262 <borderwidth>1</borderwidth>
1263 </bsbObject>
1264 </bsbPanel>
1265 <bsbPresets>
1266 </bsbPresets>