| 1 |
;Written by Iain McCurdy, |
| 2 |
|
| 3 |
;Modified for QuteCsound by René, March 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 |
; Init instrument added |
| 8 |
|
| 9 |
;my flags on Ubuntu: -odac -b1024 -B2048 -+rtaudio=alsa -+rtmidi=null -m0 |
| 10 |
<CsoundSynthesizer> |
| 11 |
<CsOptions> |
| 12 |
|
| 13 |
</CsOptions> |
| 14 |
<CsInstruments> |
| 15 |
sr = 44100 ;SAMPLE RATE |
| 16 |
ksmps = 100 ;NUMBER OF AUDIO SAMPLES IN EACH CONTROL CYCLE |
| 17 |
nchnls = 2 ;NUMBER OF CHANNELS (2=STEREO) |
| 18 |
0dbfs = 1 ;MAXIMUM AMPLITUDE REGARDLESS OF BIT DEPTH |
| 19 |
|
| 20 |
|
| 21 |
instr 10 ;GUI |
| 22 |
ktrig metro 10 |
| 23 |
if (ktrig == 1) then |
| 24 |
gkK invalue "Stiffness" |
| 25 |
gkT30 invalue "DT30" |
| 26 |
gkb invalue "HFLoss" |
| 27 |
gkpos invalue "Pos" |
| 28 |
gkvel invalue "Vel" |
| 29 |
gkscan invalue "Scan" |
| 30 |
gkwid invalue "Width" |
| 31 |
gkOutGain invalue "OutGain" |
| 32 |
|
| 33 |
gkbcL invalue "bcL" |
| 34 |
gkbcR invalue "bcR" |
| 35 |
endif |
| 36 |
endin |
| 37 |
|
| 38 |
instr 1 |
| 39 |
kSwitch changed gkK, gkT30, gkb, gkpos, gkvel, gkwid ;GENERATE A MOMENTARY '1' PULSE IN OUTPUT 'kSwitch' IF ANY OF THE SCANNED INPUT VARIABLES CHANGE. (OUTPUT 'kSwitch' IS NORMALLY ZERO) |
| 40 |
if kSwitch=1 then ;IF kSwitch=1, I.E. IF ANY OF THE ABOVE LISTED PARAMETERS HAVE CHANGED... |
| 41 |
reinit START ;...PERFORM AN I-RATE PASS BEGINNING FROM THE GIVEN LABEL |
| 42 |
endif ;END OF CONDITIONAL BRANCHING |
| 43 |
|
| 44 |
START: ;A LABEL |
| 45 |
|
| 46 |
; LEFT | RIGHT | STIFFNESS | HIGH- | SCANNING | 30dB | STRIKE | STRIKE | WIDTH |
| 47 |
; BOUNDARY | BOUNDARY | | -FREQUENCY | SPEED | DECAY | POSITION | VELOCITY | OF |
| 48 |
; CONDITION | CONDITION | | LOSS | | TIME | | | STRIKE |
| 49 |
ares barmodel gkbcL+1, gkbcR+1, i(gkK), i(gkb), gkscan, i(gkT30), i(gkpos), i(gkvel), i(gkwid) |
| 50 |
rireturn |
| 51 |
outs ares * gkOutGain, ares * gkOutGain ;SEND AUDIO TO OUTPUTS. RESCALE WITH VARIBLE FROM 'OUTPUT GAIN' SLIDER |
| 52 |
endin |
| 53 |
|
| 54 |
|
| 55 |
instr 2 ;INIT |
| 56 |
outvalue "Stiffness" , 130 |
| 57 |
outvalue "DT30" , 20 |
| 58 |
outvalue "HFLoss" , .0775 |
| 59 |
outvalue "Pos" , .837 |
| 60 |
outvalue "Vel" , 16000 |
| 61 |
outvalue "Scan" , 0.775 |
| 62 |
outvalue "Width" , 0.0156 |
| 63 |
outvalue "OutGain" , 0.6 |
| 64 |
|
| 65 |
outvalue "bcL" , 1 |
| 66 |
outvalue "bcR" , 1 |
| 67 |
endin |
| 68 |
</CsInstruments> |
| 69 |
<CsScore> |
| 70 |
;INSTR | START | DURATION |
| 71 |
i 10 0 3600 ;GUI |
| 72 |
i 2 0 0.1 ;INIT |
| 73 |
</CsScore> |
| 74 |
</CsoundSynthesizer> |
| 75 |
<bsbPanel> |
| 76 |
<label>Widgets</label> |
| 77 |
<objectName/> |
| 78 |
<x>647</x> |
| 79 |
<y>284</y> |
| 80 |
<width>963</width> |
| 81 |
<height>506</height> |
| 82 |
<visible>true</visible> |
| 83 |
<uuid/> |
| 84 |
<bgcolor mode="background"> |
| 85 |
<r>241</r> |
| 86 |
<g>226</g> |
| 87 |
<b>185</b> |
| 88 |
</bgcolor> |
| 89 |
<bsbObject version="2" type="BSBLabel"> |
| 90 |
<objectName/> |
| 91 |
<x>2</x> |
| 92 |
<y>2</y> |
| 93 |
<width>512</width> |
| 94 |
<height>500</height> |
| 95 |
<uuid>{aa607456-d368-4d59-8497-d16d608404c3}</uuid> |
| 96 |
<visible>true</visible> |
| 97 |
<midichan>0</midichan> |
| 98 |
<midicc>0</midicc> |
| 99 |
<label> barmodel</label> |
| 100 |
<alignment>center</alignment> |
| 101 |
<font>Liberation Sans</font> |
| 102 |
<fontsize>18</fontsize> |
| 103 |
<precision>3</precision> |
| 104 |
<color> |
| 105 |
<r>0</r> |
| 106 |
<g>0</g> |
| 107 |
<b>0</b> |
| 108 |
</color> |
| 109 |
<bgcolor mode="background"> |
| 110 |
<r>147</r> |
| 111 |
<g>154</g> |
| 112 |
<b>255</b> |
| 113 |
</bgcolor> |
| 114 |
<bordermode>border</bordermode> |
| 115 |
<borderradius>5</borderradius> |
| 116 |
<borderwidth>2</borderwidth> |
| 117 |
</bsbObject> |
| 118 |
<bsbObject version="2" type="BSBButton"> |
| 119 |
<objectName/> |
| 120 |
<x>128</x> |
| 121 |
<y>8</y> |
| 122 |
<width>100</width> |
| 123 |
<height>30</height> |
| 124 |
<uuid>{24979132-c53f-4414-ac6b-6b4f503ecfe8}</uuid> |
| 125 |
<visible>true</visible> |
| 126 |
<midichan>0</midichan> |
| 127 |
<midicc>0</midicc> |
| 128 |
<type>event</type> |
| 129 |
<pressedValue>1.00000000</pressedValue> |
| 130 |
<stringvalue/> |
| 131 |
<text>Re-Strike</text> |
| 132 |
<image>/</image> |
| 133 |
<eventLine>i 1 0 -1</eventLine> |
| 134 |
<latch>false</latch> |
| 135 |
<latched>false</latched> |
| 136 |
</bsbObject> |
| 137 |
<bsbObject version="2" type="BSBLabel"> |
| 138 |
<objectName/> |
| 139 |
<x>8</x> |
| 140 |
<y>74</y> |
| 141 |
<width>220</width> |
| 142 |
<height>30</height> |
| 143 |
<uuid>{640b50b7-7200-4f81-8394-89d9843ae939}</uuid> |
| 144 |
<visible>true</visible> |
| 145 |
<midichan>0</midichan> |
| 146 |
<midicc>0</midicc> |
| 147 |
<label>Stiffness (i-rate)</label> |
| 148 |
<alignment>left</alignment> |
| 149 |
<font>Liberation Sans</font> |
| 150 |
<fontsize>10</fontsize> |
| 151 |
<precision>3</precision> |
| 152 |
<color> |
| 153 |
<r>0</r> |
| 154 |
<g>0</g> |
| 155 |
<b>0</b> |
| 156 |
</color> |
| 157 |
<bgcolor mode="nobackground"> |
| 158 |
<r>255</r> |
| 159 |
<g>255</g> |
| 160 |
<b>255</b> |
| 161 |
</bgcolor> |
| 162 |
<bordermode>noborder</bordermode> |
| 163 |
<borderradius>1</borderradius> |
| 164 |
<borderwidth>1</borderwidth> |
| 165 |
</bsbObject> |
| 166 |
<bsbObject version="2" type="BSBHSlider"> |
| 167 |
<objectName>Stiffness</objectName> |
| 168 |
<x>8</x> |
| 169 |
<y>57</y> |
| 170 |
<width>500</width> |
| 171 |
<height>27</height> |
| 172 |
<uuid>{5585fa6f-0f63-4ac3-bf1b-809c2b1d9134}</uuid> |
| 173 |
<visible>true</visible> |
| 174 |
<midichan>0</midichan> |
| 175 |
<midicc>0</midicc> |
| 176 |
<minimum>0.00000000</minimum> |
| 177 |
<maximum>1000.00000000</maximum> |
| 178 |
<value>130.00000000</value> |
| 179 |
<mode>lin</mode> |
| 180 |
<mouseControl act="jump">continuous</mouseControl> |
| 181 |
<resolution>-1.00000000</resolution> |
| 182 |
<randomizable group="0">false</randomizable> |
| 183 |
</bsbObject> |
| 184 |
<bsbObject version="2" type="BSBDisplay"> |
| 185 |
<objectName>Stiffness</objectName> |
| 186 |
<x>448</x> |
| 187 |
<y>74</y> |
| 188 |
<width>60</width> |
| 189 |
<height>30</height> |
| 190 |
<uuid>{b731b52e-e14a-476a-a583-f3b2bd885539}</uuid> |
| 191 |
<visible>true</visible> |
| 192 |
<midichan>0</midichan> |
| 193 |
<midicc>0</midicc> |
| 194 |
<label>130.000</label> |
| 195 |
<alignment>right</alignment> |
| 196 |
<font>Liberation Sans</font> |
| 197 |
<fontsize>9</fontsize> |
| 198 |
<precision>3</precision> |
| 199 |
<color> |
| 200 |
<r>0</r> |
| 201 |
<g>0</g> |
| 202 |
<b>0</b> |
| 203 |
</color> |
| 204 |
<bgcolor mode="nobackground"> |
| 205 |
<r>255</r> |
| 206 |
<g>255</g> |
| 207 |
<b>255</b> |
| 208 |
</bgcolor> |
| 209 |
<bordermode>noborder</bordermode> |
| 210 |
<borderradius>1</borderradius> |
| 211 |
<borderwidth>1</borderwidth> |
| 212 |
</bsbObject> |
| 213 |
<bsbObject version="2" type="BSBLabel"> |
| 214 |
<objectName/> |
| 215 |
<x>8</x> |
| 216 |
<y>109</y> |
| 217 |
<width>220</width> |
| 218 |
<height>30</height> |
| 219 |
<uuid>{989564b0-b237-4c22-9d10-b76b7c7e4e4c}</uuid> |
| 220 |
<visible>true</visible> |
| 221 |
<midichan>0</midichan> |
| 222 |
<midicc>0</midicc> |
| 223 |
<label>30 dB Decay time (i-rate)</label> |
| 224 |
<alignment>left</alignment> |
| 225 |
<font>Liberation Sans</font> |
| 226 |
<fontsize>10</fontsize> |
| 227 |
<precision>3</precision> |
| 228 |
<color> |
| 229 |
<r>0</r> |
| 230 |
<g>0</g> |
| 231 |
<b>0</b> |
| 232 |
</color> |
| 233 |
<bgcolor mode="nobackground"> |
| 234 |
<r>255</r> |
| 235 |
<g>255</g> |
| 236 |
<b>255</b> |
| 237 |
</bgcolor> |
| 238 |
<bordermode>noborder</bordermode> |
| 239 |
<borderradius>1</borderradius> |
| 240 |
<borderwidth>1</borderwidth> |
| 241 |
</bsbObject> |
| 242 |
<bsbObject version="2" type="BSBHSlider"> |
| 243 |
<objectName>DT30</objectName> |
| 244 |
<x>8</x> |
| 245 |
<y>92</y> |
| 246 |
<width>500</width> |
| 247 |
<height>27</height> |
| 248 |
<uuid>{84cd664e-fb67-4dd4-aac3-adbcf2c81fe6}</uuid> |
| 249 |
<visible>true</visible> |
| 250 |
<midichan>0</midichan> |
| 251 |
<midicc>0</midicc> |
| 252 |
<minimum>0.10000000</minimum> |
| 253 |
<maximum>30.00000000</maximum> |
| 254 |
<value>20.00000000</value> |
| 255 |
<mode>lin</mode> |
| 256 |
<mouseControl act="jump">continuous</mouseControl> |
| 257 |
<resolution>-1.00000000</resolution> |
| 258 |
<randomizable group="0">false</randomizable> |
| 259 |
</bsbObject> |
| 260 |
<bsbObject version="2" type="BSBDisplay"> |
| 261 |
<objectName>DT30</objectName> |
| 262 |
<x>448</x> |
| 263 |
<y>109</y> |
| 264 |
<width>60</width> |
| 265 |
<height>30</height> |
| 266 |
<uuid>{ba8682a6-056f-4432-946b-4e3ee82c47a1}</uuid> |
| 267 |
<visible>true</visible> |
| 268 |
<midichan>0</midichan> |
| 269 |
<midicc>0</midicc> |
| 270 |
<label>20.000</label> |
| 271 |
<alignment>right</alignment> |
| 272 |
<font>Liberation Sans</font> |
| 273 |
<fontsize>9</fontsize> |
| 274 |
<precision>3</precision> |
| 275 |
<color> |
| 276 |
<r>0</r> |
| 277 |
<g>0</g> |
| 278 |
<b>0</b> |
| 279 |
</color> |
| 280 |
<bgcolor mode="nobackground"> |
| 281 |
<r>255</r> |
| 282 |
<g>255</g> |
| 283 |
<b>255</b> |
| 284 |
</bgcolor> |
| 285 |
<bordermode>noborder</bordermode> |
| 286 |
<borderradius>1</borderradius> |
| 287 |
<borderwidth>1</borderwidth> |
| 288 |
</bsbObject> |
| 289 |
<bsbObject version="2" type="BSBLabel"> |
| 290 |
<objectName/> |
| 291 |
<x>8</x> |
| 292 |
<y>143</y> |
| 293 |
<width>200</width> |
| 294 |
<height>30</height> |
| 295 |
<uuid>{76044785-79c4-4202-b7ce-07aee4868219}</uuid> |
| 296 |
<visible>true</visible> |
| 297 |
<midichan>0</midichan> |
| 298 |
<midicc>0</midicc> |
| 299 |
<label>High Frequency Loss (i-rate)</label> |
| 300 |
<alignment>left</alignment> |
| 301 |
<font>Liberation Sans</font> |
| 302 |
<fontsize>10</fontsize> |
| 303 |
<precision>3</precision> |
| 304 |
<color> |
| 305 |
<r>0</r> |
| 306 |
<g>0</g> |
| 307 |
<b>0</b> |
| 308 |
</color> |
| 309 |
<bgcolor mode="nobackground"> |
| 310 |
<r>255</r> |
| 311 |
<g>255</g> |
| 312 |
<b>255</b> |
| 313 |
</bgcolor> |
| 314 |
<bordermode>noborder</bordermode> |
| 315 |
<borderradius>1</borderradius> |
| 316 |
<borderwidth>1</borderwidth> |
| 317 |
</bsbObject> |
| 318 |
<bsbObject version="2" type="BSBHSlider"> |
| 319 |
<objectName>HFLoss</objectName> |
| 320 |
<x>8</x> |
| 321 |
<y>126</y> |
| 322 |
<width>500</width> |
| 323 |
<height>27</height> |
| 324 |
<uuid>{0f952e77-ff9b-4621-b1af-23252bb9c2a6}</uuid> |
| 325 |
<visible>true</visible> |
| 326 |
<midichan>0</midichan> |
| 327 |
<midicc>0</midicc> |
| 328 |
<minimum>0.00001000</minimum> |
| 329 |
<maximum>10.00000000</maximum> |
| 330 |
<value>0.07750000</value> |
| 331 |
<mode>lin</mode> |
| 332 |
<mouseControl act="jump">continuous</mouseControl> |
| 333 |
<resolution>-1.00000000</resolution> |
| 334 |
<randomizable group="0">false</randomizable> |
| 335 |
</bsbObject> |
| 336 |
<bsbObject version="2" type="BSBDisplay"> |
| 337 |
<objectName>HFLoss</objectName> |
| 338 |
<x>448</x> |
| 339 |
<y>143</y> |
| 340 |
<width>60</width> |
| 341 |
<height>30</height> |
| 342 |
<uuid>{7b92c0ca-2fe8-4b4f-9ed0-f618c1b3cb5c}</uuid> |
| 343 |
<visible>true</visible> |
| 344 |
<midichan>0</midichan> |
| 345 |
<midicc>0</midicc> |
| 346 |
<label>0.078</label> |
| 347 |
<alignment>right</alignment> |
| 348 |
<font>Liberation Sans</font> |
| 349 |
<fontsize>9</fontsize> |
| 350 |
<precision>3</precision> |
| 351 |
<color> |
| 352 |
<r>0</r> |
| 353 |
<g>0</g> |
| 354 |
<b>0</b> |
| 355 |
</color> |
| 356 |
<bgcolor mode="nobackground"> |
| 357 |
<r>255</r> |
| 358 |
<g>255</g> |
| 359 |
<b>255</b> |
| 360 |
</bgcolor> |
| 361 |
<bordermode>noborder</bordermode> |
| 362 |
<borderradius>1</borderradius> |
| 363 |
<borderwidth>1</borderwidth> |
| 364 |
</bsbObject> |
| 365 |
<bsbObject version="2" type="BSBLabel"> |
| 366 |
<objectName/> |
| 367 |
<x>8</x> |
| 368 |
<y>178</y> |
| 369 |
<width>220</width> |
| 370 |
<height>30</height> |
| 371 |
<uuid>{ca41878c-b561-486b-9cf9-d0da6b48448b}</uuid> |
| 372 |
<visible>true</visible> |
| 373 |
<midichan>0</midichan> |
| 374 |
<midicc>0</midicc> |
| 375 |
<label>Strike Position Along Bar (i-rate)</label> |
| 376 |
<alignment>left</alignment> |
| 377 |
<font>Liberation Sans</font> |
| 378 |
<fontsize>10</fontsize> |
| 379 |
<precision>3</precision> |
| 380 |
<color> |
| 381 |
<r>0</r> |
| 382 |
<g>0</g> |
| 383 |
<b>0</b> |
| 384 |
</color> |
| 385 |
<bgcolor mode="nobackground"> |
| 386 |
<r>255</r> |
| 387 |
<g>255</g> |
| 388 |
<b>255</b> |
| 389 |
</bgcolor> |
| 390 |
<bordermode>noborder</bordermode> |
| 391 |
<borderradius>1</borderradius> |
| 392 |
<borderwidth>1</borderwidth> |
| 393 |
</bsbObject> |
| 394 |
<bsbObject version="2" type="BSBHSlider"> |
| 395 |
<objectName>Pos</objectName> |
| 396 |
<x>8</x> |
| 397 |
<y>161</y> |
| 398 |
<width>500</width> |
| 399 |
<height>27</height> |
| 400 |
<uuid>{2800fb88-347a-402c-88ed-fc97af6a36be}</uuid> |
| 401 |
<visible>true</visible> |
| 402 |
<midichan>0</midichan> |
| 403 |
<midicc>0</midicc> |
| 404 |
<minimum>0.00400000</minimum> |
| 405 |
<maximum>0.99600000</maximum> |
| 406 |
<value>0.83700001</value> |
| 407 |
<mode>lin</mode> |
| 408 |
<mouseControl act="jump">continuous</mouseControl> |
| 409 |
<resolution>-1.00000000</resolution> |
| 410 |
<randomizable group="0">false</randomizable> |
| 411 |
</bsbObject> |
| 412 |
<bsbObject version="2" type="BSBDisplay"> |
| 413 |
<objectName>Pos</objectName> |
| 414 |
<x>448</x> |
| 415 |
<y>178</y> |
| 416 |
<width>60</width> |
| 417 |
<height>30</height> |
| 418 |
<uuid>{5d1ba94c-536a-4178-be6c-c0d9d2f75e3d}</uuid> |
| 419 |
<visible>true</visible> |
| 420 |
<midichan>0</midichan> |
| 421 |
<midicc>0</midicc> |
| 422 |
<label>0.837</label> |
| 423 |
<alignment>right</alignment> |
| 424 |
<font>Liberation Sans</font> |
| 425 |
<fontsize>9</fontsize> |
| 426 |
<precision>3</precision> |
| 427 |
<color> |
| 428 |
<r>0</r> |
| 429 |
<g>0</g> |
| 430 |
<b>0</b> |
| 431 |
</color> |
| 432 |
<bgcolor mode="nobackground"> |
| 433 |
<r>255</r> |
| 434 |
<g>255</g> |
| 435 |
<b>255</b> |
| 436 |
</bgcolor> |
| 437 |
<bordermode>noborder</bordermode> |
| 438 |
<borderradius>1</borderradius> |
| 439 |
<borderwidth>1</borderwidth> |
| 440 |
</bsbObject> |
| 441 |
<bsbObject version="2" type="BSBLabel"> |
| 442 |
<objectName/> |
| 443 |
<x>8</x> |
| 444 |
<y>213</y> |
| 445 |
<width>220</width> |
| 446 |
<height>30</height> |
| 447 |
<uuid>{cdd71125-b224-471a-9c41-9c05d8d28d0c}</uuid> |
| 448 |
<visible>true</visible> |
| 449 |
<midichan>0</midichan> |
| 450 |
<midicc>0</midicc> |
| 451 |
<label>Normalised Strike Velocity (i-rate)</label> |
| 452 |
<alignment>left</alignment> |
| 453 |
<font>Liberation Sans</font> |
| 454 |
<fontsize>10</fontsize> |
| 455 |
<precision>3</precision> |
| 456 |
<color> |
| 457 |
<r>0</r> |
| 458 |
<g>0</g> |
| 459 |
<b>0</b> |
| 460 |
</color> |
| 461 |
<bgcolor mode="nobackground"> |
| 462 |
<r>255</r> |
| 463 |
<g>255</g> |
| 464 |
<b>255</b> |
| 465 |
</bgcolor> |
| 466 |
<bordermode>noborder</bordermode> |
| 467 |
<borderradius>1</borderradius> |
| 468 |
<borderwidth>1</borderwidth> |
| 469 |
</bsbObject> |
| 470 |
<bsbObject version="2" type="BSBHSlider"> |
| 471 |
<objectName>Vel</objectName> |
| 472 |
<x>8</x> |
| 473 |
<y>196</y> |
| 474 |
<width>500</width> |
| 475 |
<height>27</height> |
| 476 |
<uuid>{7a83bb1f-f25d-47e0-bf2d-9c5c86e0756b}</uuid> |
| 477 |
<visible>true</visible> |
| 478 |
<midichan>0</midichan> |
| 479 |
<midicc>0</midicc> |
| 480 |
<minimum>0.00000000</minimum> |
| 481 |
<maximum>30000.00000000</maximum> |
| 482 |
<value>16000.00000000</value> |
| 483 |
<mode>lin</mode> |
| 484 |
<mouseControl act="jump">continuous</mouseControl> |
| 485 |
<resolution>-1.00000000</resolution> |
| 486 |
<randomizable group="0">false</randomizable> |
| 487 |
</bsbObject> |
| 488 |
<bsbObject version="2" type="BSBDisplay"> |
| 489 |
<objectName>Vel</objectName> |
| 490 |
<x>448</x> |
| 491 |
<y>213</y> |
| 492 |
<width>60</width> |
| 493 |
<height>30</height> |
| 494 |
<uuid>{7f8d2709-bf8c-46ab-83f0-36fc620b0d56}</uuid> |
| 495 |
<visible>true</visible> |
| 496 |
<midichan>0</midichan> |
| 497 |
<midicc>0</midicc> |
| 498 |
<label>16000.000</label> |
| 499 |
<alignment>right</alignment> |
| 500 |
<font>Liberation Sans</font> |
| 501 |
<fontsize>9</fontsize> |
| 502 |
<precision>3</precision> |
| 503 |
<color> |
| 504 |
<r>0</r> |
| 505 |
<g>0</g> |
| 506 |
<b>0</b> |
| 507 |
</color> |
| 508 |
<bgcolor mode="nobackground"> |
| 509 |
<r>255</r> |
| 510 |
<g>255</g> |
| 511 |
<b>255</b> |
| 512 |
</bgcolor> |
| 513 |
<bordermode>noborder</bordermode> |
| 514 |
<borderradius>1</borderradius> |
| 515 |
<borderwidth>1</borderwidth> |
| 516 |
</bsbObject> |
| 517 |
<bsbObject version="2" type="BSBLabel"> |
| 518 |
<objectName/> |
| 519 |
<x>8</x> |
| 520 |
<y>248</y> |
| 521 |
<width>220</width> |
| 522 |
<height>30</height> |
| 523 |
<uuid>{9519d46e-b6e4-422e-8653-ae5db12b1c04}</uuid> |
| 524 |
<visible>true</visible> |
| 525 |
<midichan>0</midichan> |
| 526 |
<midicc>0</midicc> |
| 527 |
<label>Scanning Frequency (i-rate)</label> |
| 528 |
<alignment>left</alignment> |
| 529 |
<font>Liberation Sans</font> |
| 530 |
<fontsize>10</fontsize> |
| 531 |
<precision>3</precision> |
| 532 |
<color> |
| 533 |
<r>0</r> |
| 534 |
<g>0</g> |
| 535 |
<b>0</b> |
| 536 |
</color> |
| 537 |
<bgcolor mode="nobackground"> |
| 538 |
<r>255</r> |
| 539 |
<g>255</g> |
| 540 |
<b>255</b> |
| 541 |
</bgcolor> |
| 542 |
<bordermode>noborder</bordermode> |
| 543 |
<borderradius>1</borderradius> |
| 544 |
<borderwidth>1</borderwidth> |
| 545 |
</bsbObject> |
| 546 |
<bsbObject version="2" type="BSBHSlider"> |
| 547 |
<objectName>Scan</objectName> |
| 548 |
<x>8</x> |
| 549 |
<y>231</y> |
| 550 |
<width>500</width> |
| 551 |
<height>27</height> |
| 552 |
<uuid>{0f9b569d-7f5b-4540-a415-6fd6762f6fe9}</uuid> |
| 553 |
<visible>true</visible> |
| 554 |
<midichan>0</midichan> |
| 555 |
<midicc>0</midicc> |
| 556 |
<minimum>0.00000000</minimum> |
| 557 |
<maximum>100.00000000</maximum> |
| 558 |
<value>0.77499998</value> |
| 559 |
<mode>lin</mode> |
| 560 |
<mouseControl act="jump">continuous</mouseControl> |
| 561 |
<resolution>-1.00000000</resolution> |
| 562 |
<randomizable group="0">false</randomizable> |
| 563 |
</bsbObject> |
| 564 |
<bsbObject version="2" type="BSBDisplay"> |
| 565 |
<objectName>Scan</objectName> |
| 566 |
<x>448</x> |
| 567 |
<y>248</y> |
| 568 |
<width>60</width> |
| 569 |
<height>30</height> |
| 570 |
<uuid>{df4e20a1-b9a6-46ca-bb02-911779f6b4b5}</uuid> |
| 571 |
<visible>true</visible> |
| 572 |
<midichan>0</midichan> |
| 573 |
<midicc>0</midicc> |
| 574 |
<label>0.775</label> |
| 575 |
<alignment>right</alignment> |
| 576 |
<font>Liberation Sans</font> |
| 577 |
<fontsize>9</fontsize> |
| 578 |
<precision>3</precision> |
| 579 |
<color> |
| 580 |
<r>0</r> |
| 581 |
<g>0</g> |
| 582 |
<b>0</b> |
| 583 |
</color> |
| 584 |
<bgcolor mode="nobackground"> |
| 585 |
<r>255</r> |
| 586 |
<g>255</g> |
| 587 |
<b>255</b> |
| 588 |
</bgcolor> |
| 589 |
<bordermode>noborder</bordermode> |
| 590 |
<borderradius>1</borderradius> |
| 591 |
<borderwidth>1</borderwidth> |
| 592 |
</bsbObject> |
| 593 |
<bsbObject version="2" type="BSBLabel"> |
| 594 |
<objectName/> |
| 595 |
<x>8</x> |
| 596 |
<y>282</y> |
| 597 |
<width>220</width> |
| 598 |
<height>30</height> |
| 599 |
<uuid>{1089c148-0c3a-497a-a8d5-a62e3d62ff54}</uuid> |
| 600 |
<visible>true</visible> |
| 601 |
<midichan>0</midichan> |
| 602 |
<midicc>0</midicc> |
| 603 |
<label>Width of Strike (i-rate)</label> |
| 604 |
<alignment>left</alignment> |
| 605 |
<font>Liberation Sans</font> |
| 606 |
<fontsize>10</fontsize> |
| 607 |
<precision>3</precision> |
| 608 |
<color> |
| 609 |
<r>0</r> |
| 610 |
<g>0</g> |
| 611 |
<b>0</b> |
| 612 |
</color> |
| 613 |
<bgcolor mode="nobackground"> |
| 614 |
<r>255</r> |
| 615 |
<g>255</g> |
| 616 |
<b>255</b> |
| 617 |
</bgcolor> |
| 618 |
<bordermode>noborder</bordermode> |
| 619 |
<borderradius>1</borderradius> |
| 620 |
<borderwidth>1</borderwidth> |
| 621 |
</bsbObject> |
| 622 |
<bsbObject version="2" type="BSBHSlider"> |
| 623 |
<objectName>Width</objectName> |
| 624 |
<x>8</x> |
| 625 |
<y>265</y> |
| 626 |
<width>500</width> |
| 627 |
<height>27</height> |
| 628 |
<uuid>{cb90b71f-234b-4c3e-875b-ce04075ae3ee}</uuid> |
| 629 |
<visible>true</visible> |
| 630 |
<midichan>0</midichan> |
| 631 |
<midicc>0</midicc> |
| 632 |
<minimum>0.00010000</minimum> |
| 633 |
<maximum>1.00000000</maximum> |
| 634 |
<value>0.01560000</value> |
| 635 |
<mode>lin</mode> |
| 636 |
<mouseControl act="jump">continuous</mouseControl> |
| 637 |
<resolution>-1.00000000</resolution> |
| 638 |
<randomizable group="0">false</randomizable> |
| 639 |
</bsbObject> |
| 640 |
<bsbObject version="2" type="BSBDisplay"> |
| 641 |
<objectName>Width</objectName> |
| 642 |
<x>448</x> |
| 643 |
<y>282</y> |
| 644 |
<width>60</width> |
| 645 |
<height>30</height> |
| 646 |
<uuid>{54d08872-94cf-49c9-b64f-605fddc65867}</uuid> |
| 647 |
<visible>true</visible> |
| 648 |
<midichan>0</midichan> |
| 649 |
<midicc>0</midicc> |
| 650 |
<label>0.016</label> |
| 651 |
<alignment>right</alignment> |
| 652 |
<font>Liberation Sans</font> |
| 653 |
<fontsize>9</fontsize> |
| 654 |
<precision>3</precision> |
| 655 |
<color> |
| 656 |
<r>0</r> |
| 657 |
<g>0</g> |
| 658 |
<b>0</b> |
| 659 |
</color> |
| 660 |
<bgcolor mode="nobackground"> |
| 661 |
<r>255</r> |
| 662 |
<g>255</g> |
| 663 |
<b>255</b> |
| 664 |
</bgcolor> |
| 665 |
<bordermode>noborder</bordermode> |
| 666 |
<borderradius>1</borderradius> |
| 667 |
<borderwidth>1</borderwidth> |
| 668 |
</bsbObject> |
| 669 |
<bsbObject version="2" type="BSBLabel"> |
| 670 |
<objectName/> |
| 671 |
<x>8</x> |
| 672 |
<y>317</y> |
| 673 |
<width>220</width> |
| 674 |
<height>30</height> |
| 675 |
<uuid>{8c81bb50-0c7b-4902-9178-d05f83831ade}</uuid> |
| 676 |
<visible>true</visible> |
| 677 |
<midichan>0</midichan> |
| 678 |
<midicc>0</midicc> |
| 679 |
<label>Output Gain</label> |
| 680 |
<alignment>left</alignment> |
| 681 |
<font>Liberation Sans</font> |
| 682 |
<fontsize>10</fontsize> |
| 683 |
<precision>3</precision> |
| 684 |
<color> |
| 685 |
<r>0</r> |
| 686 |
<g>0</g> |
| 687 |
<b>0</b> |
| 688 |
</color> |
| 689 |
<bgcolor mode="nobackground"> |
| 690 |
<r>255</r> |
| 691 |
<g>255</g> |
| 692 |
<b>255</b> |
| 693 |
</bgcolor> |
| 694 |
<bordermode>noborder</bordermode> |
| 695 |
<borderradius>1</borderradius> |
| 696 |
<borderwidth>1</borderwidth> |
| 697 |
</bsbObject> |
| 698 |
<bsbObject version="2" type="BSBHSlider"> |
| 699 |
<objectName>OutGain</objectName> |
| 700 |
<x>8</x> |
| 701 |
<y>300</y> |
| 702 |
<width>500</width> |
| 703 |
<height>27</height> |
| 704 |
<uuid>{6ef7cd84-2fc3-4cb0-b69d-4d037f7406af}</uuid> |
| 705 |
<visible>true</visible> |
| 706 |
<midichan>0</midichan> |
| 707 |
<midicc>0</midicc> |
| 708 |
<minimum>0.00000000</minimum> |
| 709 |
<maximum>5.00000000</maximum> |
| 710 |
<value>0.60000002</value> |
| 711 |
<mode>lin</mode> |
| 712 |
<mouseControl act="jump">continuous</mouseControl> |
| 713 |
<resolution>-1.00000000</resolution> |
| 714 |
<randomizable group="0">false</randomizable> |
| 715 |
</bsbObject> |
| 716 |
<bsbObject version="2" type="BSBDisplay"> |
| 717 |
<objectName>OutGain</objectName> |
| 718 |
<x>448</x> |
| 719 |
<y>317</y> |
| 720 |
<width>60</width> |
| 721 |
<height>30</height> |
| 722 |
<uuid>{9481489d-99dd-43af-8282-21a31584dd71}</uuid> |
| 723 |
<visible>true</visible> |
| 724 |
<midichan>0</midichan> |
| 725 |
<midicc>0</midicc> |
| 726 |
<label>0.600</label> |
| 727 |
<alignment>right</alignment> |
| 728 |
<font>Liberation Sans</font> |
| 729 |
<fontsize>9</fontsize> |
| 730 |
<precision>3</precision> |
| 731 |
<color> |
| 732 |
<r>0</r> |
| 733 |
<g>0</g> |
| 734 |
<b>0</b> |
| 735 |
</color> |
| 736 |
<bgcolor mode="nobackground"> |
| 737 |
<r>255</r> |
| 738 |
<g>255</g> |
| 739 |
<b>255</b> |
| 740 |
</bgcolor> |
| 741 |
<bordermode>noborder</bordermode> |
| 742 |
<borderradius>1</borderradius> |
| 743 |
<borderwidth>1</borderwidth> |
| 744 |
</bsbObject> |
| 745 |
<bsbObject version="2" type="BSBLabel"> |
| 746 |
<objectName/> |
| 747 |
<x>515</x> |
| 748 |
<y>2</y> |
| 749 |
<width>440</width> |
| 750 |
<height>500</height> |
| 751 |
<uuid>{74928ed2-b701-4668-9a11-74763d317e9b}</uuid> |
| 752 |
<visible>true</visible> |
| 753 |
<midichan>0</midichan> |
| 754 |
<midicc>0</midicc> |
| 755 |
<label>barmodel</label> |
| 756 |
<alignment>center</alignment> |
| 757 |
<font>Liberation Sans</font> |
| 758 |
<fontsize>18</fontsize> |
| 759 |
<precision>3</precision> |
| 760 |
<color> |
| 761 |
<r>0</r> |
| 762 |
<g>0</g> |
| 763 |
<b>0</b> |
| 764 |
</color> |
| 765 |
<bgcolor mode="background"> |
| 766 |
<r>147</r> |
| 767 |
<g>154</g> |
| 768 |
<b>255</b> |
| 769 |
</bgcolor> |
| 770 |
<bordermode>border</bordermode> |
| 771 |
<borderradius>5</borderradius> |
| 772 |
<borderwidth>2</borderwidth> |
| 773 |
</bsbObject> |
| 774 |
<bsbObject version="2" type="BSBLabel"> |
| 775 |
<objectName/> |
| 776 |
<x>517</x> |
| 777 |
<y>25</y> |
| 778 |
<width>436</width> |
| 779 |
<height>473</height> |
| 780 |
<uuid>{d4bdb5ce-87d8-4c8c-9c64-40ec2eed6f5a}</uuid> |
| 781 |
<visible>true</visible> |
| 782 |
<midichan>0</midichan> |
| 783 |
<midicc>0</midicc> |
| 784 |
<label>----------------------------------------------------------------------------------------------------------- |
| 785 |
'barmodel' is an implementation of physical model of a struck metal bar. It seems to be a predecessor of the 'prepiano' opcode and shares several input parameters. Boundary conditions define how the bar behaves at either extremity. The options here are clamped (as in a kalimba |
| 786 |
tangent), pivoting (as in a vibraphone bar), or free (as in the lower end of a tubular bell). Setting both boundaries as 'free' will cause the opcode to 'explode' - protect your ears and your speakers! There is no specific control of the frequency of the tone produced, instead it is consequnce to the attributes chosen for 'Stiffness' (of the material of which the bar has been constructed) and the boundary conditions. '30dB Decay Time' and 'High Frequency Loss' impact upon the duration of the sound produced, 'High Frequency Loss' defining how much more quickly higher frequencies decay than lower ones. 'Strike Position Along Bar' defines where the bar is struck along its length. Effectively this controls the strengths of the various partials that make up the tone. If 'Strike Width' is low there may be a limited number of strike positions available that will produce sound. 'Strike Velocity' has an impact upon the brightness of the tone produced. 'Scanning Frequency' controls the frequency of oscillation about a position from which the sound is scanned. This oscillation results in variations in tone and amplitude. This situation could also be thought of as the bar swinging as in the swinging of a tubular bell. If this parameter is set to zero scanning oscillation is prevented. 'Width of Strike' has an impact upon strength and shrillness of the tone produced. Low values here will limit the values for 'Stiffness' and 'Strike Location' that will produce sound.</label> |
| 787 |
<alignment>left</alignment> |
| 788 |
<font>Liberation Sans</font> |
| 789 |
<fontsize>14</fontsize> |
| 790 |
<precision>3</precision> |
| 791 |
<color> |
| 792 |
<r>0</r> |
| 793 |
<g>0</g> |
| 794 |
<b>0</b> |
| 795 |
</color> |
| 796 |
<bgcolor mode="nobackground"> |
| 797 |
<r>255</r> |
| 798 |
<g>255</g> |
| 799 |
<b>255</b> |
| 800 |
</bgcolor> |
| 801 |
<bordermode>noborder</bordermode> |
| 802 |
<borderradius>1</borderradius> |
| 803 |
<borderwidth>1</borderwidth> |
| 804 |
</bsbObject> |
| 805 |
<bsbObject version="2" type="BSBButton"> |
| 806 |
<objectName/> |
| 807 |
<x>8</x> |
| 808 |
<y>8</y> |
| 809 |
<width>120</width> |
| 810 |
<height>30</height> |
| 811 |
<uuid>{e40c02c1-81d8-4459-938d-9e77ae8e081e}</uuid> |
| 812 |
<visible>true</visible> |
| 813 |
<midichan>0</midichan> |
| 814 |
<midicc>0</midicc> |
| 815 |
<type>event</type> |
| 816 |
<pressedValue>1.00000000</pressedValue> |
| 817 |
<stringvalue/> |
| 818 |
<text> Note On / Off</text> |
| 819 |
<image>/</image> |
| 820 |
<eventLine>i 1 0 -1</eventLine> |
| 821 |
<latch>true</latch> |
| 822 |
<latched>false</latched> |
| 823 |
</bsbObject> |
| 824 |
<bsbObject version="2" type="BSBLabel"> |
| 825 |
<objectName/> |
| 826 |
<x>0</x> |
| 827 |
<y>353</y> |
| 828 |
<width>140</width> |
| 829 |
<height>30</height> |
| 830 |
<uuid>{06b97e22-13e9-494f-b2a3-ff8e25b47c7b}</uuid> |
| 831 |
<visible>true</visible> |
| 832 |
<midichan>0</midichan> |
| 833 |
<midicc>0</midicc> |
| 834 |
<label>Boundary Condition L</label> |
| 835 |
<alignment>right</alignment> |
| 836 |
<font>Liberation Sans</font> |
| 837 |
<fontsize>10</fontsize> |
| 838 |
<precision>3</precision> |
| 839 |
<color> |
| 840 |
<r>0</r> |
| 841 |
<g>0</g> |
| 842 |
<b>0</b> |
| 843 |
</color> |
| 844 |
<bgcolor mode="nobackground"> |
| 845 |
<r>255</r> |
| 846 |
<g>255</g> |
| 847 |
<b>255</b> |
| 848 |
</bgcolor> |
| 849 |
<bordermode>noborder</bordermode> |
| 850 |
<borderradius>1</borderradius> |
| 851 |
<borderwidth>1</borderwidth> |
| 852 |
</bsbObject> |
| 853 |
<bsbObject version="2" type="BSBLabel"> |
| 854 |
<objectName/> |
| 855 |
<x>236</x> |
| 856 |
<y>353</y> |
| 857 |
<width>140</width> |
| 858 |
<height>30</height> |
| 859 |
<uuid>{7c0236bb-4cdd-464c-966e-170c96d6ebd3}</uuid> |
| 860 |
<visible>true</visible> |
| 861 |
<midichan>0</midichan> |
| 862 |
<midicc>0</midicc> |
| 863 |
<label>Boundary Condition R</label> |
| 864 |
<alignment>right</alignment> |
| 865 |
<font>Liberation Sans</font> |
| 866 |
<fontsize>10</fontsize> |
| 867 |
<precision>3</precision> |
| 868 |
<color> |
| 869 |
<r>0</r> |
| 870 |
<g>0</g> |
| 871 |
<b>0</b> |
| 872 |
</color> |
| 873 |
<bgcolor mode="nobackground"> |
| 874 |
<r>255</r> |
| 875 |
<g>255</g> |
| 876 |
<b>255</b> |
| 877 |
</bgcolor> |
| 878 |
<bordermode>noborder</bordermode> |
| 879 |
<borderradius>1</borderradius> |
| 880 |
<borderwidth>1</borderwidth> |
| 881 |
</bsbObject> |
| 882 |
<bsbObject version="2" type="BSBDropdown"> |
| 883 |
<objectName>bcL</objectName> |
| 884 |
<x>140</x> |
| 885 |
<y>353</y> |
| 886 |
<width>100</width> |
| 887 |
<height>30</height> |
| 888 |
<uuid>{15f676c6-5dd8-4142-a92f-e203d44762d1}</uuid> |
| 889 |
<visible>true</visible> |
| 890 |
<midichan>0</midichan> |
| 891 |
<midicc>0</midicc> |
| 892 |
<bsbDropdownItemList> |
| 893 |
<bsbDropdownItem> |
| 894 |
<name>Clamped</name> |
| 895 |
<value>0</value> |
| 896 |
<stringvalue/> |
| 897 |
</bsbDropdownItem> |
| 898 |
<bsbDropdownItem> |
| 899 |
<name>Pivoting</name> |
| 900 |
<value>1</value> |
| 901 |
<stringvalue/> |
| 902 |
</bsbDropdownItem> |
| 903 |
<bsbDropdownItem> |
| 904 |
<name>Free</name> |
| 905 |
<value>2</value> |
| 906 |
<stringvalue/> |
| 907 |
</bsbDropdownItem> |
| 908 |
</bsbDropdownItemList> |
| 909 |
<selectedIndex>1</selectedIndex> |
| 910 |
<randomizable group="0">false</randomizable> |
| 911 |
</bsbObject> |
| 912 |
<bsbObject version="2" type="BSBDropdown"> |
| 913 |
<objectName>bcR</objectName> |
| 914 |
<x>376</x> |
| 915 |
<y>353</y> |
| 916 |
<width>100</width> |
| 917 |
<height>30</height> |
| 918 |
<uuid>{001204b7-bbc6-4ce7-8211-a1c172ef0c29}</uuid> |
| 919 |
<visible>true</visible> |
| 920 |
<midichan>0</midichan> |
| 921 |
<midicc>0</midicc> |
| 922 |
<bsbDropdownItemList> |
| 923 |
<bsbDropdownItem> |
| 924 |
<name>Clamped</name> |
| 925 |
<value>0</value> |
| 926 |
<stringvalue/> |
| 927 |
</bsbDropdownItem> |
| 928 |
<bsbDropdownItem> |
| 929 |
<name>Pivoting</name> |
| 930 |
<value>1</value> |
| 931 |
<stringvalue/> |
| 932 |
</bsbDropdownItem> |
| 933 |
<bsbDropdownItem> |
| 934 |
<name>Free</name> |
| 935 |
<value>2</value> |
| 936 |
<stringvalue/> |
| 937 |
</bsbDropdownItem> |
| 938 |
</bsbDropdownItemList> |
| 939 |
<selectedIndex>1</selectedIndex> |
| 940 |
<randomizable group="0">false</randomizable> |
| 941 |
</bsbObject> |
| 942 |
<bsbObject version="2" type="BSBLabel"> |
| 943 |
<objectName/> |
| 944 |
<x>20</x> |
| 945 |
<y>392</y> |
| 946 |
<width>472</width> |
| 947 |
<height>100</height> |
| 948 |
<uuid>{a21b6db2-5090-4663-b2de-b6685e7f2d95}</uuid> |
| 949 |
<visible>true</visible> |
| 950 |
<midichan>0</midichan> |
| 951 |
<midicc>0</midicc> |
| 952 |
<label>Physical model of a vibrating metal bar. |
| 953 |
Algorithm written by Stefan Bilbao. |
| 954 |
Opcode ported for Csound by John ffitch. |
| 955 |
Example written by Iain McCurdy.</label> |
| 956 |
<alignment>center</alignment> |
| 957 |
<font>Liberation Sans</font> |
| 958 |
<fontsize>18</fontsize> |
| 959 |
<precision>3</precision> |
| 960 |
<color> |
| 961 |
<r>0</r> |
| 962 |
<g>0</g> |
| 963 |
<b>0</b> |
| 964 |
</color> |
| 965 |
<bgcolor mode="nobackground"> |
| 966 |
<r>255</r> |
| 967 |
<g>255</g> |
| 968 |
<b>255</b> |
| 969 |
</bgcolor> |
| 970 |
<bordermode>border</bordermode> |
| 971 |
<borderradius>10</borderradius> |
| 972 |
<borderwidth>2</borderwidth> |
| 973 |
</bsbObject> |
| 974 |
</bsbPanel> |
| 975 |
<bsbPresets> |
| 976 |
</bsbPresets> |
| 977 |
<EventPanel name="" tempo="60.00000000" loop="8.00000000" x="913" y="162" width="655" height="346" visible="true" loopStart="0" loopEnd="0"> </EventPanel> |