Debian Codegraph @

src/Examples/CsoundQt/Miscellaneous/Universal_Convolution.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 --env:SSDIR+=../../SourceMaterials
4 -m 128
5 </CsOptions>
6 <CsInstruments>
7
8 /*****Universal Convolution*****/
9 ;example for CsoundQt
10 ;written by joachim heintz
11 ;jul 2009
12 ;please send bug reports and suggestions
13 ;to jh at joachimheintz.de
14
15 sr = 44100
16 ksmps = 128
17 nchnls = 2
18 0dbfs = 1
19
20 opcode TakeAll2, aa, Skii
21 Sfil, kspeed, iskip, iloop xin
22 ichn filenchnls Sfil
23 if ichn == 1 then
24 aL diskin2 Sfil, kspeed, iskip, iloop
25 aR = aL
26 else
27 aL, aR diskin2 Sfil, kspeed, iskip, iloop
28 endif
29 xout aL, aR
30 endop
31
32 opcode ShowLED_k, 0, Skkik
33 Soutchan, kdispval, ktrig, idb, kdbrange xin
34 if idb != 0 then
35 kdb = dbfsamp(kdispval)
36 kval = (kdbrange + kdb) / kdbrange
37 else
38 kval = kdispval
39 endif
40 if ktrig == 1 then
41 outvalue Soutchan, kval
42 endif
43 endop
44
45 opcode ShowOver_k, 0, Skkk
46 Soutchan, kmax, ktrig, khold xin
47 kon init 0
48 ktim times
49 kstart init 0
50 kend init 0
51 khold = (khold < .01 ? .01 : khold); avoiding too short hold times
52 if kon == 0 && kmax > 1 && ktrig == 1 then
53 kstart = ktim
54 kend = kstart + khold
55 outvalue Soutchan, kmax
56 kon = 1
57 endif
58 if kon == 1 && ktim > kend && ktrig == 1 then
59 outvalue Soutchan, 0
60 kon = 0
61 endif
62 endop
63
64
65 instr 1
66 ;;values for file 1 (playback)
67 Sfile1 invalue "_Browse1"; soundfile which is played back
68 kspeed invalue "speed"; playback speed (1 = original speed)
69 kskip invalue "skip"; skiptime in seconds
70 kloop invalue "loop"; 0 = no loop, 1 = loop
71 ;;values and calculations for file 2 (convolution)
72 Sfile2 invalue "_Browse2"; soundfile which is used as impulse response
73 kstartabs invalue "startabs"; 0-1
74 kirlen invalue "irlen"; length of selected impulse response in secs (0 = take the whole length)
75 kpartsiz invalue "partsiz"; partitionsize of convolution
76 kplen = (kpartsiz == 0 ? 256 : (kpartsiz == 1 ? 512 : (kpartsiz == 2 ? 1024 : (kpartsiz == 3 ? 2048 : 4096))))
77 iconvsr filesr Sfile2; sample rate of convolution file
78 iconvlen filelen Sfile2; length of convolution file in seconds ...
79 iconvlensmps = iconvlen * iconvsr; ... and in samples
80 kselstart = kstartabs * iconvlen; startpoint of selection for convolution in seconds ...
81 outvalue "start", kselstart
82 kskpsmps = kselstart * iconvsr; ... and in samples
83 kirlensmps = (kirlen == 0? (iconvlen - kselstart) * iconvsr : kirlen * iconvsr); length of selection in samples
84
85 ;;creating two ftables (left and right channel) for ftconv
86 ichnlsfil2 filenchnls Sfile2
87 if ichnlsfil2 == 2 then
88 iftlen = 2 ^ ceil(log(iconvlensmps / 2) / log(2))
89 giftL ftgen 0, 0, iftlen, 1, Sfile2, 0, 0, 1
90 giftR ftgen 0, 0, iftlen, 1, Sfile2, 0, 0, 2
91 else; if mono impulse response, create two identical tables
92 iftlen = 2 ^ ceil(log(iconvlensmps) / log(2))
93 giftL ftgen 0, 0, iftlen, 1, Sfile2, 0, 0, 1
94 giftR ftgen 0, 0, iftlen, 1, Sfile2, 0, 0, 1
95 endif
96
97 ;;creating the playback audio stream as global audio
98 gaL, gaR TakeAll2 Sfile1, kspeed, i(kskip), i(kloop)
99
100 ;;calling a subinstrument with a release time (to avoid clicks) for performing the convolution
101 ktrig changed kplen, kskpsmps, kirlensmps; if there are new values for the selection in file 2:
102 if ktrig == 1 then
103 event "i", -10, 0, 0; stop previous instance of instr 10
104 event "i", 10, 0, -p3, kplen, kskpsmps, kirlensmps; call new instance with new values
105 endif
106
107 ;;show output
108 gkshowL init 0
109 gkshowR init 0
110 kTrigDisp metro 10
111 ShowLED_k "outL", gkshowL, kTrigDisp, 0, 50
112 ShowLED_k "outR", gkshowR, kTrigDisp, 0, 50
113 ShowOver_k "outLover", gkshowL, kTrigDisp, 2
114 ShowOver_k "outRover", gkshowR, kTrigDisp, 2
115 endin
116
117 instr 10
118 ;;input values
119 iplen = p4; partitionsize of convolution
120 iskpsmps = p5; how many samples to skip
121 iirlen = p6; length of selection for impulse response in samples
122 kwdmix invalue "wdmix"; 0 = dry (just playback stream), 1 = wet (just convoluted signal)
123 kgaindb invalue "gaindb"
124 kgain = ampdb(kgaindb)
125 ;;performing convolution
126 acvL ftconv gaL, giftL, iplen, iskpsmps, iirlen
127 acvR ftconv gaR, giftR, iplen, iskpsmps, iirlen
128 ;;mixing dry and wet parts
129 awetL = acvL * kwdmix
130 awetR = acvR * kwdmix
131 adryL = gaL * (1 - kwdmix)
132 adryR = gaR * (1 - kwdmix)
133 aL = (awetL + adryL) * kgain
134 aR = (awetR + adryR) * kgain
135 ;;declicking envelope and output
136 aenv linsegr 0, .01, 1, p3-.01, 1, .01, 0
137 aoutL = aL * aenv
138 aoutR = aR * aenv
139 outs aoutL, aoutR
140 gaL = 0; zero global audio
141 gaR = 0
142 ;;send the peak information to the display
143 kTrigDisp metro 10
144 gkshowL max_k aoutL, kTrigDisp, 1
145 gkshowR max_k aoutR, kTrigDisp, 1
146 endin
147
148 </CsInstruments>
149 <CsScore>
150 i 1 0 9999
151 e
152 </CsScore>
153 </CsoundSynthesizer>
154 <bsbPanel>
155 <label>Widgets</label>
156 <objectName/>
157 <x>605</x>
158 <y>171</y>
159 <width>532</width>
160 <height>741</height>
161 <visible>true</visible>
162 <uuid/>
163 <bgcolor mode="background">
164 <r>170</r>
165 <g>170</g>
166 <b>127</b>
167 </bgcolor>
168 <bsbObject version="2" type="BSBLabel">
169 <objectName/>
170 <x>68</x>
171 <y>6</y>
172 <width>398</width>
173 <height>43</height>
174 <uuid>{0dfd9349-d4f3-44ba-9392-436787965358}</uuid>
175 <visible>true</visible>
176 <midichan>0</midichan>
177 <midicc>-3</midicc>
178 <description/>
179 <label>UNIVERSAL CONVOLUTION</label>
180 <alignment>center</alignment>
181 <valignment>top</valignment>
182 <font>Lucida Grande</font>
183 <fontsize>26</fontsize>
184 <precision>3</precision>
185 <color>
186 <r>0</r>
187 <g>0</g>
188 <b>0</b>
189 </color>
190 <bgcolor mode="nobackground">
191 <r>255</r>
192 <g>255</g>
193 <b>255</b>
194 </bgcolor>
195 <bordermode>noborder</bordermode>
196 <borderradius>1</borderradius>
197 <borderwidth>0</borderwidth>
198 </bsbObject>
199 <bsbObject version="2" type="BSBLabel">
200 <objectName/>
201 <x>20</x>
202 <y>91</y>
203 <width>472</width>
204 <height>141</height>
205 <uuid>{1b921b24-730c-404d-9d46-89e1854ef34f}</uuid>
206 <visible>true</visible>
207 <midichan>0</midichan>
208 <midicc>-3</midicc>
209 <description/>
210 <label/>
211 <alignment>left</alignment>
212 <valignment>top</valignment>
213 <font>Lucida Grande</font>
214 <fontsize>10</fontsize>
215 <precision>3</precision>
216 <color>
217 <r>0</r>
218 <g>0</g>
219 <b>0</b>
220 </color>
221 <bgcolor mode="nobackground">
222 <r>255</r>
223 <g>255</g>
224 <b>255</b>
225 </bgcolor>
226 <bordermode>border</bordermode>
227 <borderradius>1</borderradius>
228 <borderwidth>1</borderwidth>
229 </bsbObject>
230 <bsbObject version="2" type="BSBLabel">
231 <objectName/>
232 <x>20</x>
233 <y>468</y>
234 <width>474</width>
235 <height>209</height>
236 <uuid>{efd6b17f-4c09-4e23-ad57-5744401d6a82}</uuid>
237 <visible>true</visible>
238 <midichan>0</midichan>
239 <midicc>-3</midicc>
240 <description/>
241 <label/>
242 <alignment>left</alignment>
243 <valignment>top</valignment>
244 <font>Lucida Grande</font>
245 <fontsize>10</fontsize>
246 <precision>3</precision>
247 <color>
248 <r>0</r>
249 <g>0</g>
250 <b>0</b>
251 </color>
252 <bgcolor mode="nobackground">
253 <r>255</r>
254 <g>255</g>
255 <b>255</b>
256 </bgcolor>
257 <bordermode>border</bordermode>
258 <borderradius>1</borderradius>
259 <borderwidth>1</borderwidth>
260 </bsbObject>
261 <bsbObject version="2" type="BSBLabel">
262 <objectName/>
263 <x>20</x>
264 <y>237</y>
265 <width>474</width>
266 <height>223</height>
267 <uuid>{bfc8f118-c544-4857-bb8b-a1612fe3334c}</uuid>
268 <visible>true</visible>
269 <midichan>0</midichan>
270 <midicc>-3</midicc>
271 <description/>
272 <label/>
273 <alignment>left</alignment>
274 <valignment>top</valignment>
275 <font>Lucida Grande</font>
276 <fontsize>10</fontsize>
277 <precision>3</precision>
278 <color>
279 <r>0</r>
280 <g>0</g>
281 <b>0</b>
282 </color>
283 <bgcolor mode="nobackground">
284 <r>255</r>
285 <g>255</g>
286 <b>255</b>
287 </bgcolor>
288 <bordermode>border</bordermode>
289 <borderradius>1</borderradius>
290 <borderwidth>1</borderwidth>
291 </bsbObject>
292 <bsbObject version="2" type="BSBLineEdit">
293 <objectName>_Browse1</objectName>
294 <x>36</x>
295 <y>134</y>
296 <width>346</width>
297 <height>25</height>
298 <uuid>{bf9e3246-29ee-46d2-a3f3-7de50d473ea5}</uuid>
299 <visible>true</visible>
300 <midichan>0</midichan>
301 <midicc>-3</midicc>
302 <description/>
303 <label>ClassicalGuitar.wav</label>
304 <alignment>left</alignment>
305 <font>Lucida Grande</font>
306 <fontsize>10</fontsize>
307 <precision>3</precision>
308 <color>
309 <r>0</r>
310 <g>0</g>
311 <b>0</b>
312 </color>
313 <bgcolor mode="nobackground">
314 <r>239</r>
315 <g>239</g>
316 <b>239</b>
317 </bgcolor>
318 <background>nobackground</background>
319 </bsbObject>
320 <bsbObject version="2" type="BSBButton">
321 <objectName>_Browse1</objectName>
322 <x>386</x>
323 <y>133</y>
324 <width>100</width>
325 <height>30</height>
326 <uuid>{56887738-e5d6-4df8-8232-fbdef66f33aa}</uuid>
327 <visible>true</visible>
328 <midichan>0</midichan>
329 <midicc>-3</midicc>
330 <description/>
331 <type>value</type>
332 <pressedValue>1.00000000</pressedValue>
333 <stringvalue>ClassicalGuitar.wav</stringvalue>
334 <text>Open File 1</text>
335 <image>/</image>
336 <eventLine/>
337 <latch>false</latch>
338 <momentaryMidiButton>false</momentaryMidiButton>
339 <latched>false</latched>
340 <fontsize>10</fontsize>
341 </bsbObject>
342 <bsbObject version="2" type="BSBLabel">
343 <objectName/>
344 <x>147</x>
345 <y>96</y>
346 <width>192</width>
347 <height>29</height>
348 <uuid>{d76dc890-5021-4e65-a76a-423a9fceac95}</uuid>
349 <visible>true</visible>
350 <midichan>0</midichan>
351 <midicc>-3</midicc>
352 <description/>
353 <label>Soundfile 1 for Playback</label>
354 <alignment>center</alignment>
355 <valignment>top</valignment>
356 <font>Lucida Grande</font>
357 <fontsize>14</fontsize>
358 <precision>3</precision>
359 <color>
360 <r>0</r>
361 <g>0</g>
362 <b>0</b>
363 </color>
364 <bgcolor mode="nobackground">
365 <r>255</r>
366 <g>255</g>
367 <b>255</b>
368 </bgcolor>
369 <bordermode>noborder</bordermode>
370 <borderradius>1</borderradius>
371 <borderwidth>0</borderwidth>
372 </bsbObject>
373 <bsbObject version="2" type="BSBLabel">
374 <objectName/>
375 <x>52</x>
376 <y>162</y>
377 <width>63</width>
378 <height>27</height>
379 <uuid>{1f2442dd-02f4-4114-8e10-53936f7caa61}</uuid>
380 <visible>true</visible>
381 <midichan>0</midichan>
382 <midicc>-3</midicc>
383 <description/>
384 <label>speed</label>
385 <alignment>center</alignment>
386 <valignment>top</valignment>
387 <font>Lucida Grande</font>
388 <fontsize>14</fontsize>
389 <precision>3</precision>
390 <color>
391 <r>0</r>
392 <g>0</g>
393 <b>0</b>
394 </color>
395 <bgcolor mode="nobackground">
396 <r>255</r>
397 <g>255</g>
398 <b>255</b>
399 </bgcolor>
400 <bordermode>noborder</bordermode>
401 <borderradius>1</borderradius>
402 <borderwidth>0</borderwidth>
403 </bsbObject>
404 <bsbObject version="2" type="BSBSpinBox">
405 <objectName>skip</objectName>
406 <x>169</x>
407 <y>199</y>
408 <width>80</width>
409 <height>25</height>
410 <uuid>{4f293280-0835-4944-8ace-9e355fab1f41}</uuid>
411 <visible>true</visible>
412 <midichan>0</midichan>
413 <midicc>-3</midicc>
414 <description/>
415 <alignment>left</alignment>
416 <font>Lucida Grande</font>
417 <fontsize>10</fontsize>
418 <color>
419 <r>0</r>
420 <g>0</g>
421 <b>0</b>
422 </color>
423 <bgcolor mode="nobackground">
424 <r>255</r>
425 <g>255</g>
426 <b>255</b>
427 </bgcolor>
428 <resolution>0.00100000</resolution>
429 <minimum>-1e+12</minimum>
430 <maximum>1e+12</maximum>
431 <randomizable group="0">false</randomizable>
432 <value>0</value>
433 </bsbObject>
434 <bsbObject version="2" type="BSBLabel">
435 <objectName/>
436 <x>163</x>
437 <y>163</y>
438 <width>85</width>
439 <height>27</height>
440 <uuid>{5fe3eed0-b448-4d85-a9eb-ee43242ea31c}</uuid>
441 <visible>true</visible>
442 <midichan>0</midichan>
443 <midicc>-3</midicc>
444 <description/>
445 <label>skiptime</label>
446 <alignment>center</alignment>
447 <valignment>top</valignment>
448 <font>Lucida Grande</font>
449 <fontsize>14</fontsize>
450 <precision>3</precision>
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 <bordermode>noborder</bordermode>
462 <borderradius>1</borderradius>
463 <borderwidth>0</borderwidth>
464 </bsbObject>
465 <bsbObject version="2" type="BSBLabel">
466 <objectName/>
467 <x>292</x>
468 <y>165</y>
469 <width>85</width>
470 <height>27</height>
471 <uuid>{e8b4fc19-b152-414e-83d7-a18fe5ec2b18}</uuid>
472 <visible>true</visible>
473 <midichan>0</midichan>
474 <midicc>-3</midicc>
475 <description/>
476 <label>loop</label>
477 <alignment>center</alignment>
478 <valignment>top</valignment>
479 <font>Lucida Grande</font>
480 <fontsize>14</fontsize>
481 <precision>3</precision>
482 <color>
483 <r>0</r>
484 <g>0</g>
485 <b>0</b>
486 </color>
487 <bgcolor mode="nobackground">
488 <r>255</r>
489 <g>255</g>
490 <b>255</b>
491 </bgcolor>
492 <bordermode>noborder</bordermode>
493 <borderradius>1</borderradius>
494 <borderwidth>0</borderwidth>
495 </bsbObject>
496 <bsbObject version="2" type="BSBDropdown">
497 <objectName>loop</objectName>
498 <x>309</x>
499 <y>199</y>
500 <width>56</width>
501 <height>22</height>
502 <uuid>{6fe0f726-7021-4795-b5a4-35c1d8db2aee}</uuid>
503 <visible>true</visible>
504 <midichan>0</midichan>
505 <midicc>-3</midicc>
506 <description/>
507 <bsbDropdownItemList>
508 <bsbDropdownItem>
509 <name>no</name>
510 <value>0</value>
511 <stringvalue/>
512 </bsbDropdownItem>
513 <bsbDropdownItem>
514 <name>yes</name>
515 <value>1</value>
516 <stringvalue/>
517 </bsbDropdownItem>
518 </bsbDropdownItemList>
519 <selectedIndex>1</selectedIndex>
520 <randomizable group="0">false</randomizable>
521 </bsbObject>
522 <bsbObject version="2" type="BSBSpinBox">
523 <objectName>speed</objectName>
524 <x>46</x>
525 <y>197</y>
526 <width>80</width>
527 <height>25</height>
528 <uuid>{0ed6e4f8-a586-459a-b882-ac734ca54253}</uuid>
529 <visible>true</visible>
530 <midichan>0</midichan>
531 <midicc>-3</midicc>
532 <description/>
533 <alignment>left</alignment>
534 <font>Lucida Grande</font>
535 <fontsize>10</fontsize>
536 <color>
537 <r>0</r>
538 <g>0</g>
539 <b>0</b>
540 </color>
541 <bgcolor mode="nobackground">
542 <r>255</r>
543 <g>255</g>
544 <b>255</b>
545 </bgcolor>
546 <resolution>0.00100000</resolution>
547 <minimum>-1e+12</minimum>
548 <maximum>1e+12</maximum>
549 <randomizable group="0">false</randomizable>
550 <value>1</value>
551 </bsbObject>
552 <bsbObject version="2" type="BSBLineEdit">
553 <objectName>_Browse2</objectName>
554 <x>32</x>
555 <y>269</y>
556 <width>348</width>
557 <height>25</height>
558 <uuid>{732ed584-df46-47ed-b98d-239c33707191}</uuid>
559 <visible>true</visible>
560 <midichan>0</midichan>
561 <midicc>-3</midicc>
562 <description/>
563 <label>fox.wav</label>
564 <alignment>left</alignment>
565 <font>Lucida Grande</font>
566 <fontsize>10</fontsize>
567 <precision>3</precision>
568 <color>
569 <r>0</r>
570 <g>0</g>
571 <b>0</b>
572 </color>
573 <bgcolor mode="nobackground">
574 <r>239</r>
575 <g>239</g>
576 <b>239</b>
577 </bgcolor>
578 <background>nobackground</background>
579 </bsbObject>
580 <bsbObject version="2" type="BSBButton">
581 <objectName>_Browse2</objectName>
582 <x>390</x>
583 <y>279</y>
584 <width>100</width>
585 <height>30</height>
586 <uuid>{133f0f35-a0e6-48b9-945b-d92a4b8bf5d6}</uuid>
587 <visible>true</visible>
588 <midichan>0</midichan>
589 <midicc>-3</midicc>
590 <description/>
591 <type>value</type>
592 <pressedValue>1.00000000</pressedValue>
593 <stringvalue>fox.wav</stringvalue>
594 <text>Open File 2</text>
595 <image>/</image>
596 <eventLine/>
597 <latch>false</latch>
598 <momentaryMidiButton>false</momentaryMidiButton>
599 <latched>false</latched>
600 <fontsize>10</fontsize>
601 </bsbObject>
602 <bsbObject version="2" type="BSBLabel">
603 <objectName/>
604 <x>144</x>
605 <y>242</y>
606 <width>192</width>
607 <height>29</height>
608 <uuid>{4593c21f-d695-47ab-95c6-5be8156ba5f0}</uuid>
609 <visible>true</visible>
610 <midichan>0</midichan>
611 <midicc>-3</midicc>
612 <description/>
613 <label>Soundfile 2 for Convolution</label>
614 <alignment>center</alignment>
615 <valignment>top</valignment>
616 <font>Lucida Grande</font>
617 <fontsize>14</fontsize>
618 <precision>3</precision>
619 <color>
620 <r>0</r>
621 <g>0</g>
622 <b>0</b>
623 </color>
624 <bgcolor mode="nobackground">
625 <r>255</r>
626 <g>255</g>
627 <b>255</b>
628 </bgcolor>
629 <bordermode>noborder</bordermode>
630 <borderradius>1</borderradius>
631 <borderwidth>0</borderwidth>
632 </bsbObject>
633 <bsbObject version="2" type="BSBLabel">
634 <objectName/>
635 <x>21</x>
636 <y>294</y>
637 <width>280</width>
638 <height>29</height>
639 <uuid>{f96477f6-1a88-4eb4-99aa-2b3d85b02539}</uuid>
640 <visible>true</visible>
641 <midichan>0</midichan>
642 <midicc>-3</midicc>
643 <description/>
644 <label>Selection in Soundfile 2 for Convolution</label>
645 <alignment>center</alignment>
646 <valignment>top</valignment>
647 <font>Lucida Grande</font>
648 <fontsize>14</fontsize>
649 <precision>3</precision>
650 <color>
651 <r>0</r>
652 <g>0</g>
653 <b>0</b>
654 </color>
655 <bgcolor mode="nobackground">
656 <r>255</r>
657 <g>255</g>
658 <b>255</b>
659 </bgcolor>
660 <bordermode>noborder</bordermode>
661 <borderradius>1</borderradius>
662 <borderwidth>0</borderwidth>
663 </bsbObject>
664 <bsbObject version="2" type="BSBLabel">
665 <objectName/>
666 <x>75</x>
667 <y>372</y>
668 <width>63</width>
669 <height>27</height>
670 <uuid>{3f5d63e6-aea0-46fd-9270-b66473655ec2}</uuid>
671 <visible>true</visible>
672 <midichan>0</midichan>
673 <midicc>-3</midicc>
674 <description/>
675 <label>start</label>
676 <alignment>center</alignment>
677 <valignment>top</valignment>
678 <font>Lucida Grande</font>
679 <fontsize>14</fontsize>
680 <precision>3</precision>
681 <color>
682 <r>0</r>
683 <g>0</g>
684 <b>0</b>
685 </color>
686 <bgcolor mode="nobackground">
687 <r>255</r>
688 <g>255</g>
689 <b>255</b>
690 </bgcolor>
691 <bordermode>noborder</bordermode>
692 <borderradius>1</borderradius>
693 <borderwidth>0</borderwidth>
694 </bsbObject>
695 <bsbObject version="2" type="BSBLabel">
696 <objectName/>
697 <x>247</x>
698 <y>370</y>
699 <width>63</width>
700 <height>27</height>
701 <uuid>{f2ee5559-ba39-454b-951d-af2053e1263a}</uuid>
702 <visible>true</visible>
703 <midichan>0</midichan>
704 <midicc>-3</midicc>
705 <description/>
706 <label>length</label>
707 <alignment>center</alignment>
708 <valignment>top</valignment>
709 <font>Lucida Grande</font>
710 <fontsize>14</fontsize>
711 <precision>3</precision>
712 <color>
713 <r>0</r>
714 <g>0</g>
715 <b>0</b>
716 </color>
717 <bgcolor mode="nobackground">
718 <r>255</r>
719 <g>255</g>
720 <b>255</b>
721 </bgcolor>
722 <bordermode>noborder</bordermode>
723 <borderradius>1</borderradius>
724 <borderwidth>0</borderwidth>
725 </bsbObject>
726 <bsbObject version="2" type="BSBLabel">
727 <objectName/>
728 <x>341</x>
729 <y>333</y>
730 <width>105</width>
731 <height>29</height>
732 <uuid>{f61b9803-c1d1-4420-b7bb-bdbdd7a838a9}</uuid>
733 <visible>true</visible>
734 <midichan>0</midichan>
735 <midicc>-3</midicc>
736 <description/>
737 <label>Partitionsize</label>
738 <alignment>center</alignment>
739 <valignment>top</valignment>
740 <font>Lucida Grande</font>
741 <fontsize>14</fontsize>
742 <precision>3</precision>
743 <color>
744 <r>0</r>
745 <g>0</g>
746 <b>0</b>
747 </color>
748 <bgcolor mode="nobackground">
749 <r>255</r>
750 <g>255</g>
751 <b>255</b>
752 </bgcolor>
753 <bordermode>noborder</bordermode>
754 <borderradius>1</borderradius>
755 <borderwidth>0</borderwidth>
756 </bsbObject>
757 <bsbObject version="2" type="BSBDropdown">
758 <objectName>partsiz</objectName>
759 <x>354</x>
760 <y>370</y>
761 <width>84</width>
762 <height>24</height>
763 <uuid>{7495ceb2-acc3-42ef-9ea3-f18958e87542}</uuid>
764 <visible>true</visible>
765 <midichan>0</midichan>
766 <midicc>-3</midicc>
767 <description/>
768 <bsbDropdownItemList>
769 <bsbDropdownItem>
770 <name>256</name>
771 <value>0</value>
772 <stringvalue/>
773 </bsbDropdownItem>
774 <bsbDropdownItem>
775 <name>512</name>
776 <value>1</value>
777 <stringvalue/>
778 </bsbDropdownItem>
779 <bsbDropdownItem>
780 <name>1024</name>
781 <value>2</value>
782 <stringvalue/>
783 </bsbDropdownItem>
784 <bsbDropdownItem>
785 <name>2048</name>
786 <value>3</value>
787 <stringvalue/>
788 </bsbDropdownItem>
789 <bsbDropdownItem>
790 <name>4096</name>
791 <value>4</value>
792 <stringvalue/>
793 </bsbDropdownItem>
794 </bsbDropdownItemList>
795 <selectedIndex>2</selectedIndex>
796 <randomizable group="0">false</randomizable>
797 </bsbObject>
798 <bsbObject version="2" type="BSBHSlider">
799 <objectName>startabs</objectName>
800 <x>31</x>
801 <y>397</y>
802 <width>156</width>
803 <height>29</height>
804 <uuid>{71469a99-1292-40c0-8709-97538dc3fd29}</uuid>
805 <visible>true</visible>
806 <midichan>0</midichan>
807 <midicc>-3</midicc>
808 <description/>
809 <minimum>0.00000000</minimum>
810 <maximum>1.00000000</maximum>
811 <value>0.03846154</value>
812 <mode>lin</mode>
813 <mouseControl act="jump">continuous</mouseControl>
814 <resolution>-1.00000000</resolution>
815 <randomizable group="0">false</randomizable>
816 </bsbObject>
817 <bsbObject version="2" type="BSBHSlider">
818 <objectName>irlen</objectName>
819 <x>201</x>
820 <y>396</y>
821 <width>156</width>
822 <height>29</height>
823 <uuid>{dd3fe5d5-9446-4332-82bf-f5108f9d4a7d}</uuid>
824 <visible>true</visible>
825 <midichan>0</midichan>
826 <midicc>-3</midicc>
827 <description/>
828 <minimum>0.00000000</minimum>
829 <maximum>1.00000000</maximum>
830 <value>0.02564103</value>
831 <mode>lin</mode>
832 <mouseControl act="jump">continuous</mouseControl>
833 <resolution>-1.00000000</resolution>
834 <randomizable group="0">false</randomizable>
835 </bsbObject>
836 <bsbObject version="2" type="BSBDisplay">
837 <objectName>start</objectName>
838 <x>81</x>
839 <y>430</y>
840 <width>62</width>
841 <height>34</height>
842 <uuid>{a951505a-e910-470b-8e8a-9fb704ae8bbf}</uuid>
843 <visible>true</visible>
844 <midichan>0</midichan>
845 <midicc>-3</midicc>
846 <description/>
847 <label>0.106</label>
848 <alignment>left</alignment>
849 <valignment>top</valignment>
850 <font>Lucida Grande</font>
851 <fontsize>14</fontsize>
852 <precision>3</precision>
853 <color>
854 <r>0</r>
855 <g>0</g>
856 <b>0</b>
857 </color>
858 <bgcolor mode="nobackground">
859 <r>255</r>
860 <g>255</g>
861 <b>255</b>
862 </bgcolor>
863 <bordermode>noborder</bordermode>
864 <borderradius>1</borderradius>
865 <borderwidth>0</borderwidth>
866 </bsbObject>
867 <bsbObject version="2" type="BSBDisplay">
868 <objectName>irlen</objectName>
869 <x>226</x>
870 <y>429</y>
871 <width>55</width>
872 <height>28</height>
873 <uuid>{130f73fc-6a52-491b-95b0-b05dbe596ca2}</uuid>
874 <visible>true</visible>
875 <midichan>0</midichan>
876 <midicc>-3</midicc>
877 <description/>
878 <label>0.026</label>
879 <alignment>left</alignment>
880 <valignment>top</valignment>
881 <font>Lucida Grande</font>
882 <fontsize>14</fontsize>
883 <precision>3</precision>
884 <color>
885 <r>0</r>
886 <g>0</g>
887 <b>0</b>
888 </color>
889 <bgcolor mode="nobackground">
890 <r>255</r>
891 <g>255</g>
892 <b>255</b>
893 </bgcolor>
894 <bordermode>noborder</bordermode>
895 <borderradius>1</borderradius>
896 <borderwidth>0</borderwidth>
897 </bsbObject>
898 <bsbObject version="2" type="BSBLabel">
899 <objectName/>
900 <x>281</x>
901 <y>429</y>
902 <width>212</width>
903 <height>29</height>
904 <uuid>{e9c56d17-9b8c-48eb-8fcd-e2fb581dfd28}</uuid>
905 <visible>true</visible>
906 <midichan>0</midichan>
907 <midicc>-3</midicc>
908 <description/>
909 <label>0 = take the whole file length</label>
910 <alignment>center</alignment>
911 <valignment>top</valignment>
912 <font>Lucida Grande</font>
913 <fontsize>14</fontsize>
914 <precision>3</precision>
915 <color>
916 <r>0</r>
917 <g>0</g>
918 <b>0</b>
919 </color>
920 <bgcolor mode="nobackground">
921 <r>255</r>
922 <g>255</g>
923 <b>255</b>
924 </bgcolor>
925 <bordermode>noborder</bordermode>
926 <borderradius>1</borderradius>
927 <borderwidth>0</borderwidth>
928 </bsbObject>
929 <bsbObject version="2" type="BSBHSlider">
930 <objectName>wdmix</objectName>
931 <x>110</x>
932 <y>521</y>
933 <width>282</width>
934 <height>29</height>
935 <uuid>{fa18f494-a9df-4ad5-ae0a-4723109db6fc}</uuid>
936 <visible>true</visible>
937 <midichan>0</midichan>
938 <midicc>-3</midicc>
939 <description/>
940 <minimum>0.00000000</minimum>
941 <maximum>1.00000000</maximum>
942 <value>0.80141844</value>
943 <mode>lin</mode>
944 <mouseControl act="jump">continuous</mouseControl>
945 <resolution>-1.00000000</resolution>
946 <randomizable group="0">false</randomizable>
947 </bsbObject>
948 <bsbObject version="2" type="BSBLabel">
949 <objectName/>
950 <x>188</x>
951 <y>483</y>
952 <width>130</width>
953 <height>30</height>
954 <uuid>{d8a31d59-1afd-49f9-bf11-3360d83fafdc}</uuid>
955 <visible>true</visible>
956 <midichan>0</midichan>
957 <midicc>-3</midicc>
958 <description/>
959 <label>Wet-Dry Mix</label>
960 <alignment>center</alignment>
961 <valignment>top</valignment>
962 <font>DejaVu Sans</font>
963 <fontsize>14</fontsize>
964 <precision>3</precision>
965 <color>
966 <r>0</r>
967 <g>0</g>
968 <b>0</b>
969 </color>
970 <bgcolor mode="nobackground">
971 <r>255</r>
972 <g>255</g>
973 <b>255</b>
974 </bgcolor>
975 <bordermode>noborder</bordermode>
976 <borderradius>1</borderradius>
977 <borderwidth>0</borderwidth>
978 </bsbObject>
979 <bsbObject version="2" type="BSBLabel">
980 <objectName/>
981 <x>70</x>
982 <y>521</y>
983 <width>34</width>
984 <height>27</height>
985 <uuid>{90a871c4-2519-45eb-ba44-b742fa87438a}</uuid>
986 <visible>true</visible>
987 <midichan>0</midichan>
988 <midicc>-3</midicc>
989 <description/>
990 <label>Dry</label>
991 <alignment>left</alignment>
992 <valignment>top</valignment>
993 <font>Lucida Grande</font>
994 <fontsize>12</fontsize>
995 <precision>3</precision>
996 <color>
997 <r>0</r>
998 <g>0</g>
999 <b>0</b>
1000 </color>
1001 <bgcolor mode="nobackground">
1002 <r>255</r>
1003 <g>255</g>
1004 <b>255</b>
1005 </bgcolor>
1006 <bordermode>noborder</bordermode>
1007 <borderradius>1</borderradius>
1008 <borderwidth>0</borderwidth>
1009 </bsbObject>
1010 <bsbObject version="2" type="BSBLabel">
1011 <objectName/>
1012 <x>399</x>
1013 <y>522</y>
1014 <width>34</width>
1015 <height>27</height>
1016 <uuid>{1ac3bf90-8661-42b7-bbbd-2f8006716234}</uuid>
1017 <visible>true</visible>
1018 <midichan>0</midichan>
1019 <midicc>-3</midicc>
1020 <description/>
1021 <label>Wet</label>
1022 <alignment>left</alignment>
1023 <valignment>top</valignment>
1024 <font>Lucida Grande</font>
1025 <fontsize>12</fontsize>
1026 <precision>3</precision>
1027 <color>
1028 <r>0</r>
1029 <g>0</g>
1030 <b>0</b>
1031 </color>
1032 <bgcolor mode="nobackground">
1033 <r>255</r>
1034 <g>255</g>
1035 <b>255</b>
1036 </bgcolor>
1037 <bordermode>noborder</bordermode>
1038 <borderradius>1</borderradius>
1039 <borderwidth>0</borderwidth>
1040 </bsbObject>
1041 <bsbObject version="2" type="BSBLabel">
1042 <objectName/>
1043 <x>305</x>
1044 <y>570</y>
1045 <width>130</width>
1046 <height>28</height>
1047 <uuid>{3def89e0-8953-4d4a-85bb-2e2e193a9331}</uuid>
1048 <visible>true</visible>
1049 <midichan>0</midichan>
1050 <midicc>-3</midicc>
1051 <description/>
1052 <label>Output Gain</label>
1053 <alignment>center</alignment>
1054 <valignment>top</valignment>
1055 <font>Lucida Grande</font>
1056 <fontsize>14</fontsize>
1057 <precision>3</precision>
1058 <color>
1059 <r>0</r>
1060 <g>0</g>
1061 <b>0</b>
1062 </color>
1063 <bgcolor mode="nobackground">
1064 <r>255</r>
1065 <g>255</g>
1066 <b>255</b>
1067 </bgcolor>
1068 <bordermode>noborder</bordermode>
1069 <borderradius>1</borderradius>
1070 <borderwidth>0</borderwidth>
1071 </bsbObject>
1072 <bsbObject version="2" type="BSBHSlider">
1073 <objectName>gaindb</objectName>
1074 <x>99</x>
1075 <y>566</y>
1076 <width>201</width>
1077 <height>34</height>
1078 <uuid>{1eef7045-2e40-475c-9543-8bbb1b26235d}</uuid>
1079 <visible>true</visible>
1080 <midichan>0</midichan>
1081 <midicc>0</midicc>
1082 <description/>
1083 <minimum>-50.00000000</minimum>
1084 <maximum>0.00000000</maximum>
1085 <value>-21.39303483</value>
1086 <mode>lin</mode>
1087 <mouseControl act="jump">continuous</mouseControl>
1088 <resolution>-1.00000000</resolution>
1089 <randomizable group="0">false</randomizable>
1090 </bsbObject>
1091 <bsbObject version="2" type="BSBDisplay">
1092 <objectName>gaindb</objectName>
1093 <x>33</x>
1094 <y>566</y>
1095 <width>62</width>
1096 <height>34</height>
1097 <uuid>{4d3d0bad-8090-450e-b6e7-84dd8c07988c}</uuid>
1098 <visible>true</visible>
1099 <midichan>0</midichan>
1100 <midicc>-3</midicc>
1101 <description/>
1102 <label>-21.393</label>
1103 <alignment>left</alignment>
1104 <valignment>top</valignment>
1105 <font>Bitstream Vera Sans</font>
1106 <fontsize>14</fontsize>
1107 <precision>3</precision>
1108 <color>
1109 <r>0</r>
1110 <g>0</g>
1111 <b>0</b>
1112 </color>
1113 <bgcolor mode="nobackground">
1114 <r>255</r>
1115 <g>255</g>
1116 <b>255</b>
1117 </bgcolor>
1118 <bordermode>false</bordermode>
1119 <borderradius>1</borderradius>
1120 <borderwidth>0</borderwidth>
1121 </bsbObject>
1122 <bsbObject version="2" type="BSBDisplay">
1123 <objectName>wdmix</objectName>
1124 <x>322</x>
1125 <y>481</y>
1126 <width>62</width>
1127 <height>34</height>
1128 <uuid>{0c2ae3bd-ee97-4699-96ef-4d1ff316e427}</uuid>
1129 <visible>true</visible>
1130 <midichan>0</midichan>
1131 <midicc>-3</midicc>
1132 <description/>
1133 <label>0.801</label>
1134 <alignment>left</alignment>
1135 <valignment>top</valignment>
1136 <font>Lucida Grande</font>
1137 <fontsize>14</fontsize>
1138 <precision>3</precision>
1139 <color>
1140 <r>0</r>
1141 <g>0</g>
1142 <b>0</b>
1143 </color>
1144 <bgcolor mode="nobackground">
1145 <r>255</r>
1146 <g>255</g>
1147 <b>255</b>
1148 </bgcolor>
1149 <bordermode>noborder</bordermode>
1150 <borderradius>1</borderradius>
1151 <borderwidth>0</borderwidth>
1152 </bsbObject>
1153 <bsbObject version="2" type="BSBController">
1154 <objectName>outL</objectName>
1155 <x>121</x>
1156 <y>614</y>
1157 <width>250</width>
1158 <height>19</height>
1159 <uuid>{52e33137-e648-4c88-81de-ebddb3f0905d}</uuid>
1160 <visible>true</visible>
1161 <midichan>0</midichan>
1162 <midicc>-3</midicc>
1163 <description/>
1164 <objectName2>out1_post</objectName2>
1165 <xMin>0.00000000</xMin>
1166 <xMax>1.00000000</xMax>
1167 <yMin>0.00000000</yMin>
1168 <yMax>1.00000000</yMax>
1169 <xValue>0.09971676</xValue>
1170 <yValue>0.57894700</yValue>
1171 <type>fill</type>
1172 <pointsize>1</pointsize>
1173 <fadeSpeed>0.00000000</fadeSpeed>
1174 <mouseControl act="press">jump</mouseControl>
1175 <bordermode>noborder</bordermode>
1176 <borderColor>#00FF00</borderColor>
1177 <color>
1178 <r>0</r>
1179 <g>234</g>
1180 <b>0</b>
1181 </color>
1182 <randomizable mode="both" group="0">false</randomizable>
1183 <bgcolor>
1184 <r>0</r>
1185 <g>0</g>
1186 <b>0</b>
1187 </bgcolor>
1188 <bgcolormode>true</bgcolormode>
1189 </bsbObject>
1190 <bsbObject version="2" type="BSBController">
1191 <objectName>outLover</objectName>
1192 <x>368</x>
1193 <y>614</y>
1194 <width>21</width>
1195 <height>19</height>
1196 <uuid>{729db991-6c0e-46d7-b7d6-7ba7efeae81f}</uuid>
1197 <visible>true</visible>
1198 <midichan>0</midichan>
1199 <midicc>-3</midicc>
1200 <description/>
1201 <objectName2>outLover</objectName2>
1202 <xMin>0.00000000</xMin>
1203 <xMax>1.00000000</xMax>
1204 <yMin>0.00000000</yMin>
1205 <yMax>1.00000000</yMax>
1206 <xValue>0.00000000</xValue>
1207 <yValue>0.00000000</yValue>
1208 <type>fill</type>
1209 <pointsize>1</pointsize>
1210 <fadeSpeed>0.00000000</fadeSpeed>
1211 <mouseControl act="press">jump</mouseControl>
1212 <bordermode>noborder</bordermode>
1213 <borderColor>#00FF00</borderColor>
1214 <color>
1215 <r>196</r>
1216 <g>14</g>
1217 <b>12</b>
1218 </color>
1219 <randomizable mode="both" group="0">false</randomizable>
1220 <bgcolor>
1221 <r>0</r>
1222 <g>0</g>
1223 <b>0</b>
1224 </bgcolor>
1225 <bgcolormode>true</bgcolormode>
1226 </bsbObject>
1227 <bsbObject version="2" type="BSBController">
1228 <objectName>outR</objectName>
1229 <x>121</x>
1230 <y>641</y>
1231 <width>250</width>
1232 <height>19</height>
1233 <uuid>{c68846ac-172c-49bd-8cd3-a9742c17d0e0}</uuid>
1234 <visible>true</visible>
1235 <midichan>0</midichan>
1236 <midicc>-3</midicc>
1237 <description/>
1238 <objectName2>out2_post</objectName2>
1239 <xMin>0.00000000</xMin>
1240 <xMax>1.00000000</xMax>
1241 <yMin>0.00000000</yMin>
1242 <yMax>1.00000000</yMax>
1243 <xValue>0.07993188</xValue>
1244 <yValue>1.00000000</yValue>
1245 <type>fill</type>
1246 <pointsize>1</pointsize>
1247 <fadeSpeed>0.00000000</fadeSpeed>
1248 <mouseControl act="press">jump</mouseControl>
1249 <bordermode>noborder</bordermode>
1250 <borderColor>#00FF00</borderColor>
1251 <color>
1252 <r>0</r>
1253 <g>234</g>
1254 <b>0</b>
1255 </color>
1256 <randomizable mode="both" group="0">false</randomizable>
1257 <bgcolor>
1258 <r>0</r>
1259 <g>0</g>
1260 <b>0</b>
1261 </bgcolor>
1262 <bgcolormode>true</bgcolormode>
1263 </bsbObject>
1264 <bsbObject version="2" type="BSBController">
1265 <objectName>outRover</objectName>
1266 <x>368</x>
1267 <y>641</y>
1268 <width>21</width>
1269 <height>19</height>
1270 <uuid>{f56fef73-44c7-4e1f-a62b-a18512955ca3}</uuid>
1271 <visible>true</visible>
1272 <midichan>0</midichan>
1273 <midicc>-3</midicc>
1274 <description/>
1275 <objectName2>outRover</objectName2>
1276 <xMin>0.00000000</xMin>
1277 <xMax>1.00000000</xMax>
1278 <yMin>0.00000000</yMin>
1279 <yMax>1.00000000</yMax>
1280 <xValue>0.00000000</xValue>
1281 <yValue>0.00000000</yValue>
1282 <type>fill</type>
1283 <pointsize>1</pointsize>
1284 <fadeSpeed>0.00000000</fadeSpeed>
1285 <mouseControl act="press">jump</mouseControl>
1286 <bordermode>noborder</bordermode>
1287 <borderColor>#00FF00</borderColor>
1288 <color>
1289 <r>196</r>
1290 <g>14</g>
1291 <b>12</b>
1292 </color>
1293 <randomizable mode="both" group="0">false</randomizable>
1294 <bgcolor>
1295 <r>0</r>
1296 <g>0</g>
1297 <b>0</b>
1298 </bgcolor>
1299 <bgcolormode>true</bgcolormode>
1300 </bsbObject>
1301 <bsbObject version="2" type="BSBLabel">
1302 <objectName/>
1303 <x>23</x>
1304 <y>49</y>
1305 <width>468</width>
1306 <height>37</height>
1307 <uuid>{1812f769-c632-4bc3-9080-c213690435d4}</uuid>
1308 <visible>true</visible>
1309 <midichan>0</midichan>
1310 <midicc>-3</midicc>
1311 <description/>
1312 <label>You can convolve here any file with any other (or usually a selection of it). </label>
1313 <alignment>left</alignment>
1314 <valignment>top</valignment>
1315 <font>Bitstream Vera Sans</font>
1316 <fontsize>14</fontsize>
1317 <precision>3</precision>
1318 <color>
1319 <r>0</r>
1320 <g>0</g>
1321 <b>0</b>
1322 </color>
1323 <bgcolor mode="nobackground">
1324 <r>255</r>
1325 <g>255</g>
1326 <b>255</b>
1327 </bgcolor>
1328 <bordermode>false</bordermode>
1329 <borderradius>1</borderradius>
1330 <borderwidth>0</borderwidth>
1331 </bsbObject>
1332 <bsbObject version="2" type="BSBLabel">
1333 <objectName/>
1334 <x>22</x>
1335 <y>323</y>
1336 <width>280</width>
1337 <height>47</height>
1338 <uuid>{107a5b8a-97f4-413f-a9f1-d207027795ec}</uuid>
1339 <visible>true</visible>
1340 <midichan>0</midichan>
1341 <midicc>-3</midicc>
1342 <description/>
1343 <label>Move the "start" slider to use different positions in the sample.</label>
1344 <alignment>center</alignment>
1345 <valignment>top</valignment>
1346 <font>Bitstream Vera Sans</font>
1347 <fontsize>14</fontsize>
1348 <precision>3</precision>
1349 <color>
1350 <r>0</r>
1351 <g>0</g>
1352 <b>0</b>
1353 </color>
1354 <bgcolor mode="nobackground">
1355 <r>255</r>
1356 <g>255</g>
1357 <b>255</b>
1358 </bgcolor>
1359 <bordermode>false</bordermode>
1360 <borderradius>1</borderradius>
1361 <borderwidth>0</borderwidth>
1362 </bsbObject>
1363 </bsbPanel>
1364 <bsbPresets>
1365 </bsbPresets>