Debian Codegraph @

src/Examples/McCurdy Collection/LiveSampling/DynamicTriggeredRecord.csd

raw
1 ;Written by Iain McCurdy, 2008
2
3 ; Modified for QuteCsound by René, January 2011
4 ; Tested on Ubuntu 10.04 with csound-float 5.13.0 January 2011 and QuteCsound svn rev 805
5
6
7 ;Notes on modifications from original csd:
8 ; Macro SWITCH and modifications in instruments to get the same behaviour as FLTK button
9
10
11 ;my flags on Ubuntu: -dm0 -iadc -odac -+rtaudio=jack -b16 -B4096 --expression-opt -+rtmidi=alsa -Ma
12 <CsoundSynthesizer>
13 <CsOptions>
14
15 </CsOptions>
16 <CsInstruments>
17 sr = 44100 ;SAMPLE RATE
18 ksmps = 16 ;NUMBER OF AUDIO SAMPLES IN EACH CONTROL CYCLE
19 nchnls = 2 ;NUMBER OF CHANNELS (2=STEREO)
20
21
22 giaudio ftgen 0, 0, 1048576, -7, 0, 1048576, 0 ;AUDIO DATA STORAGE
23
24 gkrecdur init 0
25
26 strset 400, "Record_Led"
27
28
29 #define SWITCH(Name'Value'Instr_Led'Instr_Event)
30 #
31 ;To have a latched+event+value button *****************************************
32 strset $Value, "$Name_L"
33 k$Name init 0
34
35 kButton invalue "$Name_B"
36 kB_ON trigger kButton, 0.5, 0
37
38 if (k$Name == 0) then
39 schedkwhen kB_ON, 0, 0, $Instr_Led, 0, 0, $Value, 1 ;Led ON
40 schedkwhen kB_ON, 0, 0, $Instr_Event, 0, -1 ;Start instr
41 else
42 schedkwhen kB_ON, 0, 0, $Instr_Led, 0, 0, $Value, 0 ;Led OFF
43 schedkwhen kB_ON, 0, 0, -$Instr_Event, 0, 1 ;Stop instr
44 endif
45 k$Name invalue "$Name_L"
46 ;******************************************************************************
47 #
48
49
50 instr 10 ;GUI
51
52 $SWITCH(RecReady'100'11'3)
53 $SWITCH(PlayOnce'200'11'5)
54 $SWITCH(LoopPlay'300'11'6)
55
56 gkAutoPlayOnce invalue "Auto_Play_Once"
57 gkAutoLoopPlay invalue "Auto_Play_Looped"
58 gkResetRecReady invalue "Reset_Rec_Ready"
59
60 gkOnThresh invalue "On_Threshold"
61 gkOffThresh invalue "Off_Threshold"
62 gkSpeed invalue "Speed"
63 gkGain invalue "Gain"
64 endin
65
66 instr 11 ;LED ON/OFF
67 Sp4 strget p4
68 outvalue Sp4, p5
69 endin
70
71 instr 1 ;MIDI PLAYBACK
72 icps cpsmidi ;READ MIDI PITCH DATA FROM MIDI INPUT
73 imlt = icps/cpsoct(8) ;MIDDLE C IS BASE FREQUENCY
74 iamp ampmidi 1
75 andx line 0,1,1 ;INFINITELY RISING LINE USED AS STARTING POINT FOR FILE POINTER
76 if gkSpeed >= 0 then ;IF gkSpeed is POSITIVE (OR ZERO), I.E. FORWARDS PLAYBACK
77 andx = andx*sr*imlt ;RESCALE POINTER ACCORDING TO SPEED
78 kndx downsamp andx ;CREATE kndx, A K-RATE VERSION OF andx
79 if kndx >= gkrecdur then ;IF END OF RECORDING IS REACHED...
80 schedkwhen 1, 0, 0, 11, 0, 0, 200, 0 ;TURN OFF PlayOnce Button Led &
81 turnoff ;TURN OFF THIS INSTRUMENT IMMEDIATELY.
82 endif
83 else
84 andx = (andx*sr*imlt)+i(gkrecdur) ;RESCALE POINTER ACCORDING TO SPEED
85 kndx downsamp andx ;CREATE kndx, A K-RATE VERSION OF andx
86 if kndx < 0 then ;IF END OF RECORDING IS REACHED...
87 schedkwhen 1, 0, 0, 11, 0, 0, 200, 0 ;TURN OFF PlayOnce Button Led &
88 turnoff ;TURN OFF THIS INSTRUMENT IMMEDIATELY.
89 endif
90 endif
91 ;OUT OPCODE INDEX | FUNCTION_TABLE
92 asig table3 andx, giaudio ;READ AUDIO FROM AUDIO STORAGE FUNCTION TABLE
93 aenv linsegr 0,0.001,1,0.01,0
94 asig = asig * gkGain * aenv * iamp
95 outs asig, asig
96 endin
97
98 instr 2 ;READ RT AUDIO IN AND CREATE FOLLOW SIGNAL
99 gasig inch 1 ;READ CHANNEL 1 (LEFT CHANNEL IF STEREO)
100
101 afollow follow2 gasig, .1, .1 ;CREATE A AMPLITUDE FOLLOWING UNIPOLAR SIGNAL
102 gkfollow downsamp afollow ;DOWNSAMPLE TO CREATE A K-RATE VERSION OF THE AMPLITUDE FOLLOWING SIGNAL
103 kmeter downsamp afollow ;CONVERT AMPLITUDE FOLLOWING SIGNAL TO K-RATE
104 kmeter portk kmeter, .1 ;SMOOTH THE MOVEMENT OF THE AMPLITUDE FOLLOWING SIGNAL - THIS WILL MAKE THE METERS EASIER TO VIEW
105 kmetertrig metro 30 ;METRONOMIC TRIGGER
106 if kmetertrig = 1 then
107 outvalue "Meter", kmeter ;UPDATE METER
108 endif
109 endin
110
111 instr 3 ;RECORD_READY
112 if gkfollow > gkOnThresh then ;IF AMPLITUDE FOLLOWING SIGNAL IS ABOVE 'ON THRESHOLD'...
113 schedkwhen 1, 0, 0, 11, 0, 0, 400, 1 ;...TURN ON 'RECORDING' RED LIGHT...
114 schedkwhen 1, 0, 0, 11, 0, 0, 100, 0 ;...TURN OFF 'RECORD READY' BUTTON LIGHT
115 ;SCHEDKWHEN KTRIGGER, KMINTIM, KMAXNUM, KINSNUM, KWHEN, KDUR
116 schedkwhen 1, 0, 1, 4, 0, -1 ;AND TRIGGER RECORD
117 turnoff ; AND TURN OFF THIS INSTRUMENT IMMEDIATELY (WE DON'T WANT TO RETRIGGER RECORDING UNTIL THE CURRENT ONE HAS COMPLETED)
118 endif ;END OF CONDITIONAL BRANCHING
119 endin
120
121 instr 4 ;RECORD
122 itablen tableng giaudio ;INTERROGATE FUNCTION TABLE USED FOR AUDIO RECORDING TO DETERMINE ITS LENGTH - THIS WILL BE USED TO CONTROL THE MOVEMENT OF THE WRITE POINTER
123 andx phasor sr / itablen ;CREATE A WRITE POINTER USING phasor. FREQUENCY WILL BE DEPENDENT UPON SAMPLING RATE (sr) AND THE LENGTH OF THE TABLE USED FOR STORAGE
124 andx = andx * itablen ;RESCALE THE SCOPE OF THE POINTER
125 gkrecdur downsamp andx ;CREATE A GLOBAL K-RATE VERSION OF THE WRITE POINTER
126 aenv linsegr 0, .005, 1, .005, 0 ;CREATE 'ANTI-CLICK' AMPLITUDE ENVELOPE FOR AUDIO THAT IS WRITTEN TO THE FUNCTION TABLE
127 asig = gasig * aenv ;'ANTI-CLICK' AMPLITUDE ENVELOPE IS APPLIED TO AUDIO BEFORE IT IS WRITTEN TO THE TABLE
128 tablew asig, andx, giaudio ;WRITE AUDIO TO AUDIO STORAGE TABLE
129
130 if gkfollow < gkOffThresh then ;IF OUR AMPLITUDE FOLLOWING VARIABLE HAS DROPPED BELOW THE 'OFF THRESHOLD'...
131 schedkwhen 1, 0, 0, 11, 0, 0, 400, 0 ;...TURN OFF 'RECORDING' RED LIGHT
132 if gkAutoLoopPlay = 1 then ;IF 'Auto Play Looped' IS ON...
133 schedkwhen 1, 0, 0, 11, 0, 0, 300, 1 ;TURN ON PLAY LOOPED BUTTON LIGHT
134 schedkwhen 1, 0, 0, 6, 0, -1 ;Start PLAY_LOOPED
135 elseif gkAutoPlayOnce = 1 then ;IF 'Auto Play Once' IS ON...
136 schedkwhen 1, 0, 0, 11, 0, 0, 200, 1 ;...TURN ON 'Play Once' BUTTON LIGHT
137 schedkwhen 1, 0, 0, 5, 0, -1 ;Start PLAY_ONCE
138 endif ;END OF CURRENT CONDITIONAL BRANCH
139 if gkResetRecReady = 1 then ;IF 'Reset Rec. Ready' IS ON...
140 schedkwhen 1, 0, 0, 11, 0, 0, 100, 1 ;...TURN ON 'Rec. Ready' BUTTON LIGHT
141 schedkwhen 1, 0, 0, 3, 0, -1 ;Start RECORD_READY
142 endif ;END OF CURRENT CONDITIONAL BRANCH
143 turnoff ;TURNOFF THIS INSTRUMENT IMMEDIATELY
144 endif ;END OF CONDITIONAL BRANCHING
145 endin
146
147 instr 5 ;PLAY_ONCE
148 andx line 0, 1, 1 ;INFINITELY RISING LINE USED AS STARTING POINT FOR FILE POINTER
149 if gkSpeed >= 0 then ;IF skSpeed is POSITIVE (OR ZERO), I.E. FORWARDS PLAYBACK
150 andx = andx*sr*gkSpeed ;RESCALE POINTER ACCORDING TO SPEED
151 kndx downsamp andx ;CREATE kndx, A K-RATE VERSION OF andx
152 if kndx >= gkrecdur then ;IF END OF RECORDING IS REACHED...
153 schedkwhen 1, 0, 0, 11, 0, 0, 200, 0 ;...DEACTIVATE "PLAY ONCE" BUTTON &
154 turnoff ;TURN OFF THIS INSTRUMENT IMMEDIATELY.
155 endif
156 else
157 andx = (andx*sr*gkSpeed)+i(gkrecdur) ;RESCALE POINTER ACCORDING TO SPEED
158 kndx downsamp andx ;CREATE kndx, A K-RATE VERSION OF andx
159 if kndx < 0 then ;IF END OF RECORDING IS REACHED...
160 schedkwhen 1, 0, 0, 11, 0, 0, 200, 0 ;...DEACTIVATE "PLAY ONCE" BUTTON &
161 turnoff ;TURN OFF THIS INSTRUMENT IMMEDIATELY.
162 endif
163 endif
164 ;OUT OPCODE INDEX | FUNCTION_TABLE
165 asig table3 andx, giaudio ;READ AUDIO FROM AUDIO STORAGE FUNCTION TABLE
166 outs asig*gkGain, asig*gkGain
167 endin
168
169 instr 6 ;PLAY_LOOPED
170 irecdur = i(gkrecdur) ;DEFINE irecdur, AN I-RATE VERSION OF THE MOST RECENT VALUE OF gkrecdur (RECORDING DURATION IN SAMPLE FRAMES / TABLE POINT VALUES)
171 aptr phasor (sr * gkSpeed) / irecdur ;CREATE READ POINTER FREQUENCY DEPENDENT UPON SAMPLING RATE, 'Speed' SLIDER, AND irecdur
172 aptr = aptr * irecdur ;RESCALE READ POINTER ACCCORDING TO irecdur VALUE SO THAT THE ENTIRE DURATION OF THE LAST RECORDING WILL BE PLAYED
173 asig table3 aptr, giaudio ;READ AUDIO FROM FUNCTION TABLE USING table3 OPCODE
174 aenv linsegr 1, 3600, 1, .01, 0 ;CREATE AN AMPLITUDE ENVELOPE RELEASE FADE OUT TO PREVENT CLICKS IF PLAYBACK IS TERMINATED
175 outs asig*aenv*gkGain, asig*aenv*gkGain
176 endin
177 </CsInstruments>
178 <CsScore>
179 i 10 0 3600 ;GUI
180 i 2 0 3600 ;READ RT AUDIO IN AND CREATE FOLLOW SIGNAL
181 </CsScore>
182 </CsoundSynthesizer>
183 <bsbPanel>
184 <label>Widgets</label>
185 <objectName/>
186 <x>498</x>
187 <y>607</y>
188 <width>995</width>
189 <height>342</height>
190 <visible>true</visible>
191 <uuid/>
192 <bgcolor mode="nobackground">
193 <r>202</r>
194 <g>202</g>
195 <b>202</b>
196 </bgcolor>
197 <bsbObject version="2" type="BSBLabel">
198 <objectName/>
199 <x>2</x>
200 <y>2</y>
201 <width>510</width>
202 <height>335</height>
203 <uuid>{395a9956-93f5-441f-b0ef-3828f1b2da1c}</uuid>
204 <visible>true</visible>
205 <midichan>0</midichan>
206 <midicc>0</midicc>
207 <label>Dynamic Triggered Recording</label>
208 <alignment>center</alignment>
209 <font>Liberation Sans</font>
210 <fontsize>18</fontsize>
211 <precision>3</precision>
212 <color>
213 <r>0</r>
214 <g>0</g>
215 <b>0</b>
216 </color>
217 <bgcolor mode="background">
218 <r>181</r>
219 <g>199</g>
220 <b>255</b>
221 </bgcolor>
222 <bordermode>border</bordermode>
223 <borderradius>5</borderradius>
224 <borderwidth>2</borderwidth>
225 </bsbObject>
226 <bsbObject version="2" type="BSBButton">
227 <objectName>RecReady_B</objectName>
228 <x>8</x>
229 <y>33</y>
230 <width>120</width>
231 <height>26</height>
232 <uuid>{0a44e1b8-fab4-40c8-8fa1-f1d1d743c45c}</uuid>
233 <visible>true</visible>
234 <midichan>0</midichan>
235 <midicc>0</midicc>
236 <type>value</type>
237 <pressedValue>1.00000000</pressedValue>
238 <stringvalue/>
239 <text> Record Ready</text>
240 <image>/</image>
241 <eventLine/>
242 <latch>false</latch>
243 <latched>false</latched>
244 </bsbObject>
245 <bsbObject version="2" type="BSBButton">
246 <objectName>PlayOnce_B</objectName>
247 <x>194</x>
248 <y>42</y>
249 <width>120</width>
250 <height>26</height>
251 <uuid>{92fe2dde-2f95-4c3b-8088-27e8231c20f0}</uuid>
252 <visible>true</visible>
253 <midichan>0</midichan>
254 <midicc>0</midicc>
255 <type>value</type>
256 <pressedValue>1.00000000</pressedValue>
257 <stringvalue/>
258 <text> Play Once</text>
259 <image>/</image>
260 <eventLine/>
261 <latch>false</latch>
262 <latched>false</latched>
263 </bsbObject>
264 <bsbObject version="2" type="BSBButton">
265 <objectName>LoopPlay_B</objectName>
266 <x>194</x>
267 <y>80</y>
268 <width>120</width>
269 <height>26</height>
270 <uuid>{5d0ee36e-ffdb-4662-8831-cab2fad8ffab}</uuid>
271 <visible>true</visible>
272 <midichan>0</midichan>
273 <midicc>0</midicc>
274 <type>value</type>
275 <pressedValue>1.00000000</pressedValue>
276 <stringvalue/>
277 <text> Play Looped </text>
278 <image>/</image>
279 <eventLine/>
280 <latch>false</latch>
281 <latched>false</latched>
282 </bsbObject>
283 <bsbObject version="2" type="BSBButton">
284 <objectName>Reset_Rec_Ready</objectName>
285 <x>9</x>
286 <y>89</y>
287 <width>120</width>
288 <height>26</height>
289 <uuid>{199ec560-95d2-407d-b90e-6dcbead11ec2}</uuid>
290 <visible>true</visible>
291 <midichan>0</midichan>
292 <midicc>0</midicc>
293 <type>value</type>
294 <pressedValue>1.00000000</pressedValue>
295 <stringvalue/>
296 <text>Reset Rec Ready</text>
297 <image>/</image>
298 <eventLine/>
299 <latch>true</latch>
300 <latched>false</latched>
301 </bsbObject>
302 <bsbObject version="2" type="BSBButton">
303 <objectName>Auto_Play_Once</objectName>
304 <x>320</x>
305 <y>42</y>
306 <width>140</width>
307 <height>26</height>
308 <uuid>{c54faf18-3b5b-4a78-b803-69b1c339890e}</uuid>
309 <visible>true</visible>
310 <midichan>0</midichan>
311 <midicc>0</midicc>
312 <type>value</type>
313 <pressedValue>1.00000000</pressedValue>
314 <stringvalue/>
315 <text> Auto Play Once</text>
316 <image>/</image>
317 <eventLine/>
318 <latch>true</latch>
319 <latched>false</latched>
320 </bsbObject>
321 <bsbObject version="2" type="BSBButton">
322 <objectName>Auto_Play_Looped</objectName>
323 <x>320</x>
324 <y>80</y>
325 <width>140</width>
326 <height>26</height>
327 <uuid>{63b09b32-866d-4b31-ba3c-fb6f456359dc}</uuid>
328 <visible>true</visible>
329 <midichan>0</midichan>
330 <midicc>0</midicc>
331 <type>value</type>
332 <pressedValue>1.00000000</pressedValue>
333 <stringvalue/>
334 <text> Auto Play Loop</text>
335 <image>/</image>
336 <eventLine/>
337 <latch>true</latch>
338 <latched>false</latched>
339 </bsbObject>
340 <bsbObject version="2" type="BSBLabel">
341 <objectName/>
342 <x>515</x>
343 <y>2</y>
344 <width>480</width>
345 <height>335</height>
346 <uuid>{10e7ae72-c151-4c9d-9f49-e6b1585d8386}</uuid>
347 <visible>true</visible>
348 <midichan>0</midichan>
349 <midicc>0</midicc>
350 <label>Dynamic Triggered Recording</label>
351 <alignment>center</alignment>
352 <font>Liberation Sans</font>
353 <fontsize>18</fontsize>
354 <precision>3</precision>
355 <color>
356 <r>0</r>
357 <g>0</g>
358 <b>0</b>
359 </color>
360 <bgcolor mode="background">
361 <r>181</r>
362 <g>199</g>
363 <b>255</b>
364 </bgcolor>
365 <bordermode>border</bordermode>
366 <borderradius>5</borderradius>
367 <borderwidth>2</borderwidth>
368 </bsbObject>
369 <bsbObject version="2" type="BSBLabel">
370 <objectName/>
371 <x>518</x>
372 <y>26</y>
373 <width>474</width>
374 <height>308</height>
375 <uuid>{97dfe67c-26c1-4af5-b858-e301d6886c2e}</uuid>
376 <visible>true</visible>
377 <midichan>0</midichan>
378 <midicc>0</midicc>
379 <label>--------------------------------------------------------------------------------------------------------------------
380 This example tracks the dynamics of the live incoming audio and triggers a recording function (writing to a function table) when the signal rises above a user defined amplitude threshold. When the signal subsequently drops below another user defined threshold recording ceases. What is stored in he function table is a topped and tailed sound fragment without silence at the begging or end of the recording.
381 The 'Rec. Ready' button must be on to begin scanning the input signal amplitude for threshold crossing. The user then has the option of playing back the recording either once ('Play (Once)') or looped ('Play (Looped)'). If 'Auto Play Once' is selected the recording begins playing immediately the recording process ceases. 'Auto Play Looped' acts in a similar fashion but on the 'Play (Looped)' function. If 'Reset Rec. Ready' is selected the 'Rec. Ready' button is automatically switched on again as soon as recording has completed. The user can also modulate the speed of playback. Negative values here result in reverse direction playback. Recorded material can also be played back via a MIDI keyboard. MIDI pitch and velocity are interpretted appropriately.</label>
382 <alignment>left</alignment>
383 <font>Liberation Sans</font>
384 <fontsize>14</fontsize>
385 <precision>3</precision>
386 <color>
387 <r>0</r>
388 <g>0</g>
389 <b>0</b>
390 </color>
391 <bgcolor mode="nobackground">
392 <r>255</r>
393 <g>255</g>
394 <b>255</b>
395 </bgcolor>
396 <bordermode>noborder</bordermode>
397 <borderradius>1</borderradius>
398 <borderwidth>1</borderwidth>
399 </bsbObject>
400 <bsbObject version="2" type="BSBLabel">
401 <objectName/>
402 <x>8</x>
403 <y>266</y>
404 <width>100</width>
405 <height>30</height>
406 <uuid>{2c897206-0dbc-47b5-ba68-915d83839ab6}</uuid>
407 <visible>true</visible>
408 <midichan>0</midichan>
409 <midicc>0</midicc>
410 <label>Speed</label>
411 <alignment>left</alignment>
412 <font>Liberation Sans</font>
413 <fontsize>10</fontsize>
414 <precision>3</precision>
415 <color>
416 <r>0</r>
417 <g>0</g>
418 <b>0</b>
419 </color>
420 <bgcolor mode="nobackground">
421 <r>255</r>
422 <g>255</g>
423 <b>255</b>
424 </bgcolor>
425 <bordermode>noborder</bordermode>
426 <borderradius>1</borderradius>
427 <borderwidth>1</borderwidth>
428 </bsbObject>
429 <bsbObject version="2" type="BSBHSlider">
430 <objectName>Speed</objectName>
431 <x>8</x>
432 <y>249</y>
433 <width>500</width>
434 <height>27</height>
435 <uuid>{304e78d8-b320-453a-b28f-86b0ca872b86}</uuid>
436 <visible>true</visible>
437 <midichan>0</midichan>
438 <midicc>0</midicc>
439 <minimum>-2.00000000</minimum>
440 <maximum>2.00000000</maximum>
441 <value>1.00000000</value>
442 <mode>lin</mode>
443 <mouseControl act="jump">continuous</mouseControl>
444 <resolution>-1.00000000</resolution>
445 <randomizable group="0">false</randomizable>
446 </bsbObject>
447 <bsbObject version="2" type="BSBDisplay">
448 <objectName>Speed</objectName>
449 <x>448</x>
450 <y>266</y>
451 <width>60</width>
452 <height>30</height>
453 <uuid>{94c7e961-7981-4d21-942f-80bcc647daf5}</uuid>
454 <visible>true</visible>
455 <midichan>0</midichan>
456 <midicc>0</midicc>
457 <label>1.000</label>
458 <alignment>right</alignment>
459 <font>Liberation Sans</font>
460 <fontsize>9</fontsize>
461 <precision>3</precision>
462 <color>
463 <r>0</r>
464 <g>0</g>
465 <b>0</b>
466 </color>
467 <bgcolor mode="nobackground">
468 <r>255</r>
469 <g>255</g>
470 <b>255</b>
471 </bgcolor>
472 <bordermode>noborder</bordermode>
473 <borderradius>1</borderradius>
474 <borderwidth>1</borderwidth>
475 </bsbObject>
476 <bsbObject version="2" type="BSBLabel">
477 <objectName/>
478 <x>8</x>
479 <y>305</y>
480 <width>100</width>
481 <height>30</height>
482 <uuid>{0609a258-bba4-43bb-849c-b8709a47f1ba}</uuid>
483 <visible>true</visible>
484 <midichan>0</midichan>
485 <midicc>0</midicc>
486 <label>Output Gain</label>
487 <alignment>left</alignment>
488 <font>Liberation Sans</font>
489 <fontsize>10</fontsize>
490 <precision>3</precision>
491 <color>
492 <r>0</r>
493 <g>0</g>
494 <b>0</b>
495 </color>
496 <bgcolor mode="nobackground">
497 <r>255</r>
498 <g>255</g>
499 <b>255</b>
500 </bgcolor>
501 <bordermode>noborder</bordermode>
502 <borderradius>1</borderradius>
503 <borderwidth>1</borderwidth>
504 </bsbObject>
505 <bsbObject version="2" type="BSBHSlider">
506 <objectName>Gain</objectName>
507 <x>8</x>
508 <y>288</y>
509 <width>500</width>
510 <height>27</height>
511 <uuid>{49415594-5e61-46ce-b9f8-3adcf2b957c5}</uuid>
512 <visible>true</visible>
513 <midichan>0</midichan>
514 <midicc>0</midicc>
515 <minimum>0.00000000</minimum>
516 <maximum>1.00000000</maximum>
517 <value>0.70000000</value>
518 <mode>lin</mode>
519 <mouseControl act="jump">continuous</mouseControl>
520 <resolution>-1.00000000</resolution>
521 <randomizable group="0">false</randomizable>
522 </bsbObject>
523 <bsbObject version="2" type="BSBDisplay">
524 <objectName>Gain</objectName>
525 <x>448</x>
526 <y>305</y>
527 <width>60</width>
528 <height>30</height>
529 <uuid>{6a4ff02e-3d5e-4143-855e-95b4c2614157}</uuid>
530 <visible>true</visible>
531 <midichan>0</midichan>
532 <midicc>0</midicc>
533 <label>0.700</label>
534 <alignment>right</alignment>
535 <font>Liberation Sans</font>
536 <fontsize>9</fontsize>
537 <precision>3</precision>
538 <color>
539 <r>0</r>
540 <g>0</g>
541 <b>0</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="BSBController">
553 <objectName>Meter</objectName>
554 <x>8</x>
555 <y>129</y>
556 <width>500</width>
557 <height>16</height>
558 <uuid>{268666a1-c814-494e-af5c-fe2a391dee5a}</uuid>
559 <visible>true</visible>
560 <midichan>0</midichan>
561 <midicc>0</midicc>
562 <objectName2/>
563 <xMin>0.00000000</xMin>
564 <xMax>5000.00000000</xMax>
565 <yMin>0.00000000</yMin>
566 <yMax>1.00000000</yMax>
567 <xValue>0.00000000</xValue>
568 <yValue>0.00000000</yValue>
569 <type>fill</type>
570 <pointsize>1</pointsize>
571 <fadeSpeed>0.00000000</fadeSpeed>
572 <mouseControl act="press">jump</mouseControl>
573 <color>
574 <r>0</r>
575 <g>234</g>
576 <b>0</b>
577 </color>
578 <randomizable mode="both" group="0">false</randomizable>
579 <bgcolor>
580 <r>0</r>
581 <g>0</g>
582 <b>0</b>
583 </bgcolor>
584 </bsbObject>
585 <bsbObject version="2" type="BSBLabel">
586 <objectName/>
587 <x>8</x>
588 <y>144</y>
589 <width>80</width>
590 <height>30</height>
591 <uuid>{f04b1289-6b5e-4fe4-9d72-b77fcf39045b}</uuid>
592 <visible>true</visible>
593 <midichan>0</midichan>
594 <midicc>0</midicc>
595 <label>Meter</label>
596 <alignment>left</alignment>
597 <font>Liberation Sans</font>
598 <fontsize>10</fontsize>
599 <precision>3</precision>
600 <color>
601 <r>0</r>
602 <g>0</g>
603 <b>0</b>
604 </color>
605 <bgcolor mode="nobackground">
606 <r>255</r>
607 <g>255</g>
608 <b>255</b>
609 </bgcolor>
610 <bordermode>noborder</bordermode>
611 <borderradius>1</borderradius>
612 <borderwidth>1</borderwidth>
613 </bsbObject>
614 <bsbObject version="2" type="BSBLabel">
615 <objectName/>
616 <x>8</x>
617 <y>177</y>
618 <width>100</width>
619 <height>30</height>
620 <uuid>{feb05e56-b1b1-4494-8c71-ce9e40994fb9}</uuid>
621 <visible>true</visible>
622 <midichan>0</midichan>
623 <midicc>0</midicc>
624 <label>On Threshold</label>
625 <alignment>left</alignment>
626 <font>Liberation Sans</font>
627 <fontsize>10</fontsize>
628 <precision>3</precision>
629 <color>
630 <r>0</r>
631 <g>0</g>
632 <b>0</b>
633 </color>
634 <bgcolor mode="nobackground">
635 <r>255</r>
636 <g>255</g>
637 <b>255</b>
638 </bgcolor>
639 <bordermode>noborder</bordermode>
640 <borderradius>1</borderradius>
641 <borderwidth>1</borderwidth>
642 </bsbObject>
643 <bsbObject version="2" type="BSBHSlider">
644 <objectName>On_Threshold</objectName>
645 <x>8</x>
646 <y>160</y>
647 <width>500</width>
648 <height>27</height>
649 <uuid>{88f53f0d-44d4-4847-8885-c15e934a8109}</uuid>
650 <visible>true</visible>
651 <midichan>0</midichan>
652 <midicc>0</midicc>
653 <minimum>0.00000000</minimum>
654 <maximum>5000.00000000</maximum>
655 <value>3910.00000000</value>
656 <mode>lin</mode>
657 <mouseControl act="jump">continuous</mouseControl>
658 <resolution>-1.00000000</resolution>
659 <randomizable group="0">false</randomizable>
660 </bsbObject>
661 <bsbObject version="2" type="BSBDisplay">
662 <objectName>On_Threshold</objectName>
663 <x>448</x>
664 <y>177</y>
665 <width>60</width>
666 <height>30</height>
667 <uuid>{dd0574f3-9876-4c0e-b747-f61dee837c94}</uuid>
668 <visible>true</visible>
669 <midichan>0</midichan>
670 <midicc>0</midicc>
671 <label>3910.000</label>
672 <alignment>right</alignment>
673 <font>Liberation Sans</font>
674 <fontsize>9</fontsize>
675 <precision>3</precision>
676 <color>
677 <r>0</r>
678 <g>0</g>
679 <b>0</b>
680 </color>
681 <bgcolor mode="nobackground">
682 <r>255</r>
683 <g>255</g>
684 <b>255</b>
685 </bgcolor>
686 <bordermode>noborder</bordermode>
687 <borderradius>1</borderradius>
688 <borderwidth>1</borderwidth>
689 </bsbObject>
690 <bsbObject version="2" type="BSBLabel">
691 <objectName/>
692 <x>8</x>
693 <y>216</y>
694 <width>100</width>
695 <height>30</height>
696 <uuid>{bf3e8a57-4a8a-4a9d-b67d-9521542ae93d}</uuid>
697 <visible>true</visible>
698 <midichan>0</midichan>
699 <midicc>0</midicc>
700 <label>Off Threshold</label>
701 <alignment>left</alignment>
702 <font>Liberation Sans</font>
703 <fontsize>10</fontsize>
704 <precision>3</precision>
705 <color>
706 <r>0</r>
707 <g>0</g>
708 <b>0</b>
709 </color>
710 <bgcolor mode="nobackground">
711 <r>255</r>
712 <g>255</g>
713 <b>255</b>
714 </bgcolor>
715 <bordermode>noborder</bordermode>
716 <borderradius>1</borderradius>
717 <borderwidth>1</borderwidth>
718 </bsbObject>
719 <bsbObject version="2" type="BSBHSlider">
720 <objectName>Off_Threshold</objectName>
721 <x>8</x>
722 <y>199</y>
723 <width>500</width>
724 <height>27</height>
725 <uuid>{8ff8f945-02c5-4ac9-a2e7-f20a8a28a2a5}</uuid>
726 <visible>true</visible>
727 <midichan>0</midichan>
728 <midicc>0</midicc>
729 <minimum>0.00000000</minimum>
730 <maximum>5000.00000000</maximum>
731 <value>2410.00000000</value>
732 <mode>lin</mode>
733 <mouseControl act="jump">continuous</mouseControl>
734 <resolution>-1.00000000</resolution>
735 <randomizable group="0">false</randomizable>
736 </bsbObject>
737 <bsbObject version="2" type="BSBDisplay">
738 <objectName>Off_Threshold</objectName>
739 <x>448</x>
740 <y>216</y>
741 <width>60</width>
742 <height>30</height>
743 <uuid>{4b684f89-629e-4f7a-974d-7dd7165f85a7}</uuid>
744 <visible>true</visible>
745 <midichan>0</midichan>
746 <midicc>0</midicc>
747 <label>2410.000</label>
748 <alignment>right</alignment>
749 <font>Liberation Sans</font>
750 <fontsize>9</fontsize>
751 <precision>3</precision>
752 <color>
753 <r>0</r>
754 <g>0</g>
755 <b>0</b>
756 </color>
757 <bgcolor mode="nobackground">
758 <r>255</r>
759 <g>255</g>
760 <b>255</b>
761 </bgcolor>
762 <bordermode>noborder</bordermode>
763 <borderradius>1</borderradius>
764 <borderwidth>1</borderwidth>
765 </bsbObject>
766 <bsbObject version="2" type="BSBController">
767 <objectName>Record_Led</objectName>
768 <x>9</x>
769 <y>63</y>
770 <width>120</width>
771 <height>22</height>
772 <uuid>{176ac5c2-764e-4f67-a38d-a62f6bf6007b}</uuid>
773 <visible>true</visible>
774 <midichan>0</midichan>
775 <midicc>0</midicc>
776 <objectName2/>
777 <xMin>0.00000000</xMin>
778 <xMax>1.00000000</xMax>
779 <yMin>0.00000000</yMin>
780 <yMax>1.00000000</yMax>
781 <xValue>0.00000000</xValue>
782 <yValue>0.00000000</yValue>
783 <type>fill</type>
784 <pointsize>1</pointsize>
785 <fadeSpeed>0.00000000</fadeSpeed>
786 <mouseControl act="press">jump</mouseControl>
787 <color>
788 <r>255</r>
789 <g>0</g>
790 <b>0</b>
791 </color>
792 <randomizable mode="both" group="0">false</randomizable>
793 <bgcolor>
794 <r>0</r>
795 <g>0</g>
796 <b>0</b>
797 </bgcolor>
798 </bsbObject>
799 <bsbObject version="2" type="BSBController">
800 <objectName/>
801 <x>202</x>
802 <y>50</y>
803 <width>10</width>
804 <height>10</height>
805 <uuid>{0a052ce7-7ffd-491c-8eef-a839264c578a}</uuid>
806 <visible>true</visible>
807 <midichan>0</midichan>
808 <midicc>0</midicc>
809 <objectName2>PlayOnce_L</objectName2>
810 <xMin>0.00000000</xMin>
811 <xMax>1.00000000</xMax>
812 <yMin>0.00000000</yMin>
813 <yMax>1.00000000</yMax>
814 <xValue>0.00000000</xValue>
815 <yValue>0.00000000</yValue>
816 <type>fill</type>
817 <pointsize>1</pointsize>
818 <fadeSpeed>0.00000000</fadeSpeed>
819 <mouseControl act="press">jump</mouseControl>
820 <color>
821 <r>0</r>
822 <g>234</g>
823 <b>0</b>
824 </color>
825 <randomizable mode="both" group="0">false</randomizable>
826 <bgcolor>
827 <r>0</r>
828 <g>0</g>
829 <b>0</b>
830 </bgcolor>
831 </bsbObject>
832 <bsbObject version="2" type="BSBController">
833 <objectName/>
834 <x>13</x>
835 <y>41</y>
836 <width>10</width>
837 <height>10</height>
838 <uuid>{7cb52cfd-3962-4238-906f-dcfd23cf02d4}</uuid>
839 <visible>true</visible>
840 <midichan>0</midichan>
841 <midicc>0</midicc>
842 <objectName2>RecReady_L</objectName2>
843 <xMin>0.00000000</xMin>
844 <xMax>1.00000000</xMax>
845 <yMin>0.00000000</yMin>
846 <yMax>1.00000000</yMax>
847 <xValue>0.00000000</xValue>
848 <yValue>0.00000000</yValue>
849 <type>fill</type>
850 <pointsize>1</pointsize>
851 <fadeSpeed>0.00000000</fadeSpeed>
852 <mouseControl act="press">jump</mouseControl>
853 <color>
854 <r>0</r>
855 <g>234</g>
856 <b>0</b>
857 </color>
858 <randomizable mode="both" group="0">false</randomizable>
859 <bgcolor>
860 <r>0</r>
861 <g>0</g>
862 <b>0</b>
863 </bgcolor>
864 </bsbObject>
865 <bsbObject version="2" type="BSBController">
866 <objectName/>
867 <x>202</x>
868 <y>87</y>
869 <width>10</width>
870 <height>10</height>
871 <uuid>{7cc8023e-7a6a-4896-a4ef-f90c90ede07f}</uuid>
872 <visible>true</visible>
873 <midichan>0</midichan>
874 <midicc>0</midicc>
875 <objectName2>LoopPlay_L</objectName2>
876 <xMin>0.00000000</xMin>
877 <xMax>1.00000000</xMax>
878 <yMin>0.00000000</yMin>
879 <yMax>1.00000000</yMax>
880 <xValue>0.00000000</xValue>
881 <yValue>0.00000000</yValue>
882 <type>fill</type>
883 <pointsize>1</pointsize>
884 <fadeSpeed>0.00000000</fadeSpeed>
885 <mouseControl act="press">jump</mouseControl>
886 <color>
887 <r>0</r>
888 <g>234</g>
889 <b>0</b>
890 </color>
891 <randomizable mode="both" group="0">false</randomizable>
892 <bgcolor>
893 <r>0</r>
894 <g>0</g>
895 <b>0</b>
896 </bgcolor>
897 </bsbObject>
898 <bsbObject version="2" type="BSBLabel">
899 <objectName/>
900 <x>19</x>
901 <y>64</y>
902 <width>100</width>
903 <height>22</height>
904 <uuid>{2158640e-3fbe-4baa-89d4-444bcea8e421}</uuid>
905 <visible>true</visible>
906 <midichan>0</midichan>
907 <midicc>0</midicc>
908 <label>RECORDING</label>
909 <alignment>center</alignment>
910 <font>Liberation Sans</font>
911 <fontsize>10</fontsize>
912 <precision>3</precision>
913 <color>
914 <r>0</r>
915 <g>0</g>
916 <b>0</b>
917 </color>
918 <bgcolor mode="nobackground">
919 <r>255</r>
920 <g>255</g>
921 <b>255</b>
922 </bgcolor>
923 <bordermode>noborder</bordermode>
924 <borderradius>1</borderradius>
925 <borderwidth>1</borderwidth>
926 </bsbObject>
927 </bsbPanel>
928 <bsbPresets>
929 </bsbPresets>