| 1 |
;Written by Iain McCurdy, 2006 |
| 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 |
;BOWED BAR PHYSICAL MODEL - RATHER UNSTABLE |
| 6 |
|
| 7 |
;Notes on modifications from original csd: |
| 8 |
; Add tables for exp slider |
| 9 |
; INIT instrument added |
| 10 |
; Removed subinstr opcode in midi instrument 1 |
| 11 |
|
| 12 |
|
| 13 |
;my flags on Ubuntu: -odac -b1024 -B2048 -+rtaudio=alsa -+rtmidi=alsa -Ma -m0 |
| 14 |
<CsoundSynthesizer> |
| 15 |
<CsOptions> |
| 16 |
|
| 17 |
</CsOptions> |
| 18 |
<CsInstruments> |
| 19 |
sr = 44100 ;SAMPLE RATE |
| 20 |
ksmps = 100 ;NUMBER OF AUDIO SAMPLES IN EACH CONTROL CYCLE |
| 21 |
nchnls = 2 ;NUMBER OF CHANNELS (2=STEREO) |
| 22 |
0dbfs = 1 ;MAXIMUM AMPLITUDE REGARDLESS OF BIT DEPTH |
| 23 |
|
| 24 |
|
| 25 |
givibfn ftgen 0,0,4096,10,1 ;A SINE WAVE |
| 26 |
giExp1 ftgen 0, 0, 129, -25, 0, 20.0, 128, 20000.0 ;TABLE FOR EXP SLIDER |
| 27 |
|
| 28 |
|
| 29 |
instr 2 ;GUI |
| 30 |
ktrig metro 10 |
| 31 |
if (ktrig == 1) then |
| 32 |
gkamp invalue "Amp" |
| 33 |
kfreq invalue "Freq" |
| 34 |
gkfreq tablei kfreq, giExp1, 1 |
| 35 |
outvalue "Freq_Value", gkfreq |
| 36 |
gkpos invalue "BowPos" |
| 37 |
gkbowpres invalue "BowPress" |
| 38 |
gkgain invalue "GainFilter" |
| 39 |
gkconst invalue "Integ" |
| 40 |
gkbowpos invalue "BowPosVel" |
| 41 |
gklow invalue "LowFreq" |
| 42 |
gktvel invalue "BowVel" |
| 43 |
endif |
| 44 |
endin |
| 45 |
|
| 46 |
instr 1 ;MIDI INPUT INSTRUMENT |
| 47 |
icps cpsmidi ;READ CYCLES PER SECOND VALUE FROM MIDI INPUT |
| 48 |
iamp ampmidi 1 ;READ IN A NOTE VELOCITY VALUE FROM THE MIDI INPUT |
| 49 |
|
| 50 |
kSwitch changed gkconst, gktvel, gkbowpos, gklow |
| 51 |
if kSwitch=1 then ;IF I-RATE VARIABLE CHANGE TRIGGER IS '1'... |
| 52 |
reinit UPDATE ;BEGIN A REINITIALISATION PASS FROM LABEL 'UPDATE' |
| 53 |
endif |
| 54 |
UPDATE: |
| 55 |
abowedbar wgbowedbar iamp, icps, gkpos, gkbowpres, gkgain, i(gkconst), i(gktvel), i(gkbowpos), i(gklow) |
| 56 |
rireturn ;RETURN FROM REINITIALISATION PASS TO PERFORMANCE TIME PASSES |
| 57 |
aenv linsegr 1, 0.05, 0 ;ANTI-CLICK ENVELOPE |
| 58 |
outs abowedbar * aenv, abowedbar * aenv |
| 59 |
endin |
| 60 |
|
| 61 |
instr 3 ;wgbowedbar INSTRUMENT |
| 62 |
kSwitch changed gkconst, gktvel, gkbowpos, gklow |
| 63 |
if kSwitch=1 then ;IF I-RATE VARIABLE CHANGE TRIGGER IS '1'... |
| 64 |
reinit UPDATE ;BEGIN A REINITIALISATION PASS FROM LABEL 'UPDATE' |
| 65 |
endif |
| 66 |
UPDATE: |
| 67 |
abowedbar wgbowedbar gkamp, gkfreq, gkpos, gkbowpres, gkgain, i(gkconst), i(gktvel), i(gkbowpos), i(gklow) |
| 68 |
rireturn ;RETURN FROM REINITIALISATION PASS TO PERFORMANCE TIME PASSES |
| 69 |
aenv linsegr 1, 0.05, 0 ;ANTI-CLICK ENVELOPE |
| 70 |
outs abowedbar * aenv, abowedbar * aenv |
| 71 |
endin |
| 72 |
|
| 73 |
instr 4 ;INIT |
| 74 |
outvalue "Amp" , 0.3 |
| 75 |
outvalue "Freq" , 0.4337 |
| 76 |
outvalue "BowPos" , .7 |
| 77 |
outvalue "BowPress" , 3 |
| 78 |
outvalue "GainFilter" , .95 |
| 79 |
outvalue "Integ" , 0.2 |
| 80 |
outvalue "BowVel" , 0 |
| 81 |
outvalue "BowPosVel" , 0 |
| 82 |
outvalue "LowFreq" , 0 |
| 83 |
endin |
| 84 |
</CsInstruments> |
| 85 |
<CsScore> |
| 86 |
;INSTR | START | DURATION |
| 87 |
i 2 0 3600 ;GUI |
| 88 |
i 4 0 0.1 ;INIT |
| 89 |
</CsScore> |
| 90 |
</CsoundSynthesizer> |
| 91 |
<bsbPanel> |
| 92 |
<label>Widgets</label> |
| 93 |
<objectName/> |
| 94 |
<x>879</x> |
| 95 |
<y>220</y> |
| 96 |
<width>800</width> |
| 97 |
<height>406</height> |
| 98 |
<visible>true</visible> |
| 99 |
<uuid/> |
| 100 |
<bgcolor mode="background"> |
| 101 |
<r>241</r> |
| 102 |
<g>226</g> |
| 103 |
<b>185</b> |
| 104 |
</bgcolor> |
| 105 |
<bsbObject version="2" type="BSBLabel"> |
| 106 |
<objectName/> |
| 107 |
<x>2</x> |
| 108 |
<y>2</y> |
| 109 |
<width>511</width> |
| 110 |
<height>400</height> |
| 111 |
<uuid>{aa607456-d368-4d59-8497-d16d608404c3}</uuid> |
| 112 |
<visible>true</visible> |
| 113 |
<midichan>0</midichan> |
| 114 |
<midicc>0</midicc> |
| 115 |
<label>wgbowedbar</label> |
| 116 |
<alignment>center</alignment> |
| 117 |
<font>Liberation Sans</font> |
| 118 |
<fontsize>18</fontsize> |
| 119 |
<precision>3</precision> |
| 120 |
<color> |
| 121 |
<r>0</r> |
| 122 |
<g>0</g> |
| 123 |
<b>0</b> |
| 124 |
</color> |
| 125 |
<bgcolor mode="background"> |
| 126 |
<r>147</r> |
| 127 |
<g>154</g> |
| 128 |
<b>255</b> |
| 129 |
</bgcolor> |
| 130 |
<bordermode>border</bordermode> |
| 131 |
<borderradius>5</borderradius> |
| 132 |
<borderwidth>2</borderwidth> |
| 133 |
</bsbObject> |
| 134 |
<bsbObject version="2" type="BSBLabel"> |
| 135 |
<objectName/> |
| 136 |
<x>8</x> |
| 137 |
<y>71</y> |
| 138 |
<width>220</width> |
| 139 |
<height>30</height> |
| 140 |
<uuid>{640b50b7-7200-4f81-8394-89d9843ae939}</uuid> |
| 141 |
<visible>true</visible> |
| 142 |
<midichan>0</midichan> |
| 143 |
<midicc>0</midicc> |
| 144 |
<label>Amplitude</label> |
| 145 |
<alignment>left</alignment> |
| 146 |
<font>Liberation Sans</font> |
| 147 |
<fontsize>10</fontsize> |
| 148 |
<precision>3</precision> |
| 149 |
<color> |
| 150 |
<r>0</r> |
| 151 |
<g>0</g> |
| 152 |
<b>0</b> |
| 153 |
</color> |
| 154 |
<bgcolor mode="nobackground"> |
| 155 |
<r>255</r> |
| 156 |
<g>255</g> |
| 157 |
<b>255</b> |
| 158 |
</bgcolor> |
| 159 |
<bordermode>noborder</bordermode> |
| 160 |
<borderradius>1</borderradius> |
| 161 |
<borderwidth>1</borderwidth> |
| 162 |
</bsbObject> |
| 163 |
<bsbObject version="2" type="BSBHSlider"> |
| 164 |
<objectName>Amp</objectName> |
| 165 |
<x>8</x> |
| 166 |
<y>54</y> |
| 167 |
<width>500</width> |
| 168 |
<height>27</height> |
| 169 |
<uuid>{5585fa6f-0f63-4ac3-bf1b-809c2b1d9134}</uuid> |
| 170 |
<visible>true</visible> |
| 171 |
<midichan>0</midichan> |
| 172 |
<midicc>0</midicc> |
| 173 |
<minimum>0.00000000</minimum> |
| 174 |
<maximum>1.00000000</maximum> |
| 175 |
<value>0.30000001</value> |
| 176 |
<mode>lin</mode> |
| 177 |
<mouseControl act="jump">continuous</mouseControl> |
| 178 |
<resolution>-1.00000000</resolution> |
| 179 |
<randomizable group="0">false</randomizable> |
| 180 |
</bsbObject> |
| 181 |
<bsbObject version="2" type="BSBDisplay"> |
| 182 |
<objectName>Amp</objectName> |
| 183 |
<x>448</x> |
| 184 |
<y>71</y> |
| 185 |
<width>60</width> |
| 186 |
<height>30</height> |
| 187 |
<uuid>{b731b52e-e14a-476a-a583-f3b2bd885539}</uuid> |
| 188 |
<visible>true</visible> |
| 189 |
<midichan>0</midichan> |
| 190 |
<midicc>0</midicc> |
| 191 |
<label>0.300</label> |
| 192 |
<alignment>right</alignment> |
| 193 |
<font>Liberation Sans</font> |
| 194 |
<fontsize>9</fontsize> |
| 195 |
<precision>3</precision> |
| 196 |
<color> |
| 197 |
<r>0</r> |
| 198 |
<g>0</g> |
| 199 |
<b>0</b> |
| 200 |
</color> |
| 201 |
<bgcolor mode="nobackground"> |
| 202 |
<r>255</r> |
| 203 |
<g>255</g> |
| 204 |
<b>255</b> |
| 205 |
</bgcolor> |
| 206 |
<bordermode>noborder</bordermode> |
| 207 |
<borderradius>1</borderradius> |
| 208 |
<borderwidth>1</borderwidth> |
| 209 |
</bsbObject> |
| 210 |
<bsbObject version="2" type="BSBLabel"> |
| 211 |
<objectName/> |
| 212 |
<x>8</x> |
| 213 |
<y>106</y> |
| 214 |
<width>220</width> |
| 215 |
<height>30</height> |
| 216 |
<uuid>{989564b0-b237-4c22-9d10-b76b7c7e4e4c}</uuid> |
| 217 |
<visible>true</visible> |
| 218 |
<midichan>0</midichan> |
| 219 |
<midicc>0</midicc> |
| 220 |
<label>Frequency</label> |
| 221 |
<alignment>left</alignment> |
| 222 |
<font>Liberation Sans</font> |
| 223 |
<fontsize>10</fontsize> |
| 224 |
<precision>3</precision> |
| 225 |
<color> |
| 226 |
<r>0</r> |
| 227 |
<g>0</g> |
| 228 |
<b>0</b> |
| 229 |
</color> |
| 230 |
<bgcolor mode="nobackground"> |
| 231 |
<r>255</r> |
| 232 |
<g>255</g> |
| 233 |
<b>255</b> |
| 234 |
</bgcolor> |
| 235 |
<bordermode>noborder</bordermode> |
| 236 |
<borderradius>1</borderradius> |
| 237 |
<borderwidth>1</borderwidth> |
| 238 |
</bsbObject> |
| 239 |
<bsbObject version="2" type="BSBHSlider"> |
| 240 |
<objectName>Freq</objectName> |
| 241 |
<x>8</x> |
| 242 |
<y>89</y> |
| 243 |
<width>500</width> |
| 244 |
<height>27</height> |
| 245 |
<uuid>{84cd664e-fb67-4dd4-aac3-adbcf2c81fe6}</uuid> |
| 246 |
<visible>true</visible> |
| 247 |
<midichan>0</midichan> |
| 248 |
<midicc>0</midicc> |
| 249 |
<minimum>0.00000000</minimum> |
| 250 |
<maximum>1.00000000</maximum> |
| 251 |
<value>0.43370000</value> |
| 252 |
<mode>lin</mode> |
| 253 |
<mouseControl act="jump">continuous</mouseControl> |
| 254 |
<resolution>-1.00000000</resolution> |
| 255 |
<randomizable group="0">false</randomizable> |
| 256 |
</bsbObject> |
| 257 |
<bsbObject version="2" type="BSBDisplay"> |
| 258 |
<objectName>Freq_Value</objectName> |
| 259 |
<x>448</x> |
| 260 |
<y>106</y> |
| 261 |
<width>60</width> |
| 262 |
<height>30</height> |
| 263 |
<uuid>{ba8682a6-056f-4432-946b-4e3ee82c47a1}</uuid> |
| 264 |
<visible>true</visible> |
| 265 |
<midichan>0</midichan> |
| 266 |
<midicc>0</midicc> |
| 267 |
<label>400.210</label> |
| 268 |
<alignment>right</alignment> |
| 269 |
<font>Liberation Sans</font> |
| 270 |
<fontsize>9</fontsize> |
| 271 |
<precision>3</precision> |
| 272 |
<color> |
| 273 |
<r>0</r> |
| 274 |
<g>0</g> |
| 275 |
<b>0</b> |
| 276 |
</color> |
| 277 |
<bgcolor mode="nobackground"> |
| 278 |
<r>255</r> |
| 279 |
<g>255</g> |
| 280 |
<b>255</b> |
| 281 |
</bgcolor> |
| 282 |
<bordermode>noborder</bordermode> |
| 283 |
<borderradius>1</borderradius> |
| 284 |
<borderwidth>1</borderwidth> |
| 285 |
</bsbObject> |
| 286 |
<bsbObject version="2" type="BSBLabel"> |
| 287 |
<objectName/> |
| 288 |
<x>8</x> |
| 289 |
<y>140</y> |
| 290 |
<width>200</width> |
| 291 |
<height>30</height> |
| 292 |
<uuid>{76044785-79c4-4202-b7ce-07aee4868219}</uuid> |
| 293 |
<visible>true</visible> |
| 294 |
<midichan>0</midichan> |
| 295 |
<midicc>0</midicc> |
| 296 |
<label>Bow Position On Bar</label> |
| 297 |
<alignment>left</alignment> |
| 298 |
<font>Liberation Sans</font> |
| 299 |
<fontsize>10</fontsize> |
| 300 |
<precision>3</precision> |
| 301 |
<color> |
| 302 |
<r>0</r> |
| 303 |
<g>0</g> |
| 304 |
<b>0</b> |
| 305 |
</color> |
| 306 |
<bgcolor mode="nobackground"> |
| 307 |
<r>255</r> |
| 308 |
<g>255</g> |
| 309 |
<b>255</b> |
| 310 |
</bgcolor> |
| 311 |
<bordermode>noborder</bordermode> |
| 312 |
<borderradius>1</borderradius> |
| 313 |
<borderwidth>1</borderwidth> |
| 314 |
</bsbObject> |
| 315 |
<bsbObject version="2" type="BSBHSlider"> |
| 316 |
<objectName>BowPos</objectName> |
| 317 |
<x>8</x> |
| 318 |
<y>123</y> |
| 319 |
<width>500</width> |
| 320 |
<height>27</height> |
| 321 |
<uuid>{0f952e77-ff9b-4621-b1af-23252bb9c2a6}</uuid> |
| 322 |
<visible>true</visible> |
| 323 |
<midichan>0</midichan> |
| 324 |
<midicc>0</midicc> |
| 325 |
<minimum>0.00000000</minimum> |
| 326 |
<maximum>1.00000000</maximum> |
| 327 |
<value>0.69999999</value> |
| 328 |
<mode>lin</mode> |
| 329 |
<mouseControl act="jump">continuous</mouseControl> |
| 330 |
<resolution>-1.00000000</resolution> |
| 331 |
<randomizable group="0">false</randomizable> |
| 332 |
</bsbObject> |
| 333 |
<bsbObject version="2" type="BSBDisplay"> |
| 334 |
<objectName>BowPos</objectName> |
| 335 |
<x>448</x> |
| 336 |
<y>140</y> |
| 337 |
<width>60</width> |
| 338 |
<height>30</height> |
| 339 |
<uuid>{7b92c0ca-2fe8-4b4f-9ed0-f618c1b3cb5c}</uuid> |
| 340 |
<visible>true</visible> |
| 341 |
<midichan>0</midichan> |
| 342 |
<midicc>0</midicc> |
| 343 |
<label>0.700</label> |
| 344 |
<alignment>right</alignment> |
| 345 |
<font>Liberation Sans</font> |
| 346 |
<fontsize>9</fontsize> |
| 347 |
<precision>3</precision> |
| 348 |
<color> |
| 349 |
<r>0</r> |
| 350 |
<g>0</g> |
| 351 |
<b>0</b> |
| 352 |
</color> |
| 353 |
<bgcolor mode="nobackground"> |
| 354 |
<r>255</r> |
| 355 |
<g>255</g> |
| 356 |
<b>255</b> |
| 357 |
</bgcolor> |
| 358 |
<bordermode>noborder</bordermode> |
| 359 |
<borderradius>1</borderradius> |
| 360 |
<borderwidth>1</borderwidth> |
| 361 |
</bsbObject> |
| 362 |
<bsbObject version="2" type="BSBLabel"> |
| 363 |
<objectName/> |
| 364 |
<x>8</x> |
| 365 |
<y>175</y> |
| 366 |
<width>220</width> |
| 367 |
<height>30</height> |
| 368 |
<uuid>{ca41878c-b561-486b-9cf9-d0da6b48448b}</uuid> |
| 369 |
<visible>true</visible> |
| 370 |
<midichan>0</midichan> |
| 371 |
<midicc>0</midicc> |
| 372 |
<label>Bow Pressure</label> |
| 373 |
<alignment>left</alignment> |
| 374 |
<font>Liberation Sans</font> |
| 375 |
<fontsize>10</fontsize> |
| 376 |
<precision>3</precision> |
| 377 |
<color> |
| 378 |
<r>0</r> |
| 379 |
<g>0</g> |
| 380 |
<b>0</b> |
| 381 |
</color> |
| 382 |
<bgcolor mode="nobackground"> |
| 383 |
<r>255</r> |
| 384 |
<g>255</g> |
| 385 |
<b>255</b> |
| 386 |
</bgcolor> |
| 387 |
<bordermode>noborder</bordermode> |
| 388 |
<borderradius>1</borderradius> |
| 389 |
<borderwidth>1</borderwidth> |
| 390 |
</bsbObject> |
| 391 |
<bsbObject version="2" type="BSBHSlider"> |
| 392 |
<objectName>BowPress</objectName> |
| 393 |
<x>8</x> |
| 394 |
<y>158</y> |
| 395 |
<width>500</width> |
| 396 |
<height>27</height> |
| 397 |
<uuid>{2800fb88-347a-402c-88ed-fc97af6a36be}</uuid> |
| 398 |
<visible>true</visible> |
| 399 |
<midichan>0</midichan> |
| 400 |
<midicc>0</midicc> |
| 401 |
<minimum>1.00000000</minimum> |
| 402 |
<maximum>5.00000000</maximum> |
| 403 |
<value>3.00000000</value> |
| 404 |
<mode>lin</mode> |
| 405 |
<mouseControl act="jump">continuous</mouseControl> |
| 406 |
<resolution>-1.00000000</resolution> |
| 407 |
<randomizable group="0">false</randomizable> |
| 408 |
</bsbObject> |
| 409 |
<bsbObject version="2" type="BSBDisplay"> |
| 410 |
<objectName>BowPress</objectName> |
| 411 |
<x>448</x> |
| 412 |
<y>175</y> |
| 413 |
<width>60</width> |
| 414 |
<height>30</height> |
| 415 |
<uuid>{5d1ba94c-536a-4178-be6c-c0d9d2f75e3d}</uuid> |
| 416 |
<visible>true</visible> |
| 417 |
<midichan>0</midichan> |
| 418 |
<midicc>0</midicc> |
| 419 |
<label>3.000</label> |
| 420 |
<alignment>right</alignment> |
| 421 |
<font>Liberation Sans</font> |
| 422 |
<fontsize>9</fontsize> |
| 423 |
<precision>3</precision> |
| 424 |
<color> |
| 425 |
<r>0</r> |
| 426 |
<g>0</g> |
| 427 |
<b>0</b> |
| 428 |
</color> |
| 429 |
<bgcolor mode="nobackground"> |
| 430 |
<r>255</r> |
| 431 |
<g>255</g> |
| 432 |
<b>255</b> |
| 433 |
</bgcolor> |
| 434 |
<bordermode>noborder</bordermode> |
| 435 |
<borderradius>1</borderradius> |
| 436 |
<borderwidth>1</borderwidth> |
| 437 |
</bsbObject> |
| 438 |
<bsbObject version="2" type="BSBLabel"> |
| 439 |
<objectName/> |
| 440 |
<x>8</x> |
| 441 |
<y>210</y> |
| 442 |
<width>220</width> |
| 443 |
<height>30</height> |
| 444 |
<uuid>{cdd71125-b224-471a-9c41-9c05d8d28d0c}</uuid> |
| 445 |
<visible>true</visible> |
| 446 |
<midichan>0</midichan> |
| 447 |
<midicc>0</midicc> |
| 448 |
<label>Gain Of Filter</label> |
| 449 |
<alignment>left</alignment> |
| 450 |
<font>Liberation Sans</font> |
| 451 |
<fontsize>10</fontsize> |
| 452 |
<precision>3</precision> |
| 453 |
<color> |
| 454 |
<r>0</r> |
| 455 |
<g>0</g> |
| 456 |
<b>0</b> |
| 457 |
</color> |
| 458 |
<bgcolor mode="nobackground"> |
| 459 |
<r>255</r> |
| 460 |
<g>255</g> |
| 461 |
<b>255</b> |
| 462 |
</bgcolor> |
| 463 |
<bordermode>noborder</bordermode> |
| 464 |
<borderradius>1</borderradius> |
| 465 |
<borderwidth>1</borderwidth> |
| 466 |
</bsbObject> |
| 467 |
<bsbObject version="2" type="BSBHSlider"> |
| 468 |
<objectName>GainFilter</objectName> |
| 469 |
<x>8</x> |
| 470 |
<y>193</y> |
| 471 |
<width>500</width> |
| 472 |
<height>27</height> |
| 473 |
<uuid>{7a83bb1f-f25d-47e0-bf2d-9c5c86e0756b}</uuid> |
| 474 |
<visible>true</visible> |
| 475 |
<midichan>0</midichan> |
| 476 |
<midicc>0</midicc> |
| 477 |
<minimum>0.80000000</minimum> |
| 478 |
<maximum>2.00000000</maximum> |
| 479 |
<value>0.94999999</value> |
| 480 |
<mode>lin</mode> |
| 481 |
<mouseControl act="jump">continuous</mouseControl> |
| 482 |
<resolution>-1.00000000</resolution> |
| 483 |
<randomizable group="0">false</randomizable> |
| 484 |
</bsbObject> |
| 485 |
<bsbObject version="2" type="BSBDisplay"> |
| 486 |
<objectName>GainFilter</objectName> |
| 487 |
<x>448</x> |
| 488 |
<y>210</y> |
| 489 |
<width>60</width> |
| 490 |
<height>30</height> |
| 491 |
<uuid>{7f8d2709-bf8c-46ab-83f0-36fc620b0d56}</uuid> |
| 492 |
<visible>true</visible> |
| 493 |
<midichan>0</midichan> |
| 494 |
<midicc>0</midicc> |
| 495 |
<label>0.950</label> |
| 496 |
<alignment>right</alignment> |
| 497 |
<font>Liberation Sans</font> |
| 498 |
<fontsize>9</fontsize> |
| 499 |
<precision>3</precision> |
| 500 |
<color> |
| 501 |
<r>0</r> |
| 502 |
<g>0</g> |
| 503 |
<b>0</b> |
| 504 |
</color> |
| 505 |
<bgcolor mode="nobackground"> |
| 506 |
<r>255</r> |
| 507 |
<g>255</g> |
| 508 |
<b>255</b> |
| 509 |
</bgcolor> |
| 510 |
<bordermode>noborder</bordermode> |
| 511 |
<borderradius>1</borderradius> |
| 512 |
<borderwidth>1</borderwidth> |
| 513 |
</bsbObject> |
| 514 |
<bsbObject version="2" type="BSBLabel"> |
| 515 |
<objectName/> |
| 516 |
<x>515</x> |
| 517 |
<y>2</y> |
| 518 |
<width>280</width> |
| 519 |
<height>400</height> |
| 520 |
<uuid>{74928ed2-b701-4668-9a11-74763d317e9b}</uuid> |
| 521 |
<visible>true</visible> |
| 522 |
<midichan>0</midichan> |
| 523 |
<midicc>0</midicc> |
| 524 |
<label>wgbowedbar</label> |
| 525 |
<alignment>center</alignment> |
| 526 |
<font>Liberation Sans</font> |
| 527 |
<fontsize>18</fontsize> |
| 528 |
<precision>3</precision> |
| 529 |
<color> |
| 530 |
<r>0</r> |
| 531 |
<g>0</g> |
| 532 |
<b>0</b> |
| 533 |
</color> |
| 534 |
<bgcolor mode="background"> |
| 535 |
<r>147</r> |
| 536 |
<g>154</g> |
| 537 |
<b>255</b> |
| 538 |
</bgcolor> |
| 539 |
<bordermode>border</bordermode> |
| 540 |
<borderradius>5</borderradius> |
| 541 |
<borderwidth>2</borderwidth> |
| 542 |
</bsbObject> |
| 543 |
<bsbObject version="2" type="BSBLabel"> |
| 544 |
<objectName/> |
| 545 |
<x>516</x> |
| 546 |
<y>25</y> |
| 547 |
<width>277</width> |
| 548 |
<height>319</height> |
| 549 |
<uuid>{d4bdb5ce-87d8-4c8c-9c64-40ec2eed6f5a}</uuid> |
| 550 |
<visible>true</visible> |
| 551 |
<midichan>0</midichan> |
| 552 |
<midicc>0</midicc> |
| 553 |
<label>------------------------------------------------------------------- |
| 554 |
wgbowedbar is a wave guide physical model of a bowed bar based on work by Perry Cook but re-coded for Csound by John ffitch. The results from experimentation with this example can be unpredictable with 'exploding' feedback loops a common occurence. It is recommended that you proceed with caution in order to protect your ears and speakers. Interesting results are possible although I'm not sure whether anything that really resembles the sound of a bowed bar is possible.</label> |
| 555 |
<alignment>left</alignment> |
| 556 |
<font>Liberation Sans</font> |
| 557 |
<fontsize>14</fontsize> |
| 558 |
<precision>3</precision> |
| 559 |
<color> |
| 560 |
<r>0</r> |
| 561 |
<g>0</g> |
| 562 |
<b>0</b> |
| 563 |
</color> |
| 564 |
<bgcolor mode="nobackground"> |
| 565 |
<r>255</r> |
| 566 |
<g>255</g> |
| 567 |
<b>255</b> |
| 568 |
</bgcolor> |
| 569 |
<bordermode>noborder</bordermode> |
| 570 |
<borderradius>1</borderradius> |
| 571 |
<borderwidth>1</borderwidth> |
| 572 |
</bsbObject> |
| 573 |
<bsbObject version="2" type="BSBButton"> |
| 574 |
<objectName/> |
| 575 |
<x>8</x> |
| 576 |
<y>16</y> |
| 577 |
<width>120</width> |
| 578 |
<height>30</height> |
| 579 |
<uuid>{04d44ebe-12eb-4bb0-a3f5-9e4fd3e7830e}</uuid> |
| 580 |
<visible>true</visible> |
| 581 |
<midichan>0</midichan> |
| 582 |
<midicc>0</midicc> |
| 583 |
<type>event</type> |
| 584 |
<pressedValue>1.00000000</pressedValue> |
| 585 |
<stringvalue/> |
| 586 |
<text> On / Off (MIDI)</text> |
| 587 |
<image>/</image> |
| 588 |
<eventLine>i 3 0 -1</eventLine> |
| 589 |
<latch>true</latch> |
| 590 |
<latched>false</latched> |
| 591 |
</bsbObject> |
| 592 |
<bsbObject version="2" type="BSBLabel"> |
| 593 |
<objectName/> |
| 594 |
<x>8</x> |
| 595 |
<y>246</y> |
| 596 |
<width>220</width> |
| 597 |
<height>30</height> |
| 598 |
<uuid>{ca67a321-de0d-4a0f-8efd-864d9a51098c}</uuid> |
| 599 |
<visible>true</visible> |
| 600 |
<midichan>0</midichan> |
| 601 |
<midicc>0</midicc> |
| 602 |
<label>Integration Constant</label> |
| 603 |
<alignment>left</alignment> |
| 604 |
<font>Liberation Sans</font> |
| 605 |
<fontsize>10</fontsize> |
| 606 |
<precision>3</precision> |
| 607 |
<color> |
| 608 |
<r>0</r> |
| 609 |
<g>0</g> |
| 610 |
<b>0</b> |
| 611 |
</color> |
| 612 |
<bgcolor mode="nobackground"> |
| 613 |
<r>255</r> |
| 614 |
<g>255</g> |
| 615 |
<b>255</b> |
| 616 |
</bgcolor> |
| 617 |
<bordermode>noborder</bordermode> |
| 618 |
<borderradius>1</borderradius> |
| 619 |
<borderwidth>1</borderwidth> |
| 620 |
</bsbObject> |
| 621 |
<bsbObject version="2" type="BSBHSlider"> |
| 622 |
<objectName>Integ</objectName> |
| 623 |
<x>8</x> |
| 624 |
<y>229</y> |
| 625 |
<width>500</width> |
| 626 |
<height>27</height> |
| 627 |
<uuid>{0341fedb-6323-4661-b4c3-8207291fcd90}</uuid> |
| 628 |
<visible>true</visible> |
| 629 |
<midichan>0</midichan> |
| 630 |
<midicc>0</midicc> |
| 631 |
<minimum>-1.00000000</minimum> |
| 632 |
<maximum>1.00000000</maximum> |
| 633 |
<value>0.20000000</value> |
| 634 |
<mode>lin</mode> |
| 635 |
<mouseControl act="jump">continuous</mouseControl> |
| 636 |
<resolution>-1.00000000</resolution> |
| 637 |
<randomizable group="0">false</randomizable> |
| 638 |
</bsbObject> |
| 639 |
<bsbObject version="2" type="BSBDisplay"> |
| 640 |
<objectName>Integ</objectName> |
| 641 |
<x>448</x> |
| 642 |
<y>246</y> |
| 643 |
<width>60</width> |
| 644 |
<height>30</height> |
| 645 |
<uuid>{3c428724-1329-4e7c-bdb5-6e1277f3c2ce}</uuid> |
| 646 |
<visible>true</visible> |
| 647 |
<midichan>0</midichan> |
| 648 |
<midicc>0</midicc> |
| 649 |
<label>0.200</label> |
| 650 |
<alignment>right</alignment> |
| 651 |
<font>Liberation Sans</font> |
| 652 |
<fontsize>9</fontsize> |
| 653 |
<precision>3</precision> |
| 654 |
<color> |
| 655 |
<r>0</r> |
| 656 |
<g>0</g> |
| 657 |
<b>0</b> |
| 658 |
</color> |
| 659 |
<bgcolor mode="nobackground"> |
| 660 |
<r>255</r> |
| 661 |
<g>255</g> |
| 662 |
<b>255</b> |
| 663 |
</bgcolor> |
| 664 |
<bordermode>noborder</bordermode> |
| 665 |
<borderradius>1</borderradius> |
| 666 |
<borderwidth>1</borderwidth> |
| 667 |
</bsbObject> |
| 668 |
<bsbObject version="2" type="BSBDropdown"> |
| 669 |
<objectName>BowVel</objectName> |
| 670 |
<x>227</x> |
| 671 |
<y>276</y> |
| 672 |
<width>120</width> |
| 673 |
<height>30</height> |
| 674 |
<uuid>{d58c4129-6a07-4314-a22f-061a5078f4d6}</uuid> |
| 675 |
<visible>true</visible> |
| 676 |
<midichan>0</midichan> |
| 677 |
<midicc>0</midicc> |
| 678 |
<bsbDropdownItemList> |
| 679 |
<bsbDropdownItem> |
| 680 |
<name>ADSR</name> |
| 681 |
<value>0</value> |
| 682 |
<stringvalue/> |
| 683 |
</bsbDropdownItem> |
| 684 |
<bsbDropdownItem> |
| 685 |
<name>Exponential</name> |
| 686 |
<value>1</value> |
| 687 |
<stringvalue/> |
| 688 |
</bsbDropdownItem> |
| 689 |
</bsbDropdownItemList> |
| 690 |
<selectedIndex>0</selectedIndex> |
| 691 |
<randomizable group="0">false</randomizable> |
| 692 |
</bsbObject> |
| 693 |
<bsbObject version="2" type="BSBLabel"> |
| 694 |
<objectName/> |
| 695 |
<x>127</x> |
| 696 |
<y>280</y> |
| 697 |
<width>100</width> |
| 698 |
<height>30</height> |
| 699 |
<uuid>{acbcf200-59bd-4166-9e83-baebdb8af341}</uuid> |
| 700 |
<visible>true</visible> |
| 701 |
<midichan>0</midichan> |
| 702 |
<midicc>0</midicc> |
| 703 |
<label>Bow Velocity</label> |
| 704 |
<alignment>right</alignment> |
| 705 |
<font>Liberation Sans</font> |
| 706 |
<fontsize>10</fontsize> |
| 707 |
<precision>3</precision> |
| 708 |
<color> |
| 709 |
<r>0</r> |
| 710 |
<g>0</g> |
| 711 |
<b>0</b> |
| 712 |
</color> |
| 713 |
<bgcolor mode="nobackground"> |
| 714 |
<r>255</r> |
| 715 |
<g>255</g> |
| 716 |
<b>255</b> |
| 717 |
</bgcolor> |
| 718 |
<bordermode>noborder</bordermode> |
| 719 |
<borderradius>1</borderradius> |
| 720 |
<borderwidth>1</borderwidth> |
| 721 |
</bsbObject> |
| 722 |
<bsbObject version="2" type="BSBLabel"> |
| 723 |
<objectName/> |
| 724 |
<x>8</x> |
| 725 |
<y>332</y> |
| 726 |
<width>220</width> |
| 727 |
<height>30</height> |
| 728 |
<uuid>{7dcb17c9-95c2-49f1-8ab5-b4d051a992f3}</uuid> |
| 729 |
<visible>true</visible> |
| 730 |
<midichan>0</midichan> |
| 731 |
<midicc>0</midicc> |
| 732 |
<label>Bow Position Affecting Velocity Trajectory</label> |
| 733 |
<alignment>left</alignment> |
| 734 |
<font>Liberation Sans</font> |
| 735 |
<fontsize>10</fontsize> |
| 736 |
<precision>3</precision> |
| 737 |
<color> |
| 738 |
<r>0</r> |
| 739 |
<g>0</g> |
| 740 |
<b>0</b> |
| 741 |
</color> |
| 742 |
<bgcolor mode="nobackground"> |
| 743 |
<r>255</r> |
| 744 |
<g>255</g> |
| 745 |
<b>255</b> |
| 746 |
</bgcolor> |
| 747 |
<bordermode>noborder</bordermode> |
| 748 |
<borderradius>1</borderradius> |
| 749 |
<borderwidth>1</borderwidth> |
| 750 |
</bsbObject> |
| 751 |
<bsbObject version="2" type="BSBHSlider"> |
| 752 |
<objectName>BowPosVel</objectName> |
| 753 |
<x>8</x> |
| 754 |
<y>315</y> |
| 755 |
<width>500</width> |
| 756 |
<height>27</height> |
| 757 |
<uuid>{425f3e46-5220-46e0-b7a4-b5870b5bf6e2}</uuid> |
| 758 |
<visible>true</visible> |
| 759 |
<midichan>0</midichan> |
| 760 |
<midicc>0</midicc> |
| 761 |
<minimum>-1.00000000</minimum> |
| 762 |
<maximum>1.00000000</maximum> |
| 763 |
<value>0.00000000</value> |
| 764 |
<mode>lin</mode> |
| 765 |
<mouseControl act="jump">continuous</mouseControl> |
| 766 |
<resolution>-1.00000000</resolution> |
| 767 |
<randomizable group="0">false</randomizable> |
| 768 |
</bsbObject> |
| 769 |
<bsbObject version="2" type="BSBDisplay"> |
| 770 |
<objectName>BowPosVel</objectName> |
| 771 |
<x>448</x> |
| 772 |
<y>332</y> |
| 773 |
<width>60</width> |
| 774 |
<height>30</height> |
| 775 |
<uuid>{7fe8fbf7-c39f-4e4b-b61e-359b230422b3}</uuid> |
| 776 |
<visible>true</visible> |
| 777 |
<midichan>0</midichan> |
| 778 |
<midicc>0</midicc> |
| 779 |
<label>0.000</label> |
| 780 |
<alignment>right</alignment> |
| 781 |
<font>Liberation Sans</font> |
| 782 |
<fontsize>9</fontsize> |
| 783 |
<precision>3</precision> |
| 784 |
<color> |
| 785 |
<r>0</r> |
| 786 |
<g>0</g> |
| 787 |
<b>0</b> |
| 788 |
</color> |
| 789 |
<bgcolor mode="nobackground"> |
| 790 |
<r>255</r> |
| 791 |
<g>255</g> |
| 792 |
<b>255</b> |
| 793 |
</bgcolor> |
| 794 |
<bordermode>noborder</bordermode> |
| 795 |
<borderradius>1</borderradius> |
| 796 |
<borderwidth>1</borderwidth> |
| 797 |
</bsbObject> |
| 798 |
<bsbObject version="2" type="BSBLabel"> |
| 799 |
<objectName/> |
| 800 |
<x>8</x> |
| 801 |
<y>368</y> |
| 802 |
<width>220</width> |
| 803 |
<height>30</height> |
| 804 |
<uuid>{c80ee61d-1bc9-421c-98f7-c161712528b3}</uuid> |
| 805 |
<visible>true</visible> |
| 806 |
<midichan>0</midichan> |
| 807 |
<midicc>0</midicc> |
| 808 |
<label>Lowest Frequency Required</label> |
| 809 |
<alignment>left</alignment> |
| 810 |
<font>Liberation Sans</font> |
| 811 |
<fontsize>10</fontsize> |
| 812 |
<precision>3</precision> |
| 813 |
<color> |
| 814 |
<r>0</r> |
| 815 |
<g>0</g> |
| 816 |
<b>0</b> |
| 817 |
</color> |
| 818 |
<bgcolor mode="nobackground"> |
| 819 |
<r>255</r> |
| 820 |
<g>255</g> |
| 821 |
<b>255</b> |
| 822 |
</bgcolor> |
| 823 |
<bordermode>noborder</bordermode> |
| 824 |
<borderradius>1</borderradius> |
| 825 |
<borderwidth>1</borderwidth> |
| 826 |
</bsbObject> |
| 827 |
<bsbObject version="2" type="BSBHSlider"> |
| 828 |
<objectName>LowFreq</objectName> |
| 829 |
<x>8</x> |
| 830 |
<y>351</y> |
| 831 |
<width>500</width> |
| 832 |
<height>27</height> |
| 833 |
<uuid>{b85e90b9-8ce7-4088-ae01-027e8f281a5e}</uuid> |
| 834 |
<visible>true</visible> |
| 835 |
<midichan>0</midichan> |
| 836 |
<midicc>0</midicc> |
| 837 |
<minimum>0.00000000</minimum> |
| 838 |
<maximum>2000.00000000</maximum> |
| 839 |
<value>0.00000000</value> |
| 840 |
<mode>lin</mode> |
| 841 |
<mouseControl act="jump">continuous</mouseControl> |
| 842 |
<resolution>-1.00000000</resolution> |
| 843 |
<randomizable group="0">false</randomizable> |
| 844 |
</bsbObject> |
| 845 |
<bsbObject version="2" type="BSBDisplay"> |
| 846 |
<objectName>LowFreq</objectName> |
| 847 |
<x>448</x> |
| 848 |
<y>368</y> |
| 849 |
<width>60</width> |
| 850 |
<height>30</height> |
| 851 |
<uuid>{7a5c8e8d-4e02-4387-8a12-62ded58bf8da}</uuid> |
| 852 |
<visible>true</visible> |
| 853 |
<midichan>0</midichan> |
| 854 |
<midicc>0</midicc> |
| 855 |
<label>0.000</label> |
| 856 |
<alignment>right</alignment> |
| 857 |
<font>Liberation Sans</font> |
| 858 |
<fontsize>9</fontsize> |
| 859 |
<precision>3</precision> |
| 860 |
<color> |
| 861 |
<r>0</r> |
| 862 |
<g>0</g> |
| 863 |
<b>0</b> |
| 864 |
</color> |
| 865 |
<bgcolor mode="nobackground"> |
| 866 |
<r>255</r> |
| 867 |
<g>255</g> |
| 868 |
<b>255</b> |
| 869 |
</bgcolor> |
| 870 |
<bordermode>noborder</bordermode> |
| 871 |
<borderradius>1</borderradius> |
| 872 |
<borderwidth>1</borderwidth> |
| 873 |
</bsbObject> |
| 874 |
</bsbPanel> |
| 875 |
<bsbPresets> |
| 876 |
</bsbPresets> |
| 877 |
<EventPanel name="" tempo="60.00000000" loop="8.00000000" x="913" y="162" width="655" height="346" visible="true" loopStart="0" loopEnd="0"> </EventPanel> |