Debian Codegraph @

src/Examples/McCurdy Collection/FFT/pvsfilter.csd

raw
1 ;Written by Iain McCurdy 2009
2
3 ;Modified for QuteCsound by René, September 2010, updated Feb 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(s) for exp slider
8 ; Add Browser for audio files and use of FilePlay2 udo, now accept mono or stereo wav files
9
10
11 ;my flags on Ubuntu: -iadc -odac -b1024 -B2048 -+rtaudio=alsa -+rtmidi=null -m0
12 <CsoundSynthesizer>
13 <CsOptions>
14 --env:SSDIR+=../../SourceMaterials
15 </CsOptions>
16 <CsInstruments>
17 sr = 44100 ;SAMPLE RATE
18 ksmps = 100 ;NUMBER OF AUDIO SAMPLES IN EACH CONTROL CYCLE
19 nchnls = 2 ;NUMBER OF CHANNELS (2=STEREO)
20 0dbfs = 1 ;MAXIMUM SOUND INTENSITY LEVEL REGARDLESS OF BIT DEPTH
21
22
23 zakinit 1,1
24
25 gisine ftgen 0, 0, 4096, 10, 1 ;SINE WAVE
26 ;TABLES THAT STORE FFT ANALYSIS ATTRIBUTES DATA
27 giFFTattributes0 ftgen 1, 0, 4, -2, 512, 256, 1024, 1
28 giFFTattributes1 ftgen 2, 0, 4, -2, 1024, 256, 1024, 1
29 giFFTattributes2 ftgen 3, 0, 4, -2, 2048, 128, 2048, 1
30 giFFTattributes3 ftgen 4, 0, 4, -2, 4096, 128, 4096, 1
31
32 ;TABLE FOR EXP SLIDER
33 giExp10000 ftgen 0, 0, 129, -25, 0, 20.0, 128, 10000
34
35
36 opcode FilePlay2, aa, Skoo ; Credit to Joachim Heintz
37 ;gives stereo output regardless your soundfile is mono or stereo
38 Sfil, kspeed, iskip, iloop xin
39 ichn filenchnls Sfil
40 if ichn == 1 then
41 aL diskin2 Sfil, kspeed, iskip, iloop
42 aR = aL
43 else
44 aL, aR diskin2 Sfil, kspeed, iskip, iloop
45 endif
46 xout aL, aR
47 endop
48
49
50 instr 10 ;GUI
51 ktrig metro 10
52 if (ktrig == 1) then
53 gkpow invalue "Power"
54 kfreq invalue "Frequency"
55 gkfreq tablei kfreq, giExp10000, 1
56 outvalue "Frequency_Value", gkfreq
57 gkmltfreq invalue "Mult_Frequency"
58 gkDrySigGain invalue "Dry_Signal"
59 gkFiltSigGain invalue "Filter_Signal"
60 gkResSigGain invalue "Resultant_Signal"
61
62 gkOnOff invalue "On_Off"
63 ktrigOn trigger gkOnOff, 0.5, 0
64 schedkwhen ktrigOn, 0, 0, 1, 0, -1 ;start instr 1
65 ktrigOff trigger gkOnOff, 0.5, 1
66 schedkwhen ktrigOff, 0, 0, -1, 0, 1 ;stop instr 1
67
68 gkpartials invalue "Partials"
69 gkoffset invalue "Offset"
70
71 ktrig changed gkpartials, gkoffset
72 if ktrig = 1 then
73 event "i", 1, 0, 0.01
74 endif
75
76 gkmode invalue "Mode"
77 gkinput invalue "Input"
78 gkFFTattributes invalue "FFTattributes"
79 endif
80 endin
81
82 instr 1 ;GENERATES PARTIAL INSTANCES FOR FILTER SIGNAL
83 turnon 3 ;TURN ON INSTR 3 (FILTERING INSTRUMENT) WITH A HELD NOTE
84 turnoff2 2, 0, 1 ;CLEAR ALL INSTANCES OF INSTR 2 (FILTER SIGNAL PARTIALS) BEFORE STARTING AGAIN
85 kcount init i(gkoffset)+1 ;SET INITIAL VALUE OF COUNTER
86 begin: ;LABEL
87 ; P1 | P2 | P3 | P4
88 event "i",2, 0, 3600, kcount ;TRIGGER INSTR 2 - I.E. A PARTIAL
89 kcount = kcount + 1 ;INCREMENT COUNTER
90 if (kcount <= i(gkpartials)) kgoto begin ;IF MAX NUMBER OF PARTIALS NOT YET REACHED GO BACK TO LABEL 'BEGIN'
91 turnoff ;TUNOFF THIS INSTRUMENT - ITS JOB OS DONE
92 endin
93
94 instr 2 ;PARTIAL FOR FILTER SIGNAL (MAY BE CALLED MULTIPLE TIME BY INSTR 1)
95 if gkOnOff=0 then ;IF ON/OFF BUTTON IS OFF...
96 turnoff ;TURN OFF THIS INSTRUMENT IMMEDIATELY
97 endif ;END OF CONDITIONAL BRANCHING
98 iporttime = 0.1 ;GENERATE A RAMPING-UP VARIABLE FOR PORTAMENTO TIME
99 kporttime linseg 0,0.001,iporttime,1,iporttime ;GENERATE A RAMPING-UP VARIABLE FOR PORTAMENTO TIME
100 kfreq portk gkfreq, kporttime ;APPLY PORTAMENTO TO SMOOTH SLIDER MOVEMENT
101 kpow portk gkpow, kporttime ;APPLY PORTAMENTO TO SMOOTH SLIDER MOVEMENT
102 kmltfreq portk gkmltfreq, kporttime ;APPLY PORTAMENTO TO SMOOTH SLIDER MOVEMENT
103
104 if gkmode=1 then
105 kfrq limit p4*kfreq*(kmltfreq^p4), 20, sr/2 ;LIMIT FREQUENCY OF PARTIAL TO BELOW NYQUIST FREQ.
106 elseif gkmode=2 then
107 kfrq limit gkfreq*(1+gkmltfreq^(p4-1)), 20, sr/2 ;LIMIT FREQUENCY OF PARTIAL TO BELOW NYQUIST FREQ.
108 endif
109
110 a1 oscili (1/gkpartials)*(kpow^p4), kfrq, gisine ;GENERATE A PARTIAL
111 zawm a1, 1 ;ADD IT TO ZAK VARIABLE
112 endin
113
114 instr 3 ;FILTERING INSTRUMENT
115 kSwitch changed gkFFTattributes ;GENERATE A MOMENTARY '1' PULSE IN OUTPUT 'kSwitch' IF ANY OF THE SCANNED INPUT VARIABLES CHANGE. (OUTPUT 'kSwitch' IS NORMALLY ZERO)
116 if kSwitch=1 then ;IF I-RATE VARIABLE IS CHANGED...
117 reinit UPDATE ;BEGIN A REINITIALISATION PASS IN ORDER TO EFFECT THIS CHANGE. BEGIN THIS PASS AT LABEL ENTITLED 'UPDATE' AND CONTINUE UNTIL rireturn OPCODE
118 endif ;END OF CONDITIONAL BRANCHING
119 UPDATE: ;LABEL
120 if gkinput=0 then ;IF 'INPUT' SWITCH IS SET TO 'Live Input' THEN IMPLEMENT THE NEXT LINE OF CODE
121 asig inch 1 ;READ AUDIO FROM THE COMPUTER'S LIVE INPUT CHANNEL 1 (LEFT)
122 else ;IF 'INPUT' SWITCH IS NOT SET TO 'STORED FILE' THEN IMPLEMENT THE NEXT LINE OF CODE
123 Sfile invalue "_Browse"
124 ;OUTPUT OPCODE FILE_PATH | SPEED | INSKIP | WRAPAROUND (1=ON)
125 asig, asigR FilePlay2 Sfile, 1, 0, 1 ;READ A STORED AUDIO FILE FROM THE HARD DRIVE
126 endif ;END OF 'IF'...'THEN' BRANCHING
127 if gkOnOff!=0 kgoto CONTINUE ;SENSE FLTK ON/OFF SWITCH. IF ON, SKIP THE NEXT LINE
128 turnoff ;TURN THIS INSTRUMENT OFF IMMEDIATELY
129 CONTINUE: ;LABEL
130
131 iFFTsize table 0, i(gkFFTattributes)+1 ;READ FFT SIZE FROM APPROPRIATE TABLE
132 ioverlap table 1, i(gkFFTattributes)+1 ;READ OVERLAP SIZE FROM APPROPRIATE TABLE
133 iwinsize table 2, i(gkFFTattributes)+1 ;READ WINDOW SIZE FROM APPROPRIATE TABLE
134 iwintype table 3, i(gkFFTattributes)+1 ;READ WINDOW TYPE FROM APPROPRIATE TABLE
135
136 fsigIn pvsanal asig, iFFTsize, ioverlap, iwinsize, iwintype ;ANALYSE THE AUDIO SIGNAL. OUTPUT AN F-SIGNAL.
137
138 aFiltSig zar 1 ;READ IN FILTER SIGNAL FROM ZAK VARIABLE
139 aBalSig oscili 1,1000,gisine ;SPECIFY A BALANCING SIGNAL REFERENCE
140 aFiltSig balance aFiltSig, aBalSig ;BALANCE FILTER SIGNAL
141 kenv linseg 0,0.1,1,1,1 ;AMP ENVELOPE
142
143 fsigFilt pvsanal aFiltSig*kenv, iFFTsize, ioverlap, iwinsize, iwintype ;ANALYSE THE FILTER AUDIO SIGNAL. OUTPUT AN F-SIGNAL.
144 fsigOut pvsfilter fsigIn, fsigFilt, 1 ;PERFORM fsig FILTERING
145
146 aresyn pvsynth fsigOut ;RESYNTHESIZE THE f-SIGNAL AS AN AUDIO SIGNAL
147
148 aout sum asig*gkDrySigGain, aFiltSig*gkFiltSigGain, aresyn*gkResSigGain ;MIXER
149 outs aout, aout ;SEND THE RESYNTHESIZED SIGNAL TO THE AUDIO OUTPUTS
150 zacl 0,1
151 endin
152 </CsInstruments>
153 <CsScore>
154 ;INSTR | START | DURATION
155 i 10 0 3600 ;GUI
156 </CsScore>
157 </CsoundSynthesizer>
158
159 <bsbPanel>
160 <label>Widgets</label>
161 <objectName/>
162 <x>72</x>
163 <y>179</y>
164 <width>400</width>
165 <height>200</height>
166 <visible>true</visible>
167 <uuid/>
168 <bgcolor mode="background">
169 <r>241</r>
170 <g>226</g>
171 <b>185</b>
172 </bgcolor>
173 <bsbObject version="2" type="BSBLabel">
174 <objectName/>
175 <x>2</x>
176 <y>2</y>
177 <width>514</width>
178 <height>568</height>
179 <uuid>{aa607456-d368-4d59-8497-d16d608404c3}</uuid>
180 <visible>true</visible>
181 <midichan>0</midichan>
182 <midicc>0</midicc>
183 <label>pvsfilter</label>
184 <alignment>center</alignment>
185 <font>Liberation Sans</font>
186 <fontsize>18</fontsize>
187 <precision>3</precision>
188 <color>
189 <r>0</r>
190 <g>0</g>
191 <b>0</b>
192 </color>
193 <bgcolor mode="background">
194 <r>181</r>
195 <g>199</g>
196 <b>255</b>
197 </bgcolor>
198 <bordermode>border</bordermode>
199 <borderradius>5</borderradius>
200 <borderwidth>2</borderwidth>
201 </bsbObject>
202 <bsbObject version="2" type="BSBLabel">
203 <objectName/>
204 <x>517</x>
205 <y>2</y>
206 <width>280</width>
207 <height>568</height>
208 <uuid>{74928ed2-b701-4668-9a11-74763d317e9b}</uuid>
209 <visible>true</visible>
210 <midichan>0</midichan>
211 <midicc>0</midicc>
212 <label>pvsfilter</label>
213 <alignment>center</alignment>
214 <font>Liberation Sans</font>
215 <fontsize>18</fontsize>
216 <precision>3</precision>
217 <color>
218 <r>0</r>
219 <g>0</g>
220 <b>0</b>
221 </color>
222 <bgcolor mode="background">
223 <r>181</r>
224 <g>199</g>
225 <b>255</b>
226 </bgcolor>
227 <bordermode>border</bordermode>
228 <borderradius>5</borderradius>
229 <borderwidth>2</borderwidth>
230 </bsbObject>
231 <bsbObject version="2" type="BSBLabel">
232 <objectName/>
233 <x>519</x>
234 <y>19</y>
235 <width>278</width>
236 <height>529</height>
237 <uuid>{d4bdb5ce-87d8-4c8c-9c64-40ec2eed6f5a}</uuid>
238 <visible>true</visible>
239 <midichan>0</midichan>
240 <midicc>0</midicc>
241 <label>------------------------------------------------------------------
242 pvsfilter filters as fsig according to the spectral content of another signal. This allows for complex spectrally dynamic filtering.
243 In this example the filter signal used as the template for the filtering process is an additive synthesis tone.
244 The user has a number of controls over this tone, namely 'Frequency', 'Number of Partials', 'Offset' (lowest partial), 'Power' (a kind of parametric EQ sweep) and finally 'Mult.
245 Frequency', which affects how partials are spaced in conjunction with the selection made for mode (1 or 2).
246 For further clarification it is probably best to study the code. A mixer is provided to allow the user to mix between the input signal, the filtering template signal and the sound resulting from the filtering process.
247 Three options are provided for the input source sound. The user can select between a variety of combinations of parameters for the FFT analysis.
248 Larger values for FFT size will give better harmonic reproduction but greater time smearing effects and higher computational cost.
249 Lower values will result in less time smearing but greater harmonic distortion.</label>
250 <alignment>left</alignment>
251 <font>Arial</font>
252 <fontsize>14</fontsize>
253 <precision>3</precision>
254 <color>
255 <r>0</r>
256 <g>0</g>
257 <b>0</b>
258 </color>
259 <bgcolor mode="nobackground">
260 <r>255</r>
261 <g>255</g>
262 <b>255</b>
263 </bgcolor>
264 <bordermode>noborder</bordermode>
265 <borderradius>1</borderradius>
266 <borderwidth>1</borderwidth>
267 </bsbObject>
268 <bsbObject version="2" type="BSBButton">
269 <objectName>On_Off</objectName>
270 <x>8</x>
271 <y>8</y>
272 <width>100</width>
273 <height>30</height>
274 <uuid>{24979132-c53f-4414-ac6b-6b4f503ecfe8}</uuid>
275 <visible>true</visible>
276 <midichan>0</midichan>
277 <midicc>0</midicc>
278 <type>value</type>
279 <pressedValue>1.00000000</pressedValue>
280 <stringvalue/>
281 <text> ON / OFF</text>
282 <image>/</image>
283 <eventLine/>
284 <latch>true</latch>
285 <latched>false</latched>
286 </bsbObject>
287 <bsbObject version="2" type="BSBLabel">
288 <objectName/>
289 <x>6</x>
290 <y>496</y>
291 <width>506</width>
292 <height>70</height>
293 <uuid>{f0c4875d-4e35-4d37-b043-9c1476025645}</uuid>
294 <visible>true</visible>
295 <midichan>0</midichan>
296 <midicc>0</midicc>
297 <label>FFT Attributes</label>
298 <alignment>left</alignment>
299 <font>Arial Black</font>
300 <fontsize>14</fontsize>
301 <precision>3</precision>
302 <color>
303 <r>0</r>
304 <g>0</g>
305 <b>0</b>
306 </color>
307 <bgcolor mode="nobackground">
308 <r>255</r>
309 <g>255</g>
310 <b>255</b>
311 </bgcolor>
312 <bordermode>border</bordermode>
313 <borderradius>3</borderradius>
314 <borderwidth>1</borderwidth>
315 </bsbObject>
316 <bsbObject version="2" type="BSBLabel">
317 <objectName/>
318 <x>169</x>
319 <y>502</y>
320 <width>300</width>
321 <height>30</height>
322 <uuid>{c2cdd204-e32b-488e-b5c2-70688fb2defa}</uuid>
323 <visible>true</visible>
324 <midichan>0</midichan>
325 <midicc>0</midicc>
326 <label>FFT Size - Overlap - Window Size - Window Type</label>
327 <alignment>left</alignment>
328 <font>Arial</font>
329 <fontsize>10</fontsize>
330 <precision>3</precision>
331 <color>
332 <r>0</r>
333 <g>0</g>
334 <b>0</b>
335 </color>
336 <bgcolor mode="nobackground">
337 <r>255</r>
338 <g>255</g>
339 <b>255</b>
340 </bgcolor>
341 <bordermode>noborder</bordermode>
342 <borderradius>1</borderradius>
343 <borderwidth>1</borderwidth>
344 </bsbObject>
345 <bsbObject version="2" type="BSBDropdown">
346 <objectName>FFTattributes</objectName>
347 <x>169</x>
348 <y>522</y>
349 <width>274</width>
350 <height>32</height>
351 <uuid>{c8c311f9-c1b7-4bbb-becf-9c9f1fa862c9}</uuid>
352 <visible>true</visible>
353 <midichan>0</midichan>
354 <midicc>0</midicc>
355 <bsbDropdownItemList>
356 <bsbDropdownItem>
357 <name>512 256 1024 1</name>
358 <value>0</value>
359 <stringvalue/>
360 </bsbDropdownItem>
361 <bsbDropdownItem>
362 <name>1024 256 1024 1</name>
363 <value>1</value>
364 <stringvalue/>
365 </bsbDropdownItem>
366 <bsbDropdownItem>
367 <name>2048 128 2048 1</name>
368 <value>2</value>
369 <stringvalue/>
370 </bsbDropdownItem>
371 <bsbDropdownItem>
372 <name>4096 128 4096 1</name>
373 <value>3</value>
374 <stringvalue/>
375 </bsbDropdownItem>
376 </bsbDropdownItemList>
377 <selectedIndex>0</selectedIndex>
378 <randomizable group="0">false</randomizable>
379 </bsbObject>
380 <bsbObject version="2" type="BSBLabel">
381 <objectName/>
382 <x>6</x>
383 <y>45</y>
384 <width>506</width>
385 <height>198</height>
386 <uuid>{80ea6034-7533-4a21-a547-4c00f18e8e5e}</uuid>
387 <visible>true</visible>
388 <midichan>0</midichan>
389 <midicc>0</midicc>
390 <label>Filtering Template Signal</label>
391 <alignment>left</alignment>
392 <font>Arial Black</font>
393 <fontsize>14</fontsize>
394 <precision>3</precision>
395 <color>
396 <r>0</r>
397 <g>0</g>
398 <b>0</b>
399 </color>
400 <bgcolor mode="nobackground">
401 <r>255</r>
402 <g>255</g>
403 <b>255</b>
404 </bgcolor>
405 <bordermode>border</bordermode>
406 <borderradius>3</borderradius>
407 <borderwidth>1</borderwidth>
408 </bsbObject>
409 <bsbObject version="2" type="BSBLabel">
410 <objectName/>
411 <x>16</x>
412 <y>80</y>
413 <width>80</width>
414 <height>30</height>
415 <uuid>{5b8d26a2-2397-439e-b2ff-21072fb8f53f}</uuid>
416 <visible>true</visible>
417 <midichan>0</midichan>
418 <midicc>0</midicc>
419 <label>No of Partials</label>
420 <alignment>right</alignment>
421 <font>Arial</font>
422 <fontsize>10</fontsize>
423 <precision>3</precision>
424 <color>
425 <r>0</r>
426 <g>0</g>
427 <b>0</b>
428 </color>
429 <bgcolor mode="nobackground">
430 <r>255</r>
431 <g>255</g>
432 <b>255</b>
433 </bgcolor>
434 <bordermode>noborder</bordermode>
435 <borderradius>1</borderradius>
436 <borderwidth>1</borderwidth>
437 </bsbObject>
438 <bsbObject version="2" type="BSBSpinBox">
439 <objectName>Partials</objectName>
440 <x>96</x>
441 <y>80</y>
442 <width>40</width>
443 <height>30</height>
444 <uuid>{6c726695-a184-4e03-9c9b-5a7defdb3984}</uuid>
445 <visible>true</visible>
446 <midichan>0</midichan>
447 <midicc>0</midicc>
448 <alignment>left</alignment>
449 <font>Arial</font>
450 <fontsize>14</fontsize>
451 <color>
452 <r>0</r>
453 <g>0</g>
454 <b>0</b>
455 </color>
456 <bgcolor mode="nobackground">
457 <r>255</r>
458 <g>255</g>
459 <b>255</b>
460 </bgcolor>
461 <resolution>1.00000000</resolution>
462 <minimum>1</minimum>
463 <maximum>60</maximum>
464 <randomizable group="0">false</randomizable>
465 <value>10</value>
466 </bsbObject>
467 <bsbObject version="2" type="BSBSpinBox">
468 <objectName>Offset</objectName>
469 <x>218</x>
470 <y>80</y>
471 <width>40</width>
472 <height>30</height>
473 <uuid>{dab1b064-395c-483f-9944-a8311aba4438}</uuid>
474 <visible>true</visible>
475 <midichan>0</midichan>
476 <midicc>0</midicc>
477 <alignment>left</alignment>
478 <font>Arial</font>
479 <fontsize>14</fontsize>
480 <color>
481 <r>0</r>
482 <g>0</g>
483 <b>0</b>
484 </color>
485 <bgcolor mode="nobackground">
486 <r>255</r>
487 <g>255</g>
488 <b>255</b>
489 </bgcolor>
490 <resolution>1.00000000</resolution>
491 <minimum>0</minimum>
492 <maximum>59</maximum>
493 <randomizable group="0">false</randomizable>
494 <value>0</value>
495 </bsbObject>
496 <bsbObject version="2" type="BSBLabel">
497 <objectName/>
498 <x>138</x>
499 <y>80</y>
500 <width>80</width>
501 <height>30</height>
502 <uuid>{63c66be6-1d1f-4a44-8b22-8680f083e808}</uuid>
503 <visible>true</visible>
504 <midichan>0</midichan>
505 <midicc>0</midicc>
506 <label>Offset</label>
507 <alignment>right</alignment>
508 <font>Arial</font>
509 <fontsize>10</fontsize>
510 <precision>3</precision>
511 <color>
512 <r>0</r>
513 <g>0</g>
514 <b>0</b>
515 </color>
516 <bgcolor mode="nobackground">
517 <r>255</r>
518 <g>255</g>
519 <b>255</b>
520 </bgcolor>
521 <bordermode>noborder</bordermode>
522 <borderradius>1</borderradius>
523 <borderwidth>1</borderwidth>
524 </bsbObject>
525 <bsbObject version="2" type="BSBSpinBox">
526 <objectName>Mode</objectName>
527 <x>340</x>
528 <y>80</y>
529 <width>40</width>
530 <height>30</height>
531 <uuid>{3039dd4c-40c6-4553-b4be-9187ba630c04}</uuid>
532 <visible>true</visible>
533 <midichan>0</midichan>
534 <midicc>0</midicc>
535 <alignment>left</alignment>
536 <font>Arial</font>
537 <fontsize>14</fontsize>
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 <resolution>1.00000000</resolution>
549 <minimum>1</minimum>
550 <maximum>2</maximum>
551 <randomizable group="0">false</randomizable>
552 <value>1</value>
553 </bsbObject>
554 <bsbObject version="2" type="BSBLabel">
555 <objectName/>
556 <x>260</x>
557 <y>80</y>
558 <width>80</width>
559 <height>30</height>
560 <uuid>{34bc6389-9909-465c-93aa-5f708194d623}</uuid>
561 <visible>true</visible>
562 <midichan>0</midichan>
563 <midicc>0</midicc>
564 <label>Mode</label>
565 <alignment>right</alignment>
566 <font>Arial</font>
567 <fontsize>10</fontsize>
568 <precision>3</precision>
569 <color>
570 <r>0</r>
571 <g>0</g>
572 <b>0</b>
573 </color>
574 <bgcolor mode="nobackground">
575 <r>255</r>
576 <g>255</g>
577 <b>255</b>
578 </bgcolor>
579 <bordermode>noborder</bordermode>
580 <borderradius>1</borderradius>
581 <borderwidth>1</borderwidth>
582 </bsbObject>
583 <bsbObject version="2" type="BSBDisplay">
584 <objectName>Mult_Frequency</objectName>
585 <x>448</x>
586 <y>212</y>
587 <width>60</width>
588 <height>30</height>
589 <uuid>{0aad6f1d-ce40-46c5-92ee-e0f805b68528}</uuid>
590 <visible>true</visible>
591 <midichan>0</midichan>
592 <midicc>0</midicc>
593 <label>1.099</label>
594 <alignment>right</alignment>
595 <font>Arial</font>
596 <fontsize>9</fontsize>
597 <precision>3</precision>
598 <color>
599 <r>0</r>
600 <g>0</g>
601 <b>0</b>
602 </color>
603 <bgcolor mode="nobackground">
604 <r>255</r>
605 <g>255</g>
606 <b>255</b>
607 </bgcolor>
608 <bordermode>noborder</bordermode>
609 <borderradius>1</borderradius>
610 <borderwidth>1</borderwidth>
611 </bsbObject>
612 <bsbObject version="2" type="BSBHSlider">
613 <objectName>Mult_Frequency</objectName>
614 <x>8</x>
615 <y>195</y>
616 <width>500</width>
617 <height>27</height>
618 <uuid>{d33c4bea-1b6f-4e17-904d-9e67f5b179b7}</uuid>
619 <visible>true</visible>
620 <midichan>0</midichan>
621 <midicc>0</midicc>
622 <minimum>0.10000000</minimum>
623 <maximum>2.00000000</maximum>
624 <value>1.09940000</value>
625 <mode>lin</mode>
626 <mouseControl act="jump">continuous</mouseControl>
627 <resolution>-1.00000000</resolution>
628 <randomizable group="0">false</randomizable>
629 </bsbObject>
630 <bsbObject version="2" type="BSBLabel">
631 <objectName/>
632 <x>8</x>
633 <y>212</y>
634 <width>150</width>
635 <height>30</height>
636 <uuid>{48c82bc5-2d7c-4cf5-8e31-12caf3d38e31}</uuid>
637 <visible>true</visible>
638 <midichan>0</midichan>
639 <midicc>0</midicc>
640 <label>Mult Frequency</label>
641 <alignment>left</alignment>
642 <font>Arial</font>
643 <fontsize>10</fontsize>
644 <precision>3</precision>
645 <color>
646 <r>0</r>
647 <g>0</g>
648 <b>0</b>
649 </color>
650 <bgcolor mode="nobackground">
651 <r>255</r>
652 <g>255</g>
653 <b>255</b>
654 </bgcolor>
655 <bordermode>noborder</bordermode>
656 <borderradius>1</borderradius>
657 <borderwidth>1</borderwidth>
658 </bsbObject>
659 <bsbObject version="2" type="BSBLabel">
660 <objectName/>
661 <x>8</x>
662 <y>172</y>
663 <width>150</width>
664 <height>30</height>
665 <uuid>{d0d16fd7-660f-4d45-9ea9-2fad66cae306}</uuid>
666 <visible>true</visible>
667 <midichan>0</midichan>
668 <midicc>0</midicc>
669 <label>Frequency</label>
670 <alignment>left</alignment>
671 <font>Arial</font>
672 <fontsize>10</fontsize>
673 <precision>3</precision>
674 <color>
675 <r>0</r>
676 <g>0</g>
677 <b>0</b>
678 </color>
679 <bgcolor mode="nobackground">
680 <r>255</r>
681 <g>255</g>
682 <b>255</b>
683 </bgcolor>
684 <bordermode>noborder</bordermode>
685 <borderradius>1</borderradius>
686 <borderwidth>1</borderwidth>
687 </bsbObject>
688 <bsbObject version="2" type="BSBHSlider">
689 <objectName>Frequency</objectName>
690 <x>8</x>
691 <y>155</y>
692 <width>500</width>
693 <height>27</height>
694 <uuid>{7419569a-aec9-4de8-ade2-feb9afabc177}</uuid>
695 <visible>true</visible>
696 <midichan>0</midichan>
697 <midicc>0</midicc>
698 <minimum>0.00000000</minimum>
699 <maximum>1.00000000</maximum>
700 <value>0.40400000</value>
701 <mode>lin</mode>
702 <mouseControl act="jump">continuous</mouseControl>
703 <resolution>-1.00000000</resolution>
704 <randomizable group="0">false</randomizable>
705 </bsbObject>
706 <bsbObject version="2" type="BSBDisplay">
707 <objectName>Frequency_Value</objectName>
708 <x>448</x>
709 <y>172</y>
710 <width>60</width>
711 <height>30</height>
712 <uuid>{43bd3451-78f6-487d-821e-edb77ce13a54}</uuid>
713 <visible>true</visible>
714 <midichan>0</midichan>
715 <midicc>0</midicc>
716 <label>246.331</label>
717 <alignment>right</alignment>
718 <font>Arial</font>
719 <fontsize>9</fontsize>
720 <precision>3</precision>
721 <color>
722 <r>0</r>
723 <g>0</g>
724 <b>0</b>
725 </color>
726 <bgcolor mode="nobackground">
727 <r>255</r>
728 <g>255</g>
729 <b>255</b>
730 </bgcolor>
731 <bordermode>noborder</bordermode>
732 <borderradius>1</borderradius>
733 <borderwidth>1</borderwidth>
734 </bsbObject>
735 <bsbObject version="2" type="BSBDisplay">
736 <objectName>Power</objectName>
737 <x>448</x>
738 <y>132</y>
739 <width>60</width>
740 <height>30</height>
741 <uuid>{745d6bee-b951-4a03-9fe8-9e10d5ae4556}</uuid>
742 <visible>true</visible>
743 <midichan>0</midichan>
744 <midicc>0</midicc>
745 <label>1.009</label>
746 <alignment>right</alignment>
747 <font>Arial</font>
748 <fontsize>9</fontsize>
749 <precision>3</precision>
750 <color>
751 <r>0</r>
752 <g>0</g>
753 <b>0</b>
754 </color>
755 <bgcolor mode="nobackground">
756 <r>255</r>
757 <g>255</g>
758 <b>255</b>
759 </bgcolor>
760 <bordermode>noborder</bordermode>
761 <borderradius>1</borderradius>
762 <borderwidth>1</borderwidth>
763 </bsbObject>
764 <bsbObject version="2" type="BSBHSlider">
765 <objectName>Power</objectName>
766 <x>8</x>
767 <y>115</y>
768 <width>500</width>
769 <height>27</height>
770 <uuid>{06814721-6151-4baa-84e2-8f39843b07a4}</uuid>
771 <visible>true</visible>
772 <midichan>0</midichan>
773 <midicc>0</midicc>
774 <minimum>0.01000000</minimum>
775 <maximum>2.00000000</maximum>
776 <value>1.00898000</value>
777 <mode>lin</mode>
778 <mouseControl act="jump">continuous</mouseControl>
779 <resolution>-1.00000000</resolution>
780 <randomizable group="0">false</randomizable>
781 </bsbObject>
782 <bsbObject version="2" type="BSBLabel">
783 <objectName/>
784 <x>8</x>
785 <y>132</y>
786 <width>150</width>
787 <height>30</height>
788 <uuid>{c6d7165c-6730-426f-b293-52b411bc73cf}</uuid>
789 <visible>true</visible>
790 <midichan>0</midichan>
791 <midicc>0</midicc>
792 <label>Power</label>
793 <alignment>left</alignment>
794 <font>Arial</font>
795 <fontsize>10</fontsize>
796 <precision>3</precision>
797 <color>
798 <r>0</r>
799 <g>0</g>
800 <b>0</b>
801 </color>
802 <bgcolor mode="nobackground">
803 <r>255</r>
804 <g>255</g>
805 <b>255</b>
806 </bgcolor>
807 <bordermode>noborder</bordermode>
808 <borderradius>1</borderradius>
809 <borderwidth>1</borderwidth>
810 </bsbObject>
811 <bsbObject version="2" type="BSBLabel">
812 <objectName/>
813 <x>6</x>
814 <y>244</y>
815 <width>506</width>
816 <height>150</height>
817 <uuid>{cdc434d0-b9e7-4f6f-aa90-800ec76dced6}</uuid>
818 <visible>true</visible>
819 <midichan>0</midichan>
820 <midicc>0</midicc>
821 <label>Mixer</label>
822 <alignment>left</alignment>
823 <font>Arial Black</font>
824 <fontsize>14</fontsize>
825 <precision>3</precision>
826 <color>
827 <r>0</r>
828 <g>0</g>
829 <b>0</b>
830 </color>
831 <bgcolor mode="nobackground">
832 <r>255</r>
833 <g>255</g>
834 <b>255</b>
835 </bgcolor>
836 <bordermode>border</bordermode>
837 <borderradius>3</borderradius>
838 <borderwidth>1</borderwidth>
839 </bsbObject>
840 <bsbObject version="2" type="BSBLabel">
841 <objectName/>
842 <x>8</x>
843 <y>281</y>
844 <width>150</width>
845 <height>30</height>
846 <uuid>{7ff4f06d-512f-4f97-ae7a-ba61ad7ae9a3}</uuid>
847 <visible>true</visible>
848 <midichan>0</midichan>
849 <midicc>0</midicc>
850 <label>Dry Signal</label>
851 <alignment>left</alignment>
852 <font>Arial</font>
853 <fontsize>10</fontsize>
854 <precision>3</precision>
855 <color>
856 <r>0</r>
857 <g>0</g>
858 <b>0</b>
859 </color>
860 <bgcolor mode="nobackground">
861 <r>255</r>
862 <g>255</g>
863 <b>255</b>
864 </bgcolor>
865 <bordermode>noborder</bordermode>
866 <borderradius>1</borderradius>
867 <borderwidth>1</borderwidth>
868 </bsbObject>
869 <bsbObject version="2" type="BSBHSlider">
870 <objectName>Dry_Signal</objectName>
871 <x>8</x>
872 <y>264</y>
873 <width>500</width>
874 <height>27</height>
875 <uuid>{8deca5e5-2181-4c11-bed5-67d38c1df60c}</uuid>
876 <visible>true</visible>
877 <midichan>0</midichan>
878 <midicc>0</midicc>
879 <minimum>0.00000000</minimum>
880 <maximum>1.00000000</maximum>
881 <value>0.00000000</value>
882 <mode>lin</mode>
883 <mouseControl act="jump">continuous</mouseControl>
884 <resolution>-1.00000000</resolution>
885 <randomizable group="0">false</randomizable>
886 </bsbObject>
887 <bsbObject version="2" type="BSBDisplay">
888 <objectName>Dry_Signal</objectName>
889 <x>448</x>
890 <y>281</y>
891 <width>60</width>
892 <height>30</height>
893 <uuid>{7435a4a8-2016-49f7-9b3d-2715ef85f4d3}</uuid>
894 <visible>true</visible>
895 <midichan>0</midichan>
896 <midicc>0</midicc>
897 <label>0.000</label>
898 <alignment>right</alignment>
899 <font>Arial</font>
900 <fontsize>9</fontsize>
901 <precision>3</precision>
902 <color>
903 <r>0</r>
904 <g>0</g>
905 <b>0</b>
906 </color>
907 <bgcolor mode="nobackground">
908 <r>255</r>
909 <g>255</g>
910 <b>255</b>
911 </bgcolor>
912 <bordermode>noborder</bordermode>
913 <borderradius>1</borderradius>
914 <borderwidth>1</borderwidth>
915 </bsbObject>
916 <bsbObject version="2" type="BSBDisplay">
917 <objectName>Filter_Signal</objectName>
918 <x>448</x>
919 <y>321</y>
920 <width>60</width>
921 <height>30</height>
922 <uuid>{fb713ee8-3ee7-4a52-864b-9e641dec1327}</uuid>
923 <visible>true</visible>
924 <midichan>0</midichan>
925 <midicc>0</midicc>
926 <label>0.000</label>
927 <alignment>right</alignment>
928 <font>Arial</font>
929 <fontsize>9</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="BSBHSlider">
946 <objectName>Filter_Signal</objectName>
947 <x>8</x>
948 <y>304</y>
949 <width>500</width>
950 <height>27</height>
951 <uuid>{b837c995-70ad-4a2a-8185-490b1f8142a0}</uuid>
952 <visible>true</visible>
953 <midichan>0</midichan>
954 <midicc>0</midicc>
955 <minimum>0.00000000</minimum>
956 <maximum>1.00000000</maximum>
957 <value>0.00000000</value>
958 <mode>lin</mode>
959 <mouseControl act="jump">continuous</mouseControl>
960 <resolution>-1.00000000</resolution>
961 <randomizable group="0">false</randomizable>
962 </bsbObject>
963 <bsbObject version="2" type="BSBLabel">
964 <objectName/>
965 <x>8</x>
966 <y>321</y>
967 <width>150</width>
968 <height>30</height>
969 <uuid>{8af89861-ace0-4296-8c89-ac5ec07aad45}</uuid>
970 <visible>true</visible>
971 <midichan>0</midichan>
972 <midicc>0</midicc>
973 <label>Filter Signal</label>
974 <alignment>left</alignment>
975 <font>Arial</font>
976 <fontsize>10</fontsize>
977 <precision>3</precision>
978 <color>
979 <r>0</r>
980 <g>0</g>
981 <b>0</b>
982 </color>
983 <bgcolor mode="nobackground">
984 <r>255</r>
985 <g>255</g>
986 <b>255</b>
987 </bgcolor>
988 <bordermode>noborder</bordermode>
989 <borderradius>1</borderradius>
990 <borderwidth>1</borderwidth>
991 </bsbObject>
992 <bsbObject version="2" type="BSBDisplay">
993 <objectName>Resultant_Signal</objectName>
994 <x>448</x>
995 <y>361</y>
996 <width>60</width>
997 <height>30</height>
998 <uuid>{205a01bc-e7bb-489c-a9ea-6140870b4189}</uuid>
999 <visible>true</visible>
1000 <midichan>0</midichan>
1001 <midicc>0</midicc>
1002 <label>5.240</label>
1003 <alignment>right</alignment>
1004 <font>Arial</font>
1005 <fontsize>9</fontsize>
1006 <precision>3</precision>
1007 <color>
1008 <r>0</r>
1009 <g>0</g>
1010 <b>0</b>
1011 </color>
1012 <bgcolor mode="nobackground">
1013 <r>255</r>
1014 <g>255</g>
1015 <b>255</b>
1016 </bgcolor>
1017 <bordermode>noborder</bordermode>
1018 <borderradius>1</borderradius>
1019 <borderwidth>1</borderwidth>
1020 </bsbObject>
1021 <bsbObject version="2" type="BSBHSlider">
1022 <objectName>Resultant_Signal</objectName>
1023 <x>8</x>
1024 <y>344</y>
1025 <width>500</width>
1026 <height>27</height>
1027 <uuid>{f0e95ad8-0e35-4d52-973a-1b1ebd663849}</uuid>
1028 <visible>true</visible>
1029 <midichan>0</midichan>
1030 <midicc>0</midicc>
1031 <minimum>0.00000000</minimum>
1032 <maximum>10.00000000</maximum>
1033 <value>5.24000000</value>
1034 <mode>lin</mode>
1035 <mouseControl act="jump">continuous</mouseControl>
1036 <resolution>-1.00000000</resolution>
1037 <randomizable group="0">false</randomizable>
1038 </bsbObject>
1039 <bsbObject version="2" type="BSBLabel">
1040 <objectName/>
1041 <x>8</x>
1042 <y>361</y>
1043 <width>150</width>
1044 <height>30</height>
1045 <uuid>{c12af3a6-1a09-4dca-9913-31716dbc7dcf}</uuid>
1046 <visible>true</visible>
1047 <midichan>0</midichan>
1048 <midicc>0</midicc>
1049 <label>Resultant Signal</label>
1050 <alignment>left</alignment>
1051 <font>Arial</font>
1052 <fontsize>10</fontsize>
1053 <precision>3</precision>
1054 <color>
1055 <r>0</r>
1056 <g>0</g>
1057 <b>0</b>
1058 </color>
1059 <bgcolor mode="nobackground">
1060 <r>255</r>
1061 <g>255</g>
1062 <b>255</b>
1063 </bgcolor>
1064 <bordermode>noborder</bordermode>
1065 <borderradius>1</borderradius>
1066 <borderwidth>1</borderwidth>
1067 </bsbObject>
1068 <bsbObject version="2" type="BSBLabel">
1069 <objectName/>
1070 <x>6</x>
1071 <y>395</y>
1072 <width>506</width>
1073 <height>100</height>
1074 <uuid>{70618fd0-47b8-418a-a344-e579eb1d201e}</uuid>
1075 <visible>true</visible>
1076 <midichan>0</midichan>
1077 <midicc>0</midicc>
1078 <label>Input</label>
1079 <alignment>left</alignment>
1080 <font>DejaVu Sans</font>
1081 <fontsize>14</fontsize>
1082 <precision>3</precision>
1083 <color>
1084 <r>0</r>
1085 <g>0</g>
1086 <b>0</b>
1087 </color>
1088 <bgcolor mode="nobackground">
1089 <r>255</r>
1090 <g>255</g>
1091 <b>255</b>
1092 </bgcolor>
1093 <bordermode>border</bordermode>
1094 <borderradius>3</borderradius>
1095 <borderwidth>1</borderwidth>
1096 </bsbObject>
1097 <bsbObject version="2" type="BSBButton">
1098 <objectName>_Browse</objectName>
1099 <x>9</x>
1100 <y>437</y>
1101 <width>170</width>
1102 <height>30</height>
1103 <uuid>{b9431a61-61f7-432b-bf6f-c47ddc7f9050}</uuid>
1104 <visible>true</visible>
1105 <midichan>0</midichan>
1106 <midicc>0</midicc>
1107 <type>value</type>
1108 <pressedValue>1.00000000</pressedValue>
1109 <stringvalue>loop.wav</stringvalue>
1110 <text>Browse Audio File</text>
1111 <image>/</image>
1112 <eventLine/>
1113 <latch>false</latch>
1114 <latched>false</latched>
1115 </bsbObject>
1116 <bsbObject version="2" type="BSBDropdown">
1117 <objectName>Input</objectName>
1118 <x>61</x>
1119 <y>403</y>
1120 <width>120</width>
1121 <height>30</height>
1122 <uuid>{cc64e047-7e82-416c-9753-d010ddefabe4}</uuid>
1123 <visible>true</visible>
1124 <midichan>0</midichan>
1125 <midicc>0</midicc>
1126 <bsbDropdownItemList>
1127 <bsbDropdownItem>
1128 <name>Live Input</name>
1129 <value>0</value>
1130 <stringvalue/>
1131 </bsbDropdownItem>
1132 <bsbDropdownItem>
1133 <name>Audio File</name>
1134 <value>1</value>
1135 <stringvalue/>
1136 </bsbDropdownItem>
1137 </bsbDropdownItemList>
1138 <selectedIndex>1</selectedIndex>
1139 <randomizable group="0">false</randomizable>
1140 </bsbObject>
1141 <bsbObject version="2" type="BSBLineEdit">
1142 <objectName>_Browse</objectName>
1143 <x>179</x>
1144 <y>438</y>
1145 <width>330</width>
1146 <height>28</height>
1147 <uuid>{68b5f90b-b78e-4581-b434-232db5f4c40f}</uuid>
1148 <visible>true</visible>
1149 <midichan>0</midichan>
1150 <midicc>0</midicc>
1151 <label>loop.wav</label>
1152 <alignment>left</alignment>
1153 <font>Arial</font>
1154 <fontsize>10</fontsize>
1155 <precision>3</precision>
1156 <color>
1157 <r>0</r>
1158 <g>0</g>
1159 <b>0</b>
1160 </color>
1161 <bgcolor mode="nobackground">
1162 <r>229</r>
1163 <g>229</g>
1164 <b>229</b>
1165 </bgcolor>
1166 <background>nobackground</background>
1167 </bsbObject>
1168 <bsbObject version="2" type="BSBLabel">
1169 <objectName/>
1170 <x>179</x>
1171 <y>466</y>
1172 <width>330</width>
1173 <height>30</height>
1174 <uuid>{a63909ac-6fa4-41c8-a84b-ba08e76132ab}</uuid>
1175 <visible>true</visible>
1176 <midichan>0</midichan>
1177 <midicc>0</midicc>
1178 <label>Restart the instrument after changing the audio file.</label>
1179 <alignment>left</alignment>
1180 <font>Liberation Sans</font>
1181 <fontsize>12</fontsize>
1182 <precision>3</precision>
1183 <color>
1184 <r>0</r>
1185 <g>0</g>
1186 <b>0</b>
1187 </color>
1188 <bgcolor mode="nobackground">
1189 <r>255</r>
1190 <g>255</g>
1191 <b>255</b>
1192 </bgcolor>
1193 <bordermode>noborder</bordermode>
1194 <borderradius>1</borderradius>
1195 <borderwidth>1</borderwidth>
1196 </bsbObject>
1197 </bsbPanel>
1198 <bsbPresets>
1199 </bsbPresets>
1200 <EventPanel name="" tempo="60.00000000" loop="8.00000000" x="913" y="162" width="655" height="346" visible="true" loopStart="0" loopEnd="0"> </EventPanel>