| 1 |
;Written by Iain McCurdy, 2006 |
| 2 |
;ELLIPTICAL FILTER DESIGN NOT IMPLEMENTED YET (since version 4.20)! |
| 3 |
|
| 4 |
|
| 5 |
;Modified for QuteCsound by René, October 2010, updated Feb 2011 |
| 6 |
;Tested on Ubuntu 10.04 with csound-float 5.13.0 and QuteCsound svn rev 817 |
| 7 |
|
| 8 |
;Notes on modifications from original csd: |
| 9 |
; Add table(s) for exp slider |
| 10 |
; Add Browser for audio file and use of FilePlay2 udo, now accept mono or stereo wav files |
| 11 |
|
| 12 |
|
| 13 |
;my flags on Ubuntu: -iadc -odac -b1024 -B2048 -+rtaudio=alsa -+rtmidi=null -m0 |
| 14 |
<CsoundSynthesizer> |
| 15 |
<CsOptions> |
| 16 |
--env:SSDIR+=../../SourceMaterials |
| 17 |
</CsOptions> |
| 18 |
<CsInstruments> |
| 19 |
sr = 44100 ;SAMPLE RATE |
| 20 |
ksmps = 2 ;NUMBER OF AUDIO SAMPLES IN EACH CONTROL CYCLE |
| 21 |
nchnls = 2 ;NUMBER OF CHANNELS (2=STEREO) |
| 22 |
|
| 23 |
|
| 24 |
giExp20_20000 ftgen 0, 0, 129, -25, 0, 20.0, 128, 20000.0 ;TABLE FOR EXP SLIDER |
| 25 |
|
| 26 |
|
| 27 |
opcode FilePlay2, aa, Skoo ; Credit to Joachim Heintz |
| 28 |
;gives stereo output regardless your soundfile is mono or stereo |
| 29 |
Sfil, kspeed, iskip, iloop xin |
| 30 |
ichn filenchnls Sfil |
| 31 |
if ichn == 1 then |
| 32 |
aL diskin2 Sfil, kspeed, iskip, iloop |
| 33 |
aR = aL |
| 34 |
else |
| 35 |
aL, aR diskin2 Sfil, kspeed, iskip, iloop |
| 36 |
endif |
| 37 |
xout aL, aR |
| 38 |
endop |
| 39 |
|
| 40 |
|
| 41 |
instr 1 ;GUI |
| 42 |
|
| 43 |
Sfile_new strcpy "" ;INIT TO EMPTY STRING |
| 44 |
|
| 45 |
ktrig metro 10 |
| 46 |
if (ktrig == 1) then |
| 47 |
kfreq invalue "Filter_Cutoff" |
| 48 |
gkfreq tablei kfreq, giExp20_20000, 1 |
| 49 |
outvalue "Filter_Cutoff_Value", gkfreq |
| 50 |
gkamp invalue "Amplitude" |
| 51 |
gkpbr invalue "Ripple" |
| 52 |
gksba invalue "Attenuation" |
| 53 |
|
| 54 |
gktype invalue "Type" |
| 55 |
gknpol invalue "Number_Poles" |
| 56 |
gkkind invalue "Filter_Design" |
| 57 |
gkskip invalue "Initialisation" |
| 58 |
|
| 59 |
gSfile invalue "_Browse" |
| 60 |
Sfile_old strcpyk Sfile_new |
| 61 |
Sfile_new strcpyk gSfile |
| 62 |
gkfile strcmpk Sfile_new, Sfile_old |
| 63 |
endif |
| 64 |
endin |
| 65 |
|
| 66 |
instr 2 |
| 67 |
kporttime linseg 0,0.001,0.005,1,0.005 ;CREATE A VARIABLE FUNCTION THAT RAPIDLY RAMPS UP TO A SET VALUE |
| 68 |
kfreq portk gkfreq, kporttime ;SMOOTH MOVEMENT OF SLIDER VARIABLE |
| 69 |
|
| 70 |
kNew_file changed gkfile ;GENERATE A MOMENTARY '1' PULSE IN OUTPUT 'kSwitch' IF ANY OF THE SCANNED INPUT VARIABLES CHANGE. (OUTPUT 'kSwitch' IS NORMALLY ZERO) |
| 71 |
if kNew_file=1 then ;IF I-RATE VARIABLE CHANGE TRIGGER IS '1'... |
| 72 |
reinit NEW_FILE ;BEGIN A REINITIALISATION PASS FROM LABEL 'START' |
| 73 |
endif |
| 74 |
NEW_FILE: |
| 75 |
;OUTPUTS OPCODE FILE | SPEED | INSKIP | LOOPING (0=OFF 1=ON) |
| 76 |
asigL, asigR FilePlay2 gSfile, 1, 0, 1 ;GENERATE 2 AUDIO SIGNALS FROM A STEREO SOUND FILE |
| 77 |
rireturn ;RETURN FROM REINITIALISATION PASS TO PERFORMANCE TIME PASSES |
| 78 |
|
| 79 |
kSwitch changed gktype, gknpol, gkkind, gkpbr, gksba, gkskip ;GENERATE A MOMENTARY '1' PULSE IN OUTPUT 'kSwitch' IF ANY OF THE SCANNED INPUT VARIABLES CHANGE. (OUTPUT 'kSwitch' IS NORMALLY ZERO) |
| 80 |
if kSwitch=1 then ;IF I-RATE VARIABLE CHANGE TRIGGER IS '1'... |
| 81 |
reinit START ;BEGIN A REINITIALISATION PASS FROM LABEL 'START' |
| 82 |
endif |
| 83 |
START: |
| 84 |
aresL clfilt asigL, kfreq, i(gktype), i(gknpol) , i(gkkind) , i(gkpbr), i(gksba), i(gkskip) ;FILTER EACH CHANNEL SEPARATELY |
| 85 |
aresR clfilt asigR, kfreq, i(gktype), i(gknpol) , i(gkkind) , i(gkpbr), i(gksba), i(gkskip) ;FILTER EACH CHANNEL SEPARATELY |
| 86 |
rireturn ;RETURN FROM REINITIALISATION PASS TO PERFORMANCE TIME PASSES |
| 87 |
outs aresL * gkamp, aresR * gkamp ;SEND FILTER OUTPUT TO THE AUDIO OUTPUTS AND SCALE USING THE FLTK SLIDER VARIABLE gkamp |
| 88 |
endin |
| 89 |
</CsInstruments> |
| 90 |
<CsScore> |
| 91 |
;INSTR | START | DURATION |
| 92 |
i 1 0 3600 ;INSTRUMENT 1 PLAYS FOR 1 HOUR |
| 93 |
</CsScore> |
| 94 |
</CsoundSynthesizer> |
| 95 |
|
| 96 |
<bsbPanel> |
| 97 |
<label>Widgets</label> |
| 98 |
<objectName/> |
| 99 |
<x>73</x> |
| 100 |
<y>206</y> |
| 101 |
<width>913</width> |
| 102 |
<height>352</height> |
| 103 |
<visible>true</visible> |
| 104 |
<uuid/> |
| 105 |
<bgcolor mode="background"> |
| 106 |
<r>241</r> |
| 107 |
<g>226</g> |
| 108 |
<b>185</b> |
| 109 |
</bgcolor> |
| 110 |
<bsbObject version="2" type="BSBLabel"> |
| 111 |
<objectName/> |
| 112 |
<x>2</x> |
| 113 |
<y>2</y> |
| 114 |
<width>512</width> |
| 115 |
<height>350</height> |
| 116 |
<uuid>{aa607456-d368-4d59-8497-d16d608404c3}</uuid> |
| 117 |
<visible>true</visible> |
| 118 |
<midichan>0</midichan> |
| 119 |
<midicc>0</midicc> |
| 120 |
<label>clfilt</label> |
| 121 |
<alignment>center</alignment> |
| 122 |
<font>Liberation Sans</font> |
| 123 |
<fontsize>18</fontsize> |
| 124 |
<precision>3</precision> |
| 125 |
<color> |
| 126 |
<r>0</r> |
| 127 |
<g>0</g> |
| 128 |
<b>0</b> |
| 129 |
</color> |
| 130 |
<bgcolor mode="background"> |
| 131 |
<r>106</r> |
| 132 |
<g>117</g> |
| 133 |
<b>150</b> |
| 134 |
</bgcolor> |
| 135 |
<bordermode>border</bordermode> |
| 136 |
<borderradius>5</borderradius> |
| 137 |
<borderwidth>2</borderwidth> |
| 138 |
</bsbObject> |
| 139 |
<bsbObject version="2" type="BSBLabel"> |
| 140 |
<objectName/> |
| 141 |
<x>515</x> |
| 142 |
<y>2</y> |
| 143 |
<width>398</width> |
| 144 |
<height>350</height> |
| 145 |
<uuid>{74928ed2-b701-4668-9a11-74763d317e9b}</uuid> |
| 146 |
<visible>true</visible> |
| 147 |
<midichan>0</midichan> |
| 148 |
<midicc>0</midicc> |
| 149 |
<label>clfilt</label> |
| 150 |
<alignment>center</alignment> |
| 151 |
<font>Liberation Sans</font> |
| 152 |
<fontsize>18</fontsize> |
| 153 |
<precision>3</precision> |
| 154 |
<color> |
| 155 |
<r>0</r> |
| 156 |
<g>0</g> |
| 157 |
<b>0</b> |
| 158 |
</color> |
| 159 |
<bgcolor mode="background"> |
| 160 |
<r>106</r> |
| 161 |
<g>117</g> |
| 162 |
<b>150</b> |
| 163 |
</bgcolor> |
| 164 |
<bordermode>border</bordermode> |
| 165 |
<borderradius>5</borderradius> |
| 166 |
<borderwidth>2</borderwidth> |
| 167 |
</bsbObject> |
| 168 |
<bsbObject version="2" type="BSBLabel"> |
| 169 |
<objectName/> |
| 170 |
<x>516</x> |
| 171 |
<y>16</y> |
| 172 |
<width>397</width> |
| 173 |
<height>330</height> |
| 174 |
<uuid>{d4bdb5ce-87d8-4c8c-9c64-40ec2eed6f5a}</uuid> |
| 175 |
<visible>true</visible> |
| 176 |
<midichan>0</midichan> |
| 177 |
<midicc>0</midicc> |
| 178 |
<label>------------------------------------------------------------------------------------------------ |
| 179 |
clfilt implements low and high-pass filters of various types. Experimentation is needed and care must be taken as certain combinations of setting can crash Csound. The number of poles (an even number between 2 and 80) directly relates to the steepness of the cutoff slope. Four types of filter are offered: Butterworth, Chebyshev Type I, Chebyshev Type II and Elliptical (not implemented yet but included in this example for the future). The filter type argument is optional and defaults to Butterworth. Pass band ripple (optional, defaults to 1dB) controls the amplitude of the ripple at the cutoff frequency. (This is heard as a resonance at the cutoff frequency.) The pass band ripple control is ignored by Butterworth and Chebyshev Type II. Stop Band Attenuation (optional, default -60dB) controls the amount of attenuation (in dBs) that is imposed beyond the cutoff frequency. Stop Band Attenuation is ignored by Butterworth and Chebyshev Type I. An optional 2-way switch (default=0) is used to select whether the data space for feedback within the filter is initially cleared or allowed to retain previously held information.</label> |
| 180 |
<alignment>left</alignment> |
| 181 |
<font>Arial</font> |
| 182 |
<fontsize>14</fontsize> |
| 183 |
<precision>3</precision> |
| 184 |
<color> |
| 185 |
<r>0</r> |
| 186 |
<g>0</g> |
| 187 |
<b>0</b> |
| 188 |
</color> |
| 189 |
<bgcolor mode="nobackground"> |
| 190 |
<r>255</r> |
| 191 |
<g>255</g> |
| 192 |
<b>255</b> |
| 193 |
</bgcolor> |
| 194 |
<bordermode>noborder</bordermode> |
| 195 |
<borderradius>1</borderradius> |
| 196 |
<borderwidth>1</borderwidth> |
| 197 |
</bsbObject> |
| 198 |
<bsbObject version="2" type="BSBButton"> |
| 199 |
<objectName/> |
| 200 |
<x>8</x> |
| 201 |
<y>8</y> |
| 202 |
<width>100</width> |
| 203 |
<height>30</height> |
| 204 |
<uuid>{24979132-c53f-4414-ac6b-6b4f503ecfe8}</uuid> |
| 205 |
<visible>true</visible> |
| 206 |
<midichan>0</midichan> |
| 207 |
<midicc>0</midicc> |
| 208 |
<type>event</type> |
| 209 |
<pressedValue>1.00000000</pressedValue> |
| 210 |
<stringvalue/> |
| 211 |
<text> ON / OFF</text> |
| 212 |
<image>/</image> |
| 213 |
<eventLine>i 2 0 -1</eventLine> |
| 214 |
<latch>true</latch> |
| 215 |
<latched>false</latched> |
| 216 |
</bsbObject> |
| 217 |
<bsbObject version="2" type="BSBDisplay"> |
| 218 |
<objectName>Filter_Cutoff_Value</objectName> |
| 219 |
<x>448</x> |
| 220 |
<y>70</y> |
| 221 |
<width>60</width> |
| 222 |
<height>30</height> |
| 223 |
<uuid>{745d6bee-b951-4a03-9fe8-9e10d5ae4556}</uuid> |
| 224 |
<visible>true</visible> |
| 225 |
<midichan>0</midichan> |
| 226 |
<midicc>0</midicc> |
| 227 |
<label>140.309</label> |
| 228 |
<alignment>right</alignment> |
| 229 |
<font>Arial</font> |
| 230 |
<fontsize>9</fontsize> |
| 231 |
<precision>3</precision> |
| 232 |
<color> |
| 233 |
<r>0</r> |
| 234 |
<g>0</g> |
| 235 |
<b>0</b> |
| 236 |
</color> |
| 237 |
<bgcolor mode="nobackground"> |
| 238 |
<r>255</r> |
| 239 |
<g>255</g> |
| 240 |
<b>255</b> |
| 241 |
</bgcolor> |
| 242 |
<bordermode>noborder</bordermode> |
| 243 |
<borderradius>1</borderradius> |
| 244 |
<borderwidth>1</borderwidth> |
| 245 |
</bsbObject> |
| 246 |
<bsbObject version="2" type="BSBHSlider"> |
| 247 |
<objectName>Filter_Cutoff</objectName> |
| 248 |
<x>8</x> |
| 249 |
<y>53</y> |
| 250 |
<width>500</width> |
| 251 |
<height>27</height> |
| 252 |
<uuid>{06814721-6151-4baa-84e2-8f39843b07a4}</uuid> |
| 253 |
<visible>true</visible> |
| 254 |
<midichan>0</midichan> |
| 255 |
<midicc>0</midicc> |
| 256 |
<minimum>0.00000000</minimum> |
| 257 |
<maximum>1.00000000</maximum> |
| 258 |
<value>0.28200000</value> |
| 259 |
<mode>lin</mode> |
| 260 |
<mouseControl act="jump">continuous</mouseControl> |
| 261 |
<resolution>-1.00000000</resolution> |
| 262 |
<randomizable group="0">false</randomizable> |
| 263 |
</bsbObject> |
| 264 |
<bsbObject version="2" type="BSBLabel"> |
| 265 |
<objectName/> |
| 266 |
<x>8</x> |
| 267 |
<y>70</y> |
| 268 |
<width>180</width> |
| 269 |
<height>30</height> |
| 270 |
<uuid>{c6d7165c-6730-426f-b293-52b411bc73cf}</uuid> |
| 271 |
<visible>true</visible> |
| 272 |
<midichan>0</midichan> |
| 273 |
<midicc>0</midicc> |
| 274 |
<label>Filter Cutoff</label> |
| 275 |
<alignment>left</alignment> |
| 276 |
<font>Arial</font> |
| 277 |
<fontsize>10</fontsize> |
| 278 |
<precision>3</precision> |
| 279 |
<color> |
| 280 |
<r>0</r> |
| 281 |
<g>0</g> |
| 282 |
<b>0</b> |
| 283 |
</color> |
| 284 |
<bgcolor mode="nobackground"> |
| 285 |
<r>255</r> |
| 286 |
<g>255</g> |
| 287 |
<b>255</b> |
| 288 |
</bgcolor> |
| 289 |
<bordermode>noborder</bordermode> |
| 290 |
<borderradius>1</borderradius> |
| 291 |
<borderwidth>1</borderwidth> |
| 292 |
</bsbObject> |
| 293 |
<bsbObject version="2" type="BSBButton"> |
| 294 |
<objectName>_Browse</objectName> |
| 295 |
<x>8</x> |
| 296 |
<y>313</y> |
| 297 |
<width>170</width> |
| 298 |
<height>30</height> |
| 299 |
<uuid>{b9431a61-61f7-432b-bf6f-c47ddc7f9050}</uuid> |
| 300 |
<visible>true</visible> |
| 301 |
<midichan>0</midichan> |
| 302 |
<midicc>0</midicc> |
| 303 |
<type>value</type> |
| 304 |
<pressedValue>1.00000000</pressedValue> |
| 305 |
<stringvalue>Seashore.wav</stringvalue> |
| 306 |
<text>Browse Audio File</text> |
| 307 |
<image>/</image> |
| 308 |
<eventLine/> |
| 309 |
<latch>false</latch> |
| 310 |
<latched>false</latched> |
| 311 |
</bsbObject> |
| 312 |
<bsbObject version="2" type="BSBLineEdit"> |
| 313 |
<objectName>_Browse</objectName> |
| 314 |
<x>179</x> |
| 315 |
<y>314</y> |
| 316 |
<width>330</width> |
| 317 |
<height>28</height> |
| 318 |
<uuid>{68b5f90b-b78e-4581-b434-232db5f4c40f}</uuid> |
| 319 |
<visible>true</visible> |
| 320 |
<midichan>0</midichan> |
| 321 |
<midicc>0</midicc> |
| 322 |
<label>Seashore.wav</label> |
| 323 |
<alignment>left</alignment> |
| 324 |
<font>Arial</font> |
| 325 |
<fontsize>10</fontsize> |
| 326 |
<precision>3</precision> |
| 327 |
<color> |
| 328 |
<r>0</r> |
| 329 |
<g>0</g> |
| 330 |
<b>0</b> |
| 331 |
</color> |
| 332 |
<bgcolor mode="nobackground"> |
| 333 |
<r>229</r> |
| 334 |
<g>229</g> |
| 335 |
<b>229</b> |
| 336 |
</bgcolor> |
| 337 |
<background>nobackground</background> |
| 338 |
</bsbObject> |
| 339 |
<bsbObject version="2" type="BSBLabel"> |
| 340 |
<objectName/> |
| 341 |
<x>8</x> |
| 342 |
<y>292</y> |
| 343 |
<width>150</width> |
| 344 |
<height>30</height> |
| 345 |
<uuid>{936f6eb0-5225-4bd7-a5fe-a49df1c9c5ac}</uuid> |
| 346 |
<visible>true</visible> |
| 347 |
<midichan>0</midichan> |
| 348 |
<midicc>0</midicc> |
| 349 |
<label>Audio File</label> |
| 350 |
<alignment>left</alignment> |
| 351 |
<font>Arial</font> |
| 352 |
<fontsize>10</fontsize> |
| 353 |
<precision>3</precision> |
| 354 |
<color> |
| 355 |
<r>0</r> |
| 356 |
<g>0</g> |
| 357 |
<b>0</b> |
| 358 |
</color> |
| 359 |
<bgcolor mode="nobackground"> |
| 360 |
<r>255</r> |
| 361 |
<g>255</g> |
| 362 |
<b>255</b> |
| 363 |
</bgcolor> |
| 364 |
<bordermode>noborder</bordermode> |
| 365 |
<borderradius>1</borderradius> |
| 366 |
<borderwidth>1</borderwidth> |
| 367 |
</bsbObject> |
| 368 |
<bsbObject version="2" type="BSBLabel"> |
| 369 |
<objectName/> |
| 370 |
<x>8</x> |
| 371 |
<y>178</y> |
| 372 |
<width>180</width> |
| 373 |
<height>30</height> |
| 374 |
<uuid>{2e52a7a7-dc13-405e-896d-db2a7431d8dd}</uuid> |
| 375 |
<visible>true</visible> |
| 376 |
<midichan>0</midichan> |
| 377 |
<midicc>0</midicc> |
| 378 |
<label>Output Amplitude Rescaling</label> |
| 379 |
<alignment>left</alignment> |
| 380 |
<font>Arial</font> |
| 381 |
<fontsize>10</fontsize> |
| 382 |
<precision>3</precision> |
| 383 |
<color> |
| 384 |
<r>0</r> |
| 385 |
<g>0</g> |
| 386 |
<b>0</b> |
| 387 |
</color> |
| 388 |
<bgcolor mode="nobackground"> |
| 389 |
<r>255</r> |
| 390 |
<g>255</g> |
| 391 |
<b>255</b> |
| 392 |
</bgcolor> |
| 393 |
<bordermode>noborder</bordermode> |
| 394 |
<borderradius>1</borderradius> |
| 395 |
<borderwidth>1</borderwidth> |
| 396 |
</bsbObject> |
| 397 |
<bsbObject version="2" type="BSBHSlider"> |
| 398 |
<objectName>Amplitude</objectName> |
| 399 |
<x>8</x> |
| 400 |
<y>161</y> |
| 401 |
<width>500</width> |
| 402 |
<height>27</height> |
| 403 |
<uuid>{6ab84e0f-82a7-4b9c-af23-35bd7d9b7fa2}</uuid> |
| 404 |
<visible>true</visible> |
| 405 |
<midichan>0</midichan> |
| 406 |
<midicc>0</midicc> |
| 407 |
<minimum>0.00000000</minimum> |
| 408 |
<maximum>10.00000000</maximum> |
| 409 |
<value>2.22000000</value> |
| 410 |
<mode>lin</mode> |
| 411 |
<mouseControl act="jump">continuous</mouseControl> |
| 412 |
<resolution>-1.00000000</resolution> |
| 413 |
<randomizable group="0">false</randomizable> |
| 414 |
</bsbObject> |
| 415 |
<bsbObject version="2" type="BSBDisplay"> |
| 416 |
<objectName>Amplitude</objectName> |
| 417 |
<x>448</x> |
| 418 |
<y>178</y> |
| 419 |
<width>60</width> |
| 420 |
<height>30</height> |
| 421 |
<uuid>{99d6bf8b-3c85-4911-a29a-7dd678a940ed}</uuid> |
| 422 |
<visible>true</visible> |
| 423 |
<midichan>0</midichan> |
| 424 |
<midicc>0</midicc> |
| 425 |
<label>2.220</label> |
| 426 |
<alignment>right</alignment> |
| 427 |
<font>Arial</font> |
| 428 |
<fontsize>9</fontsize> |
| 429 |
<precision>3</precision> |
| 430 |
<color> |
| 431 |
<r>0</r> |
| 432 |
<g>0</g> |
| 433 |
<b>0</b> |
| 434 |
</color> |
| 435 |
<bgcolor mode="nobackground"> |
| 436 |
<r>255</r> |
| 437 |
<g>255</g> |
| 438 |
<b>255</b> |
| 439 |
</bgcolor> |
| 440 |
<bordermode>noborder</bordermode> |
| 441 |
<borderradius>1</borderradius> |
| 442 |
<borderwidth>1</borderwidth> |
| 443 |
</bsbObject> |
| 444 |
<bsbObject version="2" type="BSBButton"> |
| 445 |
<objectName>Initialisation</objectName> |
| 446 |
<x>380</x> |
| 447 |
<y>8</y> |
| 448 |
<width>130</width> |
| 449 |
<height>30</height> |
| 450 |
<uuid>{b6345774-7938-4e62-9d8b-0ada81f7bcc5}</uuid> |
| 451 |
<visible>true</visible> |
| 452 |
<midichan>0</midichan> |
| 453 |
<midicc>0</midicc> |
| 454 |
<type>value</type> |
| 455 |
<pressedValue>1.00000000</pressedValue> |
| 456 |
<stringvalue/> |
| 457 |
<text> No Initialisation</text> |
| 458 |
<image>/</image> |
| 459 |
<eventLine/> |
| 460 |
<latch>true</latch> |
| 461 |
<latched>false</latched> |
| 462 |
</bsbObject> |
| 463 |
<bsbObject version="2" type="BSBDisplay"> |
| 464 |
<objectName>Ripple</objectName> |
| 465 |
<x>448</x> |
| 466 |
<y>217</y> |
| 467 |
<width>60</width> |
| 468 |
<height>30</height> |
| 469 |
<uuid>{aa25cbea-3c62-4a2e-ac25-d9601917f135}</uuid> |
| 470 |
<visible>true</visible> |
| 471 |
<midichan>0</midichan> |
| 472 |
<midicc>0</midicc> |
| 473 |
<label>14.471</label> |
| 474 |
<alignment>right</alignment> |
| 475 |
<font>Arial</font> |
| 476 |
<fontsize>9</fontsize> |
| 477 |
<precision>3</precision> |
| 478 |
<color> |
| 479 |
<r>0</r> |
| 480 |
<g>0</g> |
| 481 |
<b>0</b> |
| 482 |
</color> |
| 483 |
<bgcolor mode="nobackground"> |
| 484 |
<r>255</r> |
| 485 |
<g>255</g> |
| 486 |
<b>255</b> |
| 487 |
</bgcolor> |
| 488 |
<bordermode>noborder</bordermode> |
| 489 |
<borderradius>1</borderradius> |
| 490 |
<borderwidth>1</borderwidth> |
| 491 |
</bsbObject> |
| 492 |
<bsbObject version="2" type="BSBHSlider"> |
| 493 |
<objectName>Ripple</objectName> |
| 494 |
<x>8</x> |
| 495 |
<y>200</y> |
| 496 |
<width>500</width> |
| 497 |
<height>27</height> |
| 498 |
<uuid>{9f52feb1-7613-4427-b719-6d1431e31982}</uuid> |
| 499 |
<visible>true</visible> |
| 500 |
<midichan>0</midichan> |
| 501 |
<midicc>0</midicc> |
| 502 |
<minimum>0.10000000</minimum> |
| 503 |
<maximum>50.00000000</maximum> |
| 504 |
<value>14.47120000</value> |
| 505 |
<mode>lin</mode> |
| 506 |
<mouseControl act="jump">continuous</mouseControl> |
| 507 |
<resolution>-1.00000000</resolution> |
| 508 |
<randomizable group="0">false</randomizable> |
| 509 |
</bsbObject> |
| 510 |
<bsbObject version="2" type="BSBLabel"> |
| 511 |
<objectName/> |
| 512 |
<x>8</x> |
| 513 |
<y>217</y> |
| 514 |
<width>320</width> |
| 515 |
<height>30</height> |
| 516 |
<uuid>{365caef3-3cca-43e5-98c1-92d8f0f139b4}</uuid> |
| 517 |
<visible>true</visible> |
| 518 |
<midichan>0</midichan> |
| 519 |
<midicc>0</midicc> |
| 520 |
<label>Pass Band Ripple (Chebyshev Type I and Elliptical)</label> |
| 521 |
<alignment>left</alignment> |
| 522 |
<font>Arial</font> |
| 523 |
<fontsize>10</fontsize> |
| 524 |
<precision>3</precision> |
| 525 |
<color> |
| 526 |
<r>0</r> |
| 527 |
<g>0</g> |
| 528 |
<b>0</b> |
| 529 |
</color> |
| 530 |
<bgcolor mode="nobackground"> |
| 531 |
<r>255</r> |
| 532 |
<g>255</g> |
| 533 |
<b>255</b> |
| 534 |
</bgcolor> |
| 535 |
<bordermode>noborder</bordermode> |
| 536 |
<borderradius>1</borderradius> |
| 537 |
<borderwidth>1</borderwidth> |
| 538 |
</bsbObject> |
| 539 |
<bsbObject version="2" type="BSBDisplay"> |
| 540 |
<objectName>Attenuation</objectName> |
| 541 |
<x>448</x> |
| 542 |
<y>257</y> |
| 543 |
<width>60</width> |
| 544 |
<height>30</height> |
| 545 |
<uuid>{7d70e09e-bd1a-4e3e-8c65-abdcfaa8056a}</uuid> |
| 546 |
<visible>true</visible> |
| 547 |
<midichan>0</midichan> |
| 548 |
<midicc>0</midicc> |
| 549 |
<label>-44.896</label> |
| 550 |
<alignment>right</alignment> |
| 551 |
<font>Arial</font> |
| 552 |
<fontsize>9</fontsize> |
| 553 |
<precision>3</precision> |
| 554 |
<color> |
| 555 |
<r>0</r> |
| 556 |
<g>0</g> |
| 557 |
<b>0</b> |
| 558 |
</color> |
| 559 |
<bgcolor mode="nobackground"> |
| 560 |
<r>255</r> |
| 561 |
<g>255</g> |
| 562 |
<b>255</b> |
| 563 |
</bgcolor> |
| 564 |
<bordermode>noborder</bordermode> |
| 565 |
<borderradius>1</borderradius> |
| 566 |
<borderwidth>1</borderwidth> |
| 567 |
</bsbObject> |
| 568 |
<bsbObject version="2" type="BSBHSlider"> |
| 569 |
<objectName>Attenuation</objectName> |
| 570 |
<x>8</x> |
| 571 |
<y>240</y> |
| 572 |
<width>500</width> |
| 573 |
<height>27</height> |
| 574 |
<uuid>{1f089b5e-195a-43ee-8f42-032cb36754fd}</uuid> |
| 575 |
<visible>true</visible> |
| 576 |
<midichan>0</midichan> |
| 577 |
<midicc>0</midicc> |
| 578 |
<minimum>-60.00000000</minimum> |
| 579 |
<maximum>-1.00000000</maximum> |
| 580 |
<value>-44.89600000</value> |
| 581 |
<mode>lin</mode> |
| 582 |
<mouseControl act="jump">continuous</mouseControl> |
| 583 |
<resolution>-1.00000000</resolution> |
| 584 |
<randomizable group="0">false</randomizable> |
| 585 |
</bsbObject> |
| 586 |
<bsbObject version="2" type="BSBLabel"> |
| 587 |
<objectName/> |
| 588 |
<x>8</x> |
| 589 |
<y>257</y> |
| 590 |
<width>320</width> |
| 591 |
<height>30</height> |
| 592 |
<uuid>{6157dea0-719e-41b0-a09c-e1ad42970084}</uuid> |
| 593 |
<visible>true</visible> |
| 594 |
<midichan>0</midichan> |
| 595 |
<midicc>0</midicc> |
| 596 |
<label>Stop Band Attenuation (Chebyshev Type II and Elliptical)</label> |
| 597 |
<alignment>left</alignment> |
| 598 |
<font>Arial</font> |
| 599 |
<fontsize>10</fontsize> |
| 600 |
<precision>3</precision> |
| 601 |
<color> |
| 602 |
<r>0</r> |
| 603 |
<g>0</g> |
| 604 |
<b>0</b> |
| 605 |
</color> |
| 606 |
<bgcolor mode="nobackground"> |
| 607 |
<r>255</r> |
| 608 |
<g>255</g> |
| 609 |
<b>255</b> |
| 610 |
</bgcolor> |
| 611 |
<bordermode>noborder</bordermode> |
| 612 |
<borderradius>1</borderradius> |
| 613 |
<borderwidth>1</borderwidth> |
| 614 |
</bsbObject> |
| 615 |
<bsbObject version="2" type="BSBDropdown"> |
| 616 |
<objectName>Type</objectName> |
| 617 |
<x>72</x> |
| 618 |
<y>110</y> |
| 619 |
<width>100</width> |
| 620 |
<height>30</height> |
| 621 |
<uuid>{1a64b5e3-8dfb-4a9b-bb44-3208ef47d372}</uuid> |
| 622 |
<visible>true</visible> |
| 623 |
<midichan>0</midichan> |
| 624 |
<midicc>0</midicc> |
| 625 |
<bsbDropdownItemList> |
| 626 |
<bsbDropdownItem> |
| 627 |
<name>Low-pass</name> |
| 628 |
<value>0</value> |
| 629 |
<stringvalue/> |
| 630 |
</bsbDropdownItem> |
| 631 |
<bsbDropdownItem> |
| 632 |
<name>High-pass</name> |
| 633 |
<value>1</value> |
| 634 |
<stringvalue/> |
| 635 |
</bsbDropdownItem> |
| 636 |
</bsbDropdownItemList> |
| 637 |
<selectedIndex>0</selectedIndex> |
| 638 |
<randomizable group="0">false</randomizable> |
| 639 |
</bsbObject> |
| 640 |
<bsbObject version="2" type="BSBLabel"> |
| 641 |
<objectName/> |
| 642 |
<x>175</x> |
| 643 |
<y>108</y> |
| 644 |
<width>86</width> |
| 645 |
<height>45</height> |
| 646 |
<uuid>{24e95f29-1961-460e-8f90-eb9e1723b570}</uuid> |
| 647 |
<visible>true</visible> |
| 648 |
<midichan>0</midichan> |
| 649 |
<midicc>0</midicc> |
| 650 |
<label>Number |
| 651 |
of Poles</label> |
| 652 |
<alignment>right</alignment> |
| 653 |
<font>Arial</font> |
| 654 |
<fontsize>10</fontsize> |
| 655 |
<precision>3</precision> |
| 656 |
<color> |
| 657 |
<r>0</r> |
| 658 |
<g>0</g> |
| 659 |
<b>0</b> |
| 660 |
</color> |
| 661 |
<bgcolor mode="nobackground"> |
| 662 |
<r>255</r> |
| 663 |
<g>255</g> |
| 664 |
<b>255</b> |
| 665 |
</bgcolor> |
| 666 |
<bordermode>noborder</bordermode> |
| 667 |
<borderradius>1</borderradius> |
| 668 |
<borderwidth>1</borderwidth> |
| 669 |
</bsbObject> |
| 670 |
<bsbObject version="2" type="BSBSpinBox"> |
| 671 |
<objectName>Number_Poles</objectName> |
| 672 |
<x>262</x> |
| 673 |
<y>110</y> |
| 674 |
<width>60</width> |
| 675 |
<height>30</height> |
| 676 |
<uuid>{fa71b76a-9e28-481f-8fa9-d92c9887fb4e}</uuid> |
| 677 |
<visible>true</visible> |
| 678 |
<midichan>0</midichan> |
| 679 |
<midicc>0</midicc> |
| 680 |
<alignment>left</alignment> |
| 681 |
<font>Arial</font> |
| 682 |
<fontsize>14</fontsize> |
| 683 |
<color> |
| 684 |
<r>0</r> |
| 685 |
<g>0</g> |
| 686 |
<b>0</b> |
| 687 |
</color> |
| 688 |
<bgcolor mode="nobackground"> |
| 689 |
<r>255</r> |
| 690 |
<g>255</g> |
| 691 |
<b>255</b> |
| 692 |
</bgcolor> |
| 693 |
<resolution>1.00000000</resolution> |
| 694 |
<minimum>2</minimum> |
| 695 |
<maximum>80</maximum> |
| 696 |
<randomizable group="0">false</randomizable> |
| 697 |
<value>2</value> |
| 698 |
</bsbObject> |
| 699 |
<bsbObject version="2" type="BSBLabel"> |
| 700 |
<objectName/> |
| 701 |
<x>11</x> |
| 702 |
<y>108</y> |
| 703 |
<width>60</width> |
| 704 |
<height>30</height> |
| 705 |
<uuid>{e3584b33-be84-4fb7-9b4e-72bbb75663d5}</uuid> |
| 706 |
<visible>true</visible> |
| 707 |
<midichan>0</midichan> |
| 708 |
<midicc>0</midicc> |
| 709 |
<label>Type</label> |
| 710 |
<alignment>right</alignment> |
| 711 |
<font>Arial</font> |
| 712 |
<fontsize>10</fontsize> |
| 713 |
<precision>3</precision> |
| 714 |
<color> |
| 715 |
<r>0</r> |
| 716 |
<g>0</g> |
| 717 |
<b>0</b> |
| 718 |
</color> |
| 719 |
<bgcolor mode="nobackground"> |
| 720 |
<r>255</r> |
| 721 |
<g>255</g> |
| 722 |
<b>255</b> |
| 723 |
</bgcolor> |
| 724 |
<bordermode>noborder</bordermode> |
| 725 |
<borderradius>1</borderradius> |
| 726 |
<borderwidth>1</borderwidth> |
| 727 |
</bsbObject> |
| 728 |
<bsbObject version="2" type="BSBDropdown"> |
| 729 |
<objectName>Filter_Design</objectName> |
| 730 |
<x>388</x> |
| 731 |
<y>110</y> |
| 732 |
<width>120</width> |
| 733 |
<height>30</height> |
| 734 |
<uuid>{43e296d1-1e6b-47a1-8d46-06307a77dc07}</uuid> |
| 735 |
<visible>true</visible> |
| 736 |
<midichan>0</midichan> |
| 737 |
<midicc>0</midicc> |
| 738 |
<bsbDropdownItemList> |
| 739 |
<bsbDropdownItem> |
| 740 |
<name>Butterworth</name> |
| 741 |
<value>0</value> |
| 742 |
<stringvalue/> |
| 743 |
</bsbDropdownItem> |
| 744 |
<bsbDropdownItem> |
| 745 |
<name>Chebyshev I</name> |
| 746 |
<value>1</value> |
| 747 |
<stringvalue/> |
| 748 |
</bsbDropdownItem> |
| 749 |
<bsbDropdownItem> |
| 750 |
<name>Chebyshev II</name> |
| 751 |
<value>2</value> |
| 752 |
<stringvalue/> |
| 753 |
</bsbDropdownItem> |
| 754 |
<bsbDropdownItem> |
| 755 |
<name>Elliptical</name> |
| 756 |
<value>3</value> |
| 757 |
<stringvalue/> |
| 758 |
</bsbDropdownItem> |
| 759 |
</bsbDropdownItemList> |
| 760 |
<selectedIndex>0</selectedIndex> |
| 761 |
<randomizable group="0">false</randomizable> |
| 762 |
</bsbObject> |
| 763 |
<bsbObject version="2" type="BSBLabel"> |
| 764 |
<objectName/> |
| 765 |
<x>327</x> |
| 766 |
<y>108</y> |
| 767 |
<width>60</width> |
| 768 |
<height>30</height> |
| 769 |
<uuid>{1c612251-6792-46c9-8550-e14ba5ca2926}</uuid> |
| 770 |
<visible>true</visible> |
| 771 |
<midichan>0</midichan> |
| 772 |
<midicc>0</midicc> |
| 773 |
<label>Design</label> |
| 774 |
<alignment>right</alignment> |
| 775 |
<font>Arial</font> |
| 776 |
<fontsize>10</fontsize> |
| 777 |
<precision>3</precision> |
| 778 |
<color> |
| 779 |
<r>0</r> |
| 780 |
<g>0</g> |
| 781 |
<b>0</b> |
| 782 |
</color> |
| 783 |
<bgcolor mode="nobackground"> |
| 784 |
<r>255</r> |
| 785 |
<g>255</g> |
| 786 |
<b>255</b> |
| 787 |
</bgcolor> |
| 788 |
<bordermode>noborder</bordermode> |
| 789 |
<borderradius>1</borderradius> |
| 790 |
<borderwidth>1</borderwidth> |
| 791 |
</bsbObject> |
| 792 |
</bsbPanel> |
| 793 |
<bsbPresets> |
| 794 |
</bsbPresets> |
| 795 |
<EventPanel name="" tempo="60.00000000" loop="8.00000000" x="913" y="162" width="655" height="346" visible="true" loopStart="0" loopEnd="0"> </EventPanel> |