Debian Codegraph @

src/Examples/CsoundQt/Miscellaneous/Filter_lab.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 </CsOptions>
4 <CsInstruments>
5
6 sr = 44100
7 ksmps = 128
8 nchnls = 2
9 0dbfs = 1
10
11 ; This file implements as UDOs the basic parametric equalizers from
12 ; Zoelzer's DAFX book (Chapter 2).
13 ; They are a set of calculations for biquad filter coefficients to
14 ; produce controllable second order filters.
15
16 opcode lpf2pole, a, ak
17 ain,kfc xin
18 ktrig changed kfc
19 if ktrig == 1 then
20 kvalue = tan($M_PI * kfc / sr)
21 kdenom = 1 + ($M_SQRT2 * kvalue) + (kvalue^2)
22 knumb0 = (kvalue^2)
23 kb0 = knumb0/kdenom
24 knumb1 = 2 * (kvalue^2)
25 kb1 = knumb1/kdenom
26 knumb2 = (kvalue^2)
27 kb2 = knumb2/kdenom
28 knuma1 = 2 *((kvalue^2) - 1)
29 ka1 = knuma1/kdenom
30 knuma2 = 1 - ($M_SQRT2 * kvalue) + (kvalue^2)
31 ka2 = knuma2/kdenom
32 Sdisp sprintfk "b0=%.3f b1=%.3f b2=%.3f\n\na1=%.3f a2=%.3f", kb0, kb1, kb2, ka1, ka2
33 outvalue "coef", Sdisp
34 endif
35 afilt biquad ain, kb0, kb1, kb2, 1, ka1, ka2
36 xout afilt
37 endop
38
39 opcode hpf2pole, a, ak
40 ain,kfc xin
41 ktrig changed kfc
42 if ktrig == 1 then
43 kvalue = tan($M_PI * kfc / sr)
44 kdenom = 1 + ($M_SQRT2 * kvalue) + (kvalue^2)
45 knum0 = 1
46 kb0 = knum0/kdenom
47 knumb1 = -2
48 kb1 = knumb1/kdenom
49 knumb2 = 1
50 kb2 = knumb2/kdenom
51 knuma1 = 2 *((kvalue^2) - 1)
52 ka1 = knuma1/kdenom
53 knuma2 = 1 - ($M_SQRT2 * kvalue) + (kvalue^2)
54 ka2 = knuma2/kdenom
55 Sdisp sprintfk "b0=%.3f b1=%.3f b2=%.3f\n\na1=%.3f a2=%.3f", kb0, kb1, kb2, ka1, ka2
56 outvalue "coef", Sdisp
57 endif
58 afilt biquad ain, kb0, kb1, kb2, 1, ka1, ka2
59 xout afilt
60 endop
61
62 opcode loshelf, a, akk
63 ain,kfc, kgain xin
64
65 ktrig changed kfc, kgain
66 if ktrig == 1 then
67 kvalue = tan($M_PI * kfc / sr)
68 if kgain >= 0 then
69 kV0 = 10^(kgain/20)
70 kdenom = 1 + ($M_SQRT2 * kvalue) + (kvalue^2)
71 knumb0 = 1 + (sqrt(2*kV0) * kvalue) + (kV0 * kvalue^2)
72 kb0 = knumb0/kdenom
73 knumb1 = 2 * ((kV0 * kvalue^2) - 1)
74 kb1 = knumb1/kdenom
75 knumb2 = 1 - (sqrt(2*kV0) * kvalue) + (kV0 * kvalue^2)
76 kb2 = knumb2/kdenom
77 knuma1 = 2 *((kvalue^2) - 1)
78 ka1 = knuma1/kdenom
79 knuma2 = 1 - ($M_SQRT2 * kvalue) + (kvalue^2)
80 ka2 = knuma2/kdenom
81 else
82 kV0 = 10^(-kgain/20)
83 kdenom = 1 + (sqrt(2*kV0) * kvalue) + (kV0 * kvalue^2)
84 knumb0 = 1 + ($M_SQRT2 * kvalue) + (kvalue^2)
85 kb0 = knumb0/kdenom
86 knumb1 = 2 * ((kvalue^2) - 1 )
87 kb1 = knumb1/kdenom
88 knumb2 = 1 - (sqrt(2*kV0) * kvalue) + (kvalue^2)
89 kb2 = knumb2/kdenom
90 knuma1 = 2 *((kV0 * kvalue^2) - 1)
91 ka1 = knuma1/kdenom
92 knuma2 = 1 - (sqrt(2*kV0) * kvalue) + (kV0 * kvalue^2)
93 ka2 = knuma2/kdenom
94
95 endif
96 Sdisp sprintfk "b0=%.3f b1=%.3f b2=%.3f\n\na1=%.3f a2=%.3f", kb0, kb1, kb2, ka1, ka2
97 outvalue "coef", Sdisp
98 endif
99 afilt biquad ain, kb0, kb1, kb2, 1, ka1, ka2
100 xout afilt
101 endop
102
103 opcode hishelf, a, akk
104 ain,kfc, kgain xin
105 ktrig changed kfc, kgain
106
107 if ktrig == 1 then
108 kvalue = tan($M_PI * kfc / sr)
109 kV0 = 10^(kgain/20)
110 if kgain >= 0 then
111 kV0 = 10^(kgain/20)
112 kdenom = 1 + ($M_SQRT2 * kvalue) + (kvalue^2)
113 knumb0 = kV0 + (sqrt(2*kV0) * kvalue) + (kvalue^2)
114 kb0 = knumb0/kdenom
115 knumb1 = 2 * ((kvalue^2) - kV0)
116 kb1 = knumb1/kdenom
117 knumb2 = kV0 - (sqrt(2*kV0) * kvalue) + (kvalue^2)
118 kb2 = knumb2/kdenom
119 knuma1 = 2 *((kvalue^2) - 1)
120 ka1 = knuma1/kdenom
121 knuma2 = 1 - ($M_SQRT2 * kvalue) + (kvalue^2)
122 ka2 = knuma2/kdenom
123 else
124 kV0 = 10^(-kgain/20)
125 kdenom = kV0 + (sqrt(2*kV0) * kvalue) + (kvalue^2)
126 knumb0 = 1 + ($M_SQRT2 * kvalue) + (kvalue^2)
127 kb0 = knumb0/kdenom
128 knumb1 = 2 * ((kvalue^2) - 1 )
129 kb1 = knumb1/kdenom
130 knumb2 = 1 - ($M_SQRT2 * kvalue) + (kvalue^2)
131 kb2 = knumb2/kdenom
132 kdenom = 1 + (sqrt(2/kV0) * kvalue) + ((kvalue^2)/ kV0)
133 knuma1 = 2 *(((kvalue^2)/ kV0) - 1)
134 ka1 = knuma1/kdenom
135 knuma2 = 1 - (sqrt(2/kV0) * kvalue) + ((kvalue^2)/ kV0)
136 ka2 = knuma2/kdenom
137
138 endif
139 Sdisp sprintfk "b0=%.3f b1=%.3f b2=%.3f\n\na1=%.3f a2=%.3f", kb0, kb1, kb2, ka1, ka2
140 outvalue "coef", Sdisp
141 endif
142 afilt biquad ain, kb0, kb1, kb2, 1, ka1, ka2
143 xout afilt
144 endop
145
146 opcode eq2pole, a, akkk
147 ain,kfc, kgain, kQ xin
148
149 ktrig changed kfc, kgain, kQ
150 if ktrig == 1 then
151 kvalue = tan($M_PI * kfc / sr)
152 kV0 = 10^(kgain/20)
153 if kgain >= 0 then
154 kV0 = 10^(kgain/20)
155 kdenom = 1 + (kvalue / kQ) + (kvalue^2)
156 knumb0 = 1 + (kV0 * kvalue / kQ) + (kvalue^2)
157 kb0 = knumb0/kdenom
158 knumb1 = 2 * ((kvalue^2) - 1)
159 kb1 = knumb1/kdenom
160 knumb2 = 1 - (kV0 * kvalue / kQ) + (kvalue^2)
161 kb2 = knumb2/kdenom
162 knuma1 = 2 *((kvalue^2) - 1)
163 ka1 = knuma1/kdenom
164 knuma2 = 1 - (kvalue / kQ) + (kvalue^2)
165 ka2 = knuma2/kdenom
166 else
167 kV0 = 10^(-kgain/20)
168 kdenom = 1 + (kV0 * kvalue / kQ) + (kvalue^2)
169 knumb0 = 1 + (kvalue / kQ) + (kvalue^2)
170 kb0 = knumb0/kdenom
171 knumb1 = 2 * ((kvalue^2) - 1)
172 kb1 = knumb1/kdenom
173 knumb2 = 1 - (kvalue / kQ) + (kvalue^2)
174 kb2 = knumb2/kdenom
175 knuma1 = 2 *((kvalue^2) - 1)
176 ka1 = knuma1/kdenom
177 knuma2 = 1 - (kV0 * kvalue / kQ) + (kvalue^2)
178 ka2 = knuma2/kdenom
179
180 endif
181 Sdisp sprintfk "b0=%.3f b1=%.3f b2=%.3f\n\na1=%.3f a2=%.3f", kb0, kb1, kb2, ka1, ka2
182 outvalue "coef", Sdisp
183 endif
184 afilt biquad ain, kb0, kb1, kb2, 1, ka1, ka2
185 xout afilt
186 endop
187
188 opcode allpass1, a, ak
189 ain,kfc xin
190 ktrig changed kfc
191 if ktrig == 1 then
192 kvalue = tan($M_PI * kfc / sr)
193 kc = (kvalue - 1) / (kvalue + 1)
194 kd = - cos(2* $M_PI* kfc / sr)
195 kb0 = kc
196 kb1 = 1
197 ka0 = 1
198 ka1 = kc
199 Sdisp sprintfk "b0=%.3f b1=%.3f\n\na1=%.3f", kb0, kb1, ka1
200 outvalue "coef", Sdisp
201 endif
202 afilt biquad ain, kb0, kb1, 0, ka0, ka1, 0
203 xout afilt
204 endop
205
206 opcode allpass2, a, akk
207 ain,kfc, kfb xin
208 ktrig changed kfc, kfb
209 if ktrig == 1 then
210 kvalue = tan($M_PI * kfb / sr)
211 kc = (kvalue - 1) / (kvalue + 1)
212 kd = - cos(2* $M_PI* kfc / sr)
213 kb0 = - kc
214 kb1 = kd * ( 1 - kc )
215 kb2 = 1
216 ka0 = 1
217 ka1 = kd * ( 1 - kc )
218 ka2 = - kc
219 Sdisp sprintfk "b0=%.3f b1=%.3f b2=%.3f\n\na1=%.3f a2=%.3f", kb0, kb1, kb2, ka1, ka2
220 outvalue "coef", Sdisp
221 endif
222 afilt biquad ain, kb0, kb1, kb2, ka0, ka1, ka2
223 xout afilt
224 endop
225
226
227 instr 1
228 anoise noise 1, 0
229 ktype invalue "type"
230 kfreq invalue "freq"
231 kgain invalue "gain"
232 kQ invalue "Q"
233
234 if ktype == 0 then
235 afilt lpf2pole anoise, kfreq
236 elseif ktype == 1 then
237 afilt hpf2pole anoise, kfreq
238 elseif ktype == 2 then
239 afilt loshelf anoise, kfreq, kgain
240 elseif ktype == 3 then
241 afilt hishelf anoise, kfreq, kgain
242 elseif ktype == 4 then
243 afilt eq2pole anoise, kfreq, kgain, kQ
244 elseif ktype == 5 then
245 afilt allpass1 anoise, kfreq
246 elseif ktype == 6 then
247 afilt allpass2 anoise, kfreq, kQ
248 else
249 afilt = anoise
250 endif
251
252 dispfft afilt, 0.1, 4096
253 aout = afilt*0.02
254 aout clip aout, 0, 0.3 ; For ear and speaker protection from unstable filters
255 outs aout, aout
256 endin
257
258
259 </CsInstruments>
260 <CsScore>
261 i 1 0 3600
262 e
263 </CsScore>
264 </CsoundSynthesizer>
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280 <bsbPanel>
281 <label>Widgets</label>
282 <objectName/>
283 <x>808</x>
284 <y>138</y>
285 <width>755</width>
286 <height>510</height>
287 <visible>true</visible>
288 <uuid/>
289 <bgcolor mode="background">
290 <r>204</r>
291 <g>204</g>
292 <b>204</b>
293 </bgcolor>
294 <bsbObject version="2" type="BSBHSlider">
295 <objectName>freq</objectName>
296 <x>9</x>
297 <y>205</y>
298 <width>709</width>
299 <height>35</height>
300 <uuid>{0bd0d91d-2f3a-441f-a01b-6d78738906f2}</uuid>
301 <visible>true</visible>
302 <midichan>0</midichan>
303 <midicc>-3</midicc>
304 <description/>
305 <minimum>1.00000000</minimum>
306 <maximum>22050.00000000</maximum>
307 <value>11631.92524683</value>
308 <mode>lin</mode>
309 <mouseControl act="jump">continuous</mouseControl>
310 <resolution>-1.00000000</resolution>
311 <randomizable group="0">true</randomizable>
312 </bsbObject>
313 <bsbObject version="2" type="BSBGraph">
314 <objectName/>
315 <x>8</x>
316 <y>262</y>
317 <width>709</width>
318 <height>386</height>
319 <uuid>{8dcfe636-a222-4950-9553-5dd30cd898c0}</uuid>
320 <visible>true</visible>
321 <midichan>0</midichan>
322 <midicc>-3</midicc>
323 <description/>
324 <value>0</value>
325 <objectName2/>
326 <zoomx>1.00000000</zoomx>
327 <zoomy>1.00000000</zoomy>
328 <dispx>1.00000000</dispx>
329 <dispy>1.00000000</dispy>
330 <modex>lin</modex>
331 <modey>lin</modey>
332 <showSelector>true</showSelector>
333 <showGrid>true</showGrid>
334 <showTableInfo>true</showTableInfo>
335 <showScrollbars>true</showScrollbars>
336 <enableTables>true</enableTables>
337 <enableDisplays>true</enableDisplays>
338 <all>true</all>
339 </bsbObject>
340 <bsbObject version="2" type="BSBLabel">
341 <objectName/>
342 <x>393</x>
343 <y>234</y>
344 <width>41</width>
345 <height>24</height>
346 <uuid>{1f0cb546-0de6-44c0-b80a-6a098d0fd56d}</uuid>
347 <visible>true</visible>
348 <midichan>0</midichan>
349 <midicc>-3</midicc>
350 <description/>
351 <label>Hz</label>
352 <alignment>left</alignment>
353 <valignment>top</valignment>
354 <font>Helvetica</font>
355 <fontsize>12</fontsize>
356 <precision>3</precision>
357 <color>
358 <r>0</r>
359 <g>0</g>
360 <b>0</b>
361 </color>
362 <bgcolor mode="background">
363 <r>255</r>
364 <g>255</g>
365 <b>255</b>
366 </bgcolor>
367 <bordermode>noborder</bordermode>
368 <borderradius>1</borderradius>
369 <borderwidth>0</borderwidth>
370 </bsbObject>
371 <bsbObject version="2" type="BSBLabel">
372 <objectName>freq</objectName>
373 <x>327</x>
374 <y>234</y>
375 <width>69</width>
376 <height>24</height>
377 <uuid>{01ad6a68-ac02-42bb-8bb2-50451a11a288}</uuid>
378 <visible>true</visible>
379 <midichan>0</midichan>
380 <midicc>-3</midicc>
381 <description/>
382 <label>11631.9</label>
383 <alignment>right</alignment>
384 <valignment>top</valignment>
385 <font>Nimbus Sans [urw]</font>
386 <fontsize>12</fontsize>
387 <precision>1</precision>
388 <color>
389 <r>0</r>
390 <g>0</g>
391 <b>0</b>
392 </color>
393 <bgcolor mode="background">
394 <r>255</r>
395 <g>255</g>
396 <b>255</b>
397 </bgcolor>
398 <bordermode>false</bordermode>
399 <borderradius>1</borderradius>
400 <borderwidth>0</borderwidth>
401 </bsbObject>
402 <bsbObject version="2" type="BSBLabel">
403 <objectName/>
404 <x>411</x>
405 <y>67</y>
406 <width>190</width>
407 <height>26</height>
408 <uuid>{a7205100-c056-490d-afc0-c38e7300043b}</uuid>
409 <visible>true</visible>
410 <midichan>0</midichan>
411 <midicc>-3</midicc>
412 <description/>
413 <label>Biquad Coefficients</label>
414 <alignment>left</alignment>
415 <valignment>top</valignment>
416 <font>Helvetica</font>
417 <fontsize>12</fontsize>
418 <precision>3</precision>
419 <color>
420 <r>0</r>
421 <g>0</g>
422 <b>0</b>
423 </color>
424 <bgcolor mode="nobackground">
425 <r>255</r>
426 <g>255</g>
427 <b>255</b>
428 </bgcolor>
429 <bordermode>noborder</bordermode>
430 <borderradius>1</borderradius>
431 <borderwidth>0</borderwidth>
432 </bsbObject>
433 <bsbObject version="2" type="BSBDropdown">
434 <objectName>type</objectName>
435 <x>213</x>
436 <y>121</y>
437 <width>176</width>
438 <height>30</height>
439 <uuid>{0479174b-721c-44ca-9e46-0bc62bc7ebe2}</uuid>
440 <visible>true</visible>
441 <midichan>0</midichan>
442 <midicc>0</midicc>
443 <description/>
444 <bsbDropdownItemList>
445 <bsbDropdownItem>
446 <name>2nd order low-pass</name>
447 <value>0</value>
448 <stringvalue/>
449 </bsbDropdownItem>
450 <bsbDropdownItem>
451 <name>2nd order hi-pass</name>
452 <value>1</value>
453 <stringvalue/>
454 </bsbDropdownItem>
455 <bsbDropdownItem>
456 <name>2nd order low shelving</name>
457 <value>2</value>
458 <stringvalue/>
459 </bsbDropdownItem>
460 <bsbDropdownItem>
461 <name>2nd order high shelving</name>
462 <value>3</value>
463 <stringvalue/>
464 </bsbDropdownItem>
465 <bsbDropdownItem>
466 <name>Parametric eq</name>
467 <value>4</value>
468 <stringvalue/>
469 </bsbDropdownItem>
470 <bsbDropdownItem>
471 <name>First order All Pass</name>
472 <value>5</value>
473 <stringvalue/>
474 </bsbDropdownItem>
475 <bsbDropdownItem>
476 <name>Second Order All Pass</name>
477 <value>6</value>
478 <stringvalue/>
479 </bsbDropdownItem>
480 <bsbDropdownItem>
481 <name>Bypass</name>
482 <value>7</value>
483 <stringvalue/>
484 </bsbDropdownItem>
485 </bsbDropdownItemList>
486 <selectedIndex>0</selectedIndex>
487 <randomizable group="0">false</randomizable>
488 </bsbObject>
489 <bsbObject version="2" type="BSBKnob">
490 <objectName>gain</objectName>
491 <x>12</x>
492 <y>87</y>
493 <width>80</width>
494 <height>80</height>
495 <uuid>{3d171c0d-cb02-4d2c-8388-0961068b8e4e}</uuid>
496 <visible>true</visible>
497 <midichan>0</midichan>
498 <midicc>0</midicc>
499 <description/>
500 <minimum>-20.00000000</minimum>
501 <maximum>36.00000000</maximum>
502 <value>25.29840000</value>
503 <mode>lin</mode>
504 <mouseControl act="">continuous</mouseControl>
505 <resolution>0.01000000</resolution>
506 <randomizable group="0">false</randomizable>
507 <color>
508 <r>245</r>
509 <g>124</g>
510 <b>0</b>
511 </color>
512 <textcolor>#512900</textcolor>
513 <border>0</border>
514 <borderColor>#512900</borderColor>
515 <showvalue>true</showvalue>
516 <flatstyle>true</flatstyle>
517 <integerMode>false</integerMode>
518 </bsbObject>
519 <bsbObject version="2" type="BSBLabel">
520 <objectName/>
521 <x>14</x>
522 <y>59</y>
523 <width>80</width>
524 <height>25</height>
525 <uuid>{8c0420dc-4fcb-499f-9317-517e837c038a}</uuid>
526 <visible>true</visible>
527 <midichan>0</midichan>
528 <midicc>-3</midicc>
529 <description/>
530 <label>Gain</label>
531 <alignment>left</alignment>
532 <valignment>top</valignment>
533 <font>Helvetica</font>
534 <fontsize>12</fontsize>
535 <precision>3</precision>
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 <bordermode>noborder</bordermode>
547 <borderradius>1</borderradius>
548 <borderwidth>0</borderwidth>
549 </bsbObject>
550 <bsbObject version="2" type="BSBLabel">
551 <objectName>gain</objectName>
552 <x>18</x>
553 <y>171</y>
554 <width>69</width>
555 <height>24</height>
556 <uuid>{66349cae-8fcb-4efe-b691-46c3a667d1f8}</uuid>
557 <visible>true</visible>
558 <midichan>0</midichan>
559 <midicc>-3</midicc>
560 <description/>
561 <label>25.298</label>
562 <alignment>left</alignment>
563 <valignment>top</valignment>
564 <font>Helvetica</font>
565 <fontsize>12</fontsize>
566 <precision>3</precision>
567 <color>
568 <r>0</r>
569 <g>0</g>
570 <b>0</b>
571 </color>
572 <bgcolor mode="background">
573 <r>255</r>
574 <g>255</g>
575 <b>255</b>
576 </bgcolor>
577 <bordermode>noborder</bordermode>
578 <borderradius>1</borderradius>
579 <borderwidth>0</borderwidth>
580 </bsbObject>
581 <bsbObject version="2" type="BSBLabel">
582 <objectName/>
583 <x>341</x>
584 <y>180</y>
585 <width>80</width>
586 <height>25</height>
587 <uuid>{a2bdce04-8f5e-40fb-a743-e09d6a8eec89}</uuid>
588 <visible>true</visible>
589 <midichan>0</midichan>
590 <midicc>-3</midicc>
591 <description/>
592 <label>Frequency</label>
593 <alignment>left</alignment>
594 <valignment>top</valignment>
595 <font>Helvetica</font>
596 <fontsize>12</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>0</borderwidth>
611 </bsbObject>
612 <bsbObject version="2" type="BSBKnob">
613 <objectName>Q</objectName>
614 <x>102</x>
615 <y>88</y>
616 <width>80</width>
617 <height>80</height>
618 <uuid>{ddba3cab-bc78-416b-b421-8fb9d8b845b1}</uuid>
619 <visible>true</visible>
620 <midichan>0</midichan>
621 <midicc>0</midicc>
622 <description/>
623 <minimum>0.10000000</minimum>
624 <maximum>20.00000000</maximum>
625 <value>14.69665000</value>
626 <mode>lin</mode>
627 <mouseControl act="">continuous</mouseControl>
628 <resolution>0.01000000</resolution>
629 <randomizable group="0">false</randomizable>
630 <color>
631 <r>245</r>
632 <g>124</g>
633 <b>0</b>
634 </color>
635 <textcolor>#512900</textcolor>
636 <border>0</border>
637 <borderColor>#512900</borderColor>
638 <showvalue>true</showvalue>
639 <flatstyle>true</flatstyle>
640 <integerMode>false</integerMode>
641 </bsbObject>
642 <bsbObject version="2" type="BSBLabel">
643 <objectName/>
644 <x>104</x>
645 <y>60</y>
646 <width>80</width>
647 <height>25</height>
648 <uuid>{81820bef-c5cc-45b0-8ded-49e9160158e1}</uuid>
649 <visible>true</visible>
650 <midichan>0</midichan>
651 <midicc>-3</midicc>
652 <description/>
653 <label>Q</label>
654 <alignment>left</alignment>
655 <valignment>top</valignment>
656 <font>Helvetica</font>
657 <fontsize>12</fontsize>
658 <precision>3</precision>
659 <color>
660 <r>0</r>
661 <g>0</g>
662 <b>0</b>
663 </color>
664 <bgcolor mode="nobackground">
665 <r>255</r>
666 <g>255</g>
667 <b>255</b>
668 </bgcolor>
669 <bordermode>noborder</bordermode>
670 <borderradius>1</borderradius>
671 <borderwidth>0</borderwidth>
672 </bsbObject>
673 <bsbObject version="2" type="BSBLabel">
674 <objectName>Q</objectName>
675 <x>108</x>
676 <y>172</y>
677 <width>69</width>
678 <height>24</height>
679 <uuid>{094450ee-6000-47b1-a738-91ee9a291e4c}</uuid>
680 <visible>true</visible>
681 <midichan>0</midichan>
682 <midicc>-3</midicc>
683 <description/>
684 <label>14.697</label>
685 <alignment>left</alignment>
686 <valignment>top</valignment>
687 <font>Helvetica</font>
688 <fontsize>12</fontsize>
689 <precision>3</precision>
690 <color>
691 <r>0</r>
692 <g>0</g>
693 <b>0</b>
694 </color>
695 <bgcolor mode="background">
696 <r>255</r>
697 <g>255</g>
698 <b>255</b>
699 </bgcolor>
700 <bordermode>noborder</bordermode>
701 <borderradius>1</borderradius>
702 <borderwidth>0</borderwidth>
703 </bsbObject>
704 <bsbObject version="2" type="BSBLabel">
705 <objectName/>
706 <x>213</x>
707 <y>94</y>
708 <width>130</width>
709 <height>25</height>
710 <uuid>{f7d12575-56ae-49e5-b37f-8661a728d2bb}</uuid>
711 <visible>true</visible>
712 <midichan>0</midichan>
713 <midicc>-3</midicc>
714 <description/>
715 <label>Filter type</label>
716 <alignment>left</alignment>
717 <valignment>top</valignment>
718 <font>Helvetica</font>
719 <fontsize>12</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>0</borderwidth>
734 </bsbObject>
735 <bsbObject version="2" type="BSBLabel">
736 <objectName/>
737 <x>13</x>
738 <y>5</y>
739 <width>709</width>
740 <height>49</height>
741 <uuid>{5cd431c8-1032-4c45-8ddf-beaaaa72f1dd}</uuid>
742 <visible>true</visible>
743 <midichan>0</midichan>
744 <midicc>-3</midicc>
745 <description/>
746 <label>Biquad Filter Lab</label>
747 <alignment>left</alignment>
748 <valignment>center</valignment>
749 <font>Noto Sans</font>
750 <fontsize>28</fontsize>
751 <precision>3</precision>
752 <color>
753 <r>0</r>
754 <g>0</g>
755 <b>0</b>
756 </color>
757 <bgcolor mode="background">
758 <r>179</r>
759 <g>179</g>
760 <b>179</b>
761 </bgcolor>
762 <bordermode>false</bordermode>
763 <borderradius>1</borderradius>
764 <borderwidth>0</borderwidth>
765 </bsbObject>
766 <bsbObject version="2" type="BSBDisplay">
767 <objectName>coef</objectName>
768 <x>410</x>
769 <y>91</y>
770 <width>310</width>
771 <height>80</height>
772 <uuid>{64a3dc1c-c9d4-484c-a939-5c207787c41f}</uuid>
773 <visible>true</visible>
774 <midichan>0</midichan>
775 <midicc>-3</midicc>
776 <description/>
777 <label>b0=0.319 b1=0.637 b2=0.319
778
779 a1=0.101 a2=0.173</label>
780 <alignment>left</alignment>
781 <valignment>top</valignment>
782 <font>Arial</font>
783 <fontsize>14</fontsize>
784 <precision>3</precision>
785 <color>
786 <r>0</r>
787 <g>0</g>
788 <b>0</b>
789 </color>
790 <bgcolor mode="nobackground">
791 <r>255</r>
792 <g>255</g>
793 <b>255</b>
794 </bgcolor>
795 <bordermode>border</bordermode>
796 <borderradius>1</borderradius>
797 <borderwidth>1</borderwidth>
798 </bsbObject>
799 </bsbPanel>
800 <bsbPresets>
801 </bsbPresets>
802 <EventPanel name="" tempo="60.00000000" loop="8.00000000" x="557" y="270" width="608" height="322" visible="false" loopStart="0" loopEnd="0"> </EventPanel>