| 1 |
;Written by Iain McCurdy, 2009 |
| 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 |
; Add Browser for pluck file |
| 8 |
; INIT instrument added |
| 9 |
; Use event_i and instrument 5 to simulate a FLsetVal_i opcode |
| 10 |
; Removed subinstr opcode in midi instrument 1 because midi note was played with previous freq and amp values (only on my csd, original FLTK csd is ok) |
| 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 = 16 ;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 |
instr 2 ;GUI |
| 26 |
ktrig metro 10 |
| 27 |
if (ktrig == 1) then |
| 28 |
gkamp invalue "Amp" |
| 29 |
gkfreq invalue "Freq" |
| 30 |
gkpluck invalue "Pluck" |
| 31 |
gkdetune invalue "Detune" |
| 32 |
gkgain invalue "Gain" |
| 33 |
gksize invalue "Size" |
| 34 |
|
| 35 |
;AUDIO FILE CHANGE / LOAD IN TABLES ******************************************************************************************************** |
| 36 |
Sfile_new strcpy "" ;INIT TO EMPTY STRING |
| 37 |
Sfile invalue "_Browse" |
| 38 |
Sfile_old strcpyk Sfile_new |
| 39 |
Sfile_new strcpyk Sfile |
| 40 |
kfile strcmpk Sfile_new, Sfile_old |
| 41 |
|
| 42 |
if kfile != 0 then ;IF A BANG HAD BEEN GENERATED IN THE LINE ABOVE |
| 43 |
reinit NEW_FILE ;REINITIALIZE FROM LABEL 'NEW_FILE' |
| 44 |
endif |
| 45 |
NEW_FILE: |
| 46 |
ilen filelen Sfile ;Find length |
| 47 |
isr filesr Sfile ;Find sample rate |
| 48 |
isamps = ilen * isr ;Total number of samples |
| 49 |
|
| 50 |
isize init 1 |
| 51 |
LOOP: |
| 52 |
isize = isize * 2 |
| 53 |
if (isize < isamps) igoto LOOP ;Loop until isize is greater than number of samples |
| 54 |
|
| 55 |
gifn ftgen 0, 0, isize, 1, Sfile, 0, 0, 1 ;READ AUDIO FILE CHANNEL 1 |
| 56 |
;******************************************************************************************************************************************* |
| 57 |
endif |
| 58 |
endin |
| 59 |
|
| 60 |
instr 1 ;MIDI ACTIVATED INSTRUMENT |
| 61 |
ifreq cpsmidi ;FREQUENCY IS READ FROM INCOMING MIDI NOTE |
| 62 |
iamp ampmidi 1 ;AMPLITUDE IS READ FROM INCOMING MIDI NOTE |
| 63 |
|
| 64 |
event_i "i", 5, 0, 0.1, iamp, ifreq ;SEND AMPLITUDE VALUE TO AMPLITUDE SLIDER and FREQUENCY VALUE TO FREQUENCY SLIDER |
| 65 |
|
| 66 |
ares mandol iamp, ifreq, gkpluck, gkdetune, gkgain, gksize, gifn ;[, iminfreq] |
| 67 |
aenv linsegr 1,3600,1,0.1,0 ;CREATE AN AMPLITUDE ENVELOPE. THIS WILL BE USED TO PREVENT CLICKS. |
| 68 |
outs ares*aenv, ares*aenv ;SEND AUDIO TO OUTPUTS |
| 69 |
endin |
| 70 |
|
| 71 |
instr 3 ;GUI BUTTON ACTIVATED INSTRUMENT |
| 72 |
ares mandol i(gkamp), i(gkfreq), gkpluck, gkdetune, gkgain, gksize, gifn ;[, iminfreq] |
| 73 |
outs ares, ares ;SEND AUDIO TO OUTPUTS |
| 74 |
endin |
| 75 |
|
| 76 |
instr 4 ;INIT |
| 77 |
outvalue "Amp" , 0.3 |
| 78 |
outvalue "Freq" ,250 |
| 79 |
outvalue "Pluck" ,0.1 |
| 80 |
outvalue "Detune" ,0.9 |
| 81 |
outvalue "Gain" ,0.97 |
| 82 |
outvalue "Size" ,1 |
| 83 |
endin |
| 84 |
|
| 85 |
instr 5 ;UPDATE |
| 86 |
outvalue "Amp", p4 ;SEND AMPLITUDE VALUE TO AMPLITUDE SLIDER |
| 87 |
outvalue "Freq", p5 ;SEND FREQUENCY VALUE TO FREQUENCY SLIDER |
| 88 |
endin |
| 89 |
</CsInstruments> |
| 90 |
<CsScore> |
| 91 |
;INSTR | START | DURATION |
| 92 |
i 2 0 3600 ;GUI |
| 93 |
i 4 0 0.1 ;INIT |
| 94 |
</CsScore> |
| 95 |
</CsoundSynthesizer> |
| 96 |
<bsbPanel> |
| 97 |
<label>Widgets</label> |
| 98 |
<objectName/> |
| 99 |
<x>72</x> |
| 100 |
<y>179</y> |
| 101 |
<width>400</width> |
| 102 |
<height>200</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>510</width> |
| 115 |
<height>330</height> |
| 116 |
<uuid>{aa607456-d368-4d59-8497-d16d608404c3}</uuid> |
| 117 |
<visible>true</visible> |
| 118 |
<midichan>0</midichan> |
| 119 |
<midicc>0</midicc> |
| 120 |
<label>mandol</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>147</r> |
| 132 |
<g>154</g> |
| 133 |
<b>255</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>8</x> |
| 142 |
<y>128</y> |
| 143 |
<width>220</width> |
| 144 |
<height>30</height> |
| 145 |
<uuid>{640b50b7-7200-4f81-8394-89d9843ae939}</uuid> |
| 146 |
<visible>true</visible> |
| 147 |
<midichan>0</midichan> |
| 148 |
<midicc>0</midicc> |
| 149 |
<label>Amplitude</label> |
| 150 |
<alignment>left</alignment> |
| 151 |
<font>Liberation Sans</font> |
| 152 |
<fontsize>10</fontsize> |
| 153 |
<precision>3</precision> |
| 154 |
<color> |
| 155 |
<r>0</r> |
| 156 |
<g>0</g> |
| 157 |
<b>0</b> |
| 158 |
</color> |
| 159 |
<bgcolor mode="nobackground"> |
| 160 |
<r>255</r> |
| 161 |
<g>255</g> |
| 162 |
<b>255</b> |
| 163 |
</bgcolor> |
| 164 |
<bordermode>noborder</bordermode> |
| 165 |
<borderradius>1</borderradius> |
| 166 |
<borderwidth>1</borderwidth> |
| 167 |
</bsbObject> |
| 168 |
<bsbObject version="2" type="BSBHSlider"> |
| 169 |
<objectName>Amp</objectName> |
| 170 |
<x>8</x> |
| 171 |
<y>111</y> |
| 172 |
<width>500</width> |
| 173 |
<height>27</height> |
| 174 |
<uuid>{5585fa6f-0f63-4ac3-bf1b-809c2b1d9134}</uuid> |
| 175 |
<visible>true</visible> |
| 176 |
<midichan>0</midichan> |
| 177 |
<midicc>0</midicc> |
| 178 |
<minimum>0.00000000</minimum> |
| 179 |
<maximum>1.00000000</maximum> |
| 180 |
<value>0.30000001</value> |
| 181 |
<mode>lin</mode> |
| 182 |
<mouseControl act="jump">continuous</mouseControl> |
| 183 |
<resolution>-1.00000000</resolution> |
| 184 |
<randomizable group="0">false</randomizable> |
| 185 |
</bsbObject> |
| 186 |
<bsbObject version="2" type="BSBDisplay"> |
| 187 |
<objectName>Amp</objectName> |
| 188 |
<x>448</x> |
| 189 |
<y>128</y> |
| 190 |
<width>60</width> |
| 191 |
<height>30</height> |
| 192 |
<uuid>{b731b52e-e14a-476a-a583-f3b2bd885539}</uuid> |
| 193 |
<visible>true</visible> |
| 194 |
<midichan>0</midichan> |
| 195 |
<midicc>0</midicc> |
| 196 |
<label>0.300</label> |
| 197 |
<alignment>right</alignment> |
| 198 |
<font>Liberation Sans</font> |
| 199 |
<fontsize>9</fontsize> |
| 200 |
<precision>3</precision> |
| 201 |
<color> |
| 202 |
<r>0</r> |
| 203 |
<g>0</g> |
| 204 |
<b>0</b> |
| 205 |
</color> |
| 206 |
<bgcolor mode="nobackground"> |
| 207 |
<r>255</r> |
| 208 |
<g>255</g> |
| 209 |
<b>255</b> |
| 210 |
</bgcolor> |
| 211 |
<bordermode>noborder</bordermode> |
| 212 |
<borderradius>1</borderradius> |
| 213 |
<borderwidth>1</borderwidth> |
| 214 |
</bsbObject> |
| 215 |
<bsbObject version="2" type="BSBLabel"> |
| 216 |
<objectName/> |
| 217 |
<x>8</x> |
| 218 |
<y>163</y> |
| 219 |
<width>220</width> |
| 220 |
<height>30</height> |
| 221 |
<uuid>{989564b0-b237-4c22-9d10-b76b7c7e4e4c}</uuid> |
| 222 |
<visible>true</visible> |
| 223 |
<midichan>0</midichan> |
| 224 |
<midicc>0</midicc> |
| 225 |
<label>Frequency</label> |
| 226 |
<alignment>left</alignment> |
| 227 |
<font>Liberation Sans</font> |
| 228 |
<fontsize>10</fontsize> |
| 229 |
<precision>3</precision> |
| 230 |
<color> |
| 231 |
<r>0</r> |
| 232 |
<g>0</g> |
| 233 |
<b>0</b> |
| 234 |
</color> |
| 235 |
<bgcolor mode="nobackground"> |
| 236 |
<r>255</r> |
| 237 |
<g>255</g> |
| 238 |
<b>255</b> |
| 239 |
</bgcolor> |
| 240 |
<bordermode>noborder</bordermode> |
| 241 |
<borderradius>1</borderradius> |
| 242 |
<borderwidth>1</borderwidth> |
| 243 |
</bsbObject> |
| 244 |
<bsbObject version="2" type="BSBHSlider"> |
| 245 |
<objectName>Freq</objectName> |
| 246 |
<x>8</x> |
| 247 |
<y>146</y> |
| 248 |
<width>500</width> |
| 249 |
<height>27</height> |
| 250 |
<uuid>{84cd664e-fb67-4dd4-aac3-adbcf2c81fe6}</uuid> |
| 251 |
<visible>true</visible> |
| 252 |
<midichan>0</midichan> |
| 253 |
<midicc>0</midicc> |
| 254 |
<minimum>20.00000000</minimum> |
| 255 |
<maximum>2000.00000000</maximum> |
| 256 |
<value>250.00000000</value> |
| 257 |
<mode>lin</mode> |
| 258 |
<mouseControl act="jump">continuous</mouseControl> |
| 259 |
<resolution>-1.00000000</resolution> |
| 260 |
<randomizable group="0">false</randomizable> |
| 261 |
</bsbObject> |
| 262 |
<bsbObject version="2" type="BSBDisplay"> |
| 263 |
<objectName>Freq</objectName> |
| 264 |
<x>448</x> |
| 265 |
<y>163</y> |
| 266 |
<width>60</width> |
| 267 |
<height>30</height> |
| 268 |
<uuid>{ba8682a6-056f-4432-946b-4e3ee82c47a1}</uuid> |
| 269 |
<visible>true</visible> |
| 270 |
<midichan>0</midichan> |
| 271 |
<midicc>0</midicc> |
| 272 |
<label>250.000</label> |
| 273 |
<alignment>right</alignment> |
| 274 |
<font>Liberation Sans</font> |
| 275 |
<fontsize>9</fontsize> |
| 276 |
<precision>3</precision> |
| 277 |
<color> |
| 278 |
<r>0</r> |
| 279 |
<g>0</g> |
| 280 |
<b>0</b> |
| 281 |
</color> |
| 282 |
<bgcolor mode="nobackground"> |
| 283 |
<r>255</r> |
| 284 |
<g>255</g> |
| 285 |
<b>255</b> |
| 286 |
</bgcolor> |
| 287 |
<bordermode>noborder</bordermode> |
| 288 |
<borderradius>1</borderradius> |
| 289 |
<borderwidth>1</borderwidth> |
| 290 |
</bsbObject> |
| 291 |
<bsbObject version="2" type="BSBLabel"> |
| 292 |
<objectName/> |
| 293 |
<x>8</x> |
| 294 |
<y>197</y> |
| 295 |
<width>200</width> |
| 296 |
<height>30</height> |
| 297 |
<uuid>{76044785-79c4-4202-b7ce-07aee4868219}</uuid> |
| 298 |
<visible>true</visible> |
| 299 |
<midichan>0</midichan> |
| 300 |
<midicc>0</midicc> |
| 301 |
<label>Pluck Position</label> |
| 302 |
<alignment>left</alignment> |
| 303 |
<font>Liberation Sans</font> |
| 304 |
<fontsize>10</fontsize> |
| 305 |
<precision>3</precision> |
| 306 |
<color> |
| 307 |
<r>0</r> |
| 308 |
<g>0</g> |
| 309 |
<b>0</b> |
| 310 |
</color> |
| 311 |
<bgcolor mode="nobackground"> |
| 312 |
<r>255</r> |
| 313 |
<g>255</g> |
| 314 |
<b>255</b> |
| 315 |
</bgcolor> |
| 316 |
<bordermode>noborder</bordermode> |
| 317 |
<borderradius>1</borderradius> |
| 318 |
<borderwidth>1</borderwidth> |
| 319 |
</bsbObject> |
| 320 |
<bsbObject version="2" type="BSBHSlider"> |
| 321 |
<objectName>Pluck</objectName> |
| 322 |
<x>8</x> |
| 323 |
<y>180</y> |
| 324 |
<width>500</width> |
| 325 |
<height>27</height> |
| 326 |
<uuid>{0f952e77-ff9b-4621-b1af-23252bb9c2a6}</uuid> |
| 327 |
<visible>true</visible> |
| 328 |
<midichan>0</midichan> |
| 329 |
<midicc>0</midicc> |
| 330 |
<minimum>0.00100000</minimum> |
| 331 |
<maximum>1.00000000</maximum> |
| 332 |
<value>0.10000000</value> |
| 333 |
<mode>lin</mode> |
| 334 |
<mouseControl act="jump">continuous</mouseControl> |
| 335 |
<resolution>-1.00000000</resolution> |
| 336 |
<randomizable group="0">false</randomizable> |
| 337 |
</bsbObject> |
| 338 |
<bsbObject version="2" type="BSBDisplay"> |
| 339 |
<objectName>Pluck</objectName> |
| 340 |
<x>448</x> |
| 341 |
<y>197</y> |
| 342 |
<width>60</width> |
| 343 |
<height>30</height> |
| 344 |
<uuid>{7b92c0ca-2fe8-4b4f-9ed0-f618c1b3cb5c}</uuid> |
| 345 |
<visible>true</visible> |
| 346 |
<midichan>0</midichan> |
| 347 |
<midicc>0</midicc> |
| 348 |
<label>0.100</label> |
| 349 |
<alignment>right</alignment> |
| 350 |
<font>Liberation Sans</font> |
| 351 |
<fontsize>9</fontsize> |
| 352 |
<precision>3</precision> |
| 353 |
<color> |
| 354 |
<r>0</r> |
| 355 |
<g>0</g> |
| 356 |
<b>0</b> |
| 357 |
</color> |
| 358 |
<bgcolor mode="nobackground"> |
| 359 |
<r>255</r> |
| 360 |
<g>255</g> |
| 361 |
<b>255</b> |
| 362 |
</bgcolor> |
| 363 |
<bordermode>noborder</bordermode> |
| 364 |
<borderradius>1</borderradius> |
| 365 |
<borderwidth>1</borderwidth> |
| 366 |
</bsbObject> |
| 367 |
<bsbObject version="2" type="BSBLabel"> |
| 368 |
<objectName/> |
| 369 |
<x>8</x> |
| 370 |
<y>232</y> |
| 371 |
<width>220</width> |
| 372 |
<height>30</height> |
| 373 |
<uuid>{ca41878c-b561-486b-9cf9-d0da6b48448b}</uuid> |
| 374 |
<visible>true</visible> |
| 375 |
<midichan>0</midichan> |
| 376 |
<midicc>0</midicc> |
| 377 |
<label>Detune</label> |
| 378 |
<alignment>left</alignment> |
| 379 |
<font>Liberation Sans</font> |
| 380 |
<fontsize>10</fontsize> |
| 381 |
<precision>3</precision> |
| 382 |
<color> |
| 383 |
<r>0</r> |
| 384 |
<g>0</g> |
| 385 |
<b>0</b> |
| 386 |
</color> |
| 387 |
<bgcolor mode="nobackground"> |
| 388 |
<r>255</r> |
| 389 |
<g>255</g> |
| 390 |
<b>255</b> |
| 391 |
</bgcolor> |
| 392 |
<bordermode>noborder</bordermode> |
| 393 |
<borderradius>1</borderradius> |
| 394 |
<borderwidth>1</borderwidth> |
| 395 |
</bsbObject> |
| 396 |
<bsbObject version="2" type="BSBHSlider"> |
| 397 |
<objectName>Detune</objectName> |
| 398 |
<x>8</x> |
| 399 |
<y>215</y> |
| 400 |
<width>500</width> |
| 401 |
<height>27</height> |
| 402 |
<uuid>{2800fb88-347a-402c-88ed-fc97af6a36be}</uuid> |
| 403 |
<visible>true</visible> |
| 404 |
<midichan>0</midichan> |
| 405 |
<midicc>0</midicc> |
| 406 |
<minimum>0.90000000</minimum> |
| 407 |
<maximum>2.00000000</maximum> |
| 408 |
<value>0.90000000</value> |
| 409 |
<mode>lin</mode> |
| 410 |
<mouseControl act="jump">continuous</mouseControl> |
| 411 |
<resolution>-1.00000000</resolution> |
| 412 |
<randomizable group="0">false</randomizable> |
| 413 |
</bsbObject> |
| 414 |
<bsbObject version="2" type="BSBDisplay"> |
| 415 |
<objectName>Detune</objectName> |
| 416 |
<x>448</x> |
| 417 |
<y>232</y> |
| 418 |
<width>60</width> |
| 419 |
<height>30</height> |
| 420 |
<uuid>{5d1ba94c-536a-4178-be6c-c0d9d2f75e3d}</uuid> |
| 421 |
<visible>true</visible> |
| 422 |
<midichan>0</midichan> |
| 423 |
<midicc>0</midicc> |
| 424 |
<label>0.900</label> |
| 425 |
<alignment>right</alignment> |
| 426 |
<font>Liberation Sans</font> |
| 427 |
<fontsize>9</fontsize> |
| 428 |
<precision>3</precision> |
| 429 |
<color> |
| 430 |
<r>0</r> |
| 431 |
<g>0</g> |
| 432 |
<b>0</b> |
| 433 |
</color> |
| 434 |
<bgcolor mode="nobackground"> |
| 435 |
<r>255</r> |
| 436 |
<g>255</g> |
| 437 |
<b>255</b> |
| 438 |
</bgcolor> |
| 439 |
<bordermode>noborder</bordermode> |
| 440 |
<borderradius>1</borderradius> |
| 441 |
<borderwidth>1</borderwidth> |
| 442 |
</bsbObject> |
| 443 |
<bsbObject version="2" type="BSBLabel"> |
| 444 |
<objectName/> |
| 445 |
<x>8</x> |
| 446 |
<y>267</y> |
| 447 |
<width>220</width> |
| 448 |
<height>30</height> |
| 449 |
<uuid>{cdd71125-b224-471a-9c41-9c05d8d28d0c}</uuid> |
| 450 |
<visible>true</visible> |
| 451 |
<midichan>0</midichan> |
| 452 |
<midicc>0</midicc> |
| 453 |
<label>Gain</label> |
| 454 |
<alignment>left</alignment> |
| 455 |
<font>Liberation Sans</font> |
| 456 |
<fontsize>10</fontsize> |
| 457 |
<precision>3</precision> |
| 458 |
<color> |
| 459 |
<r>0</r> |
| 460 |
<g>0</g> |
| 461 |
<b>0</b> |
| 462 |
</color> |
| 463 |
<bgcolor mode="nobackground"> |
| 464 |
<r>255</r> |
| 465 |
<g>255</g> |
| 466 |
<b>255</b> |
| 467 |
</bgcolor> |
| 468 |
<bordermode>noborder</bordermode> |
| 469 |
<borderradius>1</borderradius> |
| 470 |
<borderwidth>1</borderwidth> |
| 471 |
</bsbObject> |
| 472 |
<bsbObject version="2" type="BSBHSlider"> |
| 473 |
<objectName>Gain</objectName> |
| 474 |
<x>8</x> |
| 475 |
<y>250</y> |
| 476 |
<width>500</width> |
| 477 |
<height>27</height> |
| 478 |
<uuid>{7a83bb1f-f25d-47e0-bf2d-9c5c86e0756b}</uuid> |
| 479 |
<visible>true</visible> |
| 480 |
<midichan>0</midichan> |
| 481 |
<midicc>0</midicc> |
| 482 |
<minimum>0.97000000</minimum> |
| 483 |
<maximum>1.00000000</maximum> |
| 484 |
<value>0.97000003</value> |
| 485 |
<mode>lin</mode> |
| 486 |
<mouseControl act="jump">continuous</mouseControl> |
| 487 |
<resolution>-1.00000000</resolution> |
| 488 |
<randomizable group="0">false</randomizable> |
| 489 |
</bsbObject> |
| 490 |
<bsbObject version="2" type="BSBDisplay"> |
| 491 |
<objectName>Gain</objectName> |
| 492 |
<x>448</x> |
| 493 |
<y>267</y> |
| 494 |
<width>60</width> |
| 495 |
<height>30</height> |
| 496 |
<uuid>{7f8d2709-bf8c-46ab-83f0-36fc620b0d56}</uuid> |
| 497 |
<visible>true</visible> |
| 498 |
<midichan>0</midichan> |
| 499 |
<midicc>0</midicc> |
| 500 |
<label>0.970</label> |
| 501 |
<alignment>right</alignment> |
| 502 |
<font>Liberation Sans</font> |
| 503 |
<fontsize>9</fontsize> |
| 504 |
<precision>3</precision> |
| 505 |
<color> |
| 506 |
<r>0</r> |
| 507 |
<g>0</g> |
| 508 |
<b>0</b> |
| 509 |
</color> |
| 510 |
<bgcolor mode="nobackground"> |
| 511 |
<r>255</r> |
| 512 |
<g>255</g> |
| 513 |
<b>255</b> |
| 514 |
</bgcolor> |
| 515 |
<bordermode>noborder</bordermode> |
| 516 |
<borderradius>1</borderradius> |
| 517 |
<borderwidth>1</borderwidth> |
| 518 |
</bsbObject> |
| 519 |
<bsbObject version="2" type="BSBLabel"> |
| 520 |
<objectName/> |
| 521 |
<x>515</x> |
| 522 |
<y>2</y> |
| 523 |
<width>280</width> |
| 524 |
<height>330</height> |
| 525 |
<uuid>{74928ed2-b701-4668-9a11-74763d317e9b}</uuid> |
| 526 |
<visible>true</visible> |
| 527 |
<midichan>0</midichan> |
| 528 |
<midicc>0</midicc> |
| 529 |
<label>mandol</label> |
| 530 |
<alignment>center</alignment> |
| 531 |
<font>Liberation Sans</font> |
| 532 |
<fontsize>18</fontsize> |
| 533 |
<precision>3</precision> |
| 534 |
<color> |
| 535 |
<r>0</r> |
| 536 |
<g>0</g> |
| 537 |
<b>0</b> |
| 538 |
</color> |
| 539 |
<bgcolor mode="background"> |
| 540 |
<r>147</r> |
| 541 |
<g>154</g> |
| 542 |
<b>255</b> |
| 543 |
</bgcolor> |
| 544 |
<bordermode>border</bordermode> |
| 545 |
<borderradius>5</borderradius> |
| 546 |
<borderwidth>2</borderwidth> |
| 547 |
</bsbObject> |
| 548 |
<bsbObject version="2" type="BSBLabel"> |
| 549 |
<objectName/> |
| 550 |
<x>516</x> |
| 551 |
<y>25</y> |
| 552 |
<width>279</width> |
| 553 |
<height>304</height> |
| 554 |
<uuid>{d4bdb5ce-87d8-4c8c-9c64-40ec2eed6f5a}</uuid> |
| 555 |
<visible>true</visible> |
| 556 |
<midichan>0</midichan> |
| 557 |
<midicc>0</midicc> |
| 558 |
<label>------------------------------------------------------------------- |
| 559 |
'mandol' implements a physical model of a mandolin. |
| 560 |
This instrument can be triggered by either the GUI button or by a connected MIDI keyboard. 'detune' controls the amount of detuning between each pair of strings. |
| 561 |
'Gain' controls the amount of feedback within the algorithm which ultimately gives control over the sustain of the "instrument. 'Size' is a control over the size of the instrument. |
| 562 |
'Pluck Position' offers control over where, along the length of the string, plucking occurs. |
| 563 |
gifn is the table number containing the pluck wave form. The file mandpluk.aiff is suitable for this.</label> |
| 564 |
<alignment>left</alignment> |
| 565 |
<font>Liberation Sans</font> |
| 566 |
<fontsize>14</fontsize> |
| 567 |
<precision>3</precision> |
| 568 |
<color> |
| 569 |
<r>0</r> |
| 570 |
<g>0</g> |
| 571 |
<b>0</b> |
| 572 |
</color> |
| 573 |
<bgcolor mode="nobackground"> |
| 574 |
<r>255</r> |
| 575 |
<g>255</g> |
| 576 |
<b>255</b> |
| 577 |
</bgcolor> |
| 578 |
<bordermode>noborder</bordermode> |
| 579 |
<borderradius>1</borderradius> |
| 580 |
<borderwidth>1</borderwidth> |
| 581 |
</bsbObject> |
| 582 |
<bsbObject version="2" type="BSBButton"> |
| 583 |
<objectName/> |
| 584 |
<x>8</x> |
| 585 |
<y>16</y> |
| 586 |
<width>100</width> |
| 587 |
<height>30</height> |
| 588 |
<uuid>{04d44ebe-12eb-4bb0-a3f5-9e4fd3e7830e}</uuid> |
| 589 |
<visible>true</visible> |
| 590 |
<midichan>0</midichan> |
| 591 |
<midicc>0</midicc> |
| 592 |
<type>event</type> |
| 593 |
<pressedValue>1.00000000</pressedValue> |
| 594 |
<stringvalue/> |
| 595 |
<text>Pluck !</text> |
| 596 |
<image>/</image> |
| 597 |
<eventLine>i 3 0 -1</eventLine> |
| 598 |
<latch>false</latch> |
| 599 |
<latched>false</latched> |
| 600 |
</bsbObject> |
| 601 |
<bsbObject version="2" type="BSBLabel"> |
| 602 |
<objectName/> |
| 603 |
<x>8</x> |
| 604 |
<y>303</y> |
| 605 |
<width>220</width> |
| 606 |
<height>30</height> |
| 607 |
<uuid>{ca67a321-de0d-4a0f-8efd-864d9a51098c}</uuid> |
| 608 |
<visible>true</visible> |
| 609 |
<midichan>0</midichan> |
| 610 |
<midicc>0</midicc> |
| 611 |
<label>Size</label> |
| 612 |
<alignment>left</alignment> |
| 613 |
<font>Liberation Sans</font> |
| 614 |
<fontsize>10</fontsize> |
| 615 |
<precision>3</precision> |
| 616 |
<color> |
| 617 |
<r>0</r> |
| 618 |
<g>0</g> |
| 619 |
<b>0</b> |
| 620 |
</color> |
| 621 |
<bgcolor mode="nobackground"> |
| 622 |
<r>255</r> |
| 623 |
<g>255</g> |
| 624 |
<b>255</b> |
| 625 |
</bgcolor> |
| 626 |
<bordermode>noborder</bordermode> |
| 627 |
<borderradius>1</borderradius> |
| 628 |
<borderwidth>1</borderwidth> |
| 629 |
</bsbObject> |
| 630 |
<bsbObject version="2" type="BSBHSlider"> |
| 631 |
<objectName>Size</objectName> |
| 632 |
<x>8</x> |
| 633 |
<y>286</y> |
| 634 |
<width>500</width> |
| 635 |
<height>27</height> |
| 636 |
<uuid>{0341fedb-6323-4661-b4c3-8207291fcd90}</uuid> |
| 637 |
<visible>true</visible> |
| 638 |
<midichan>0</midichan> |
| 639 |
<midicc>0</midicc> |
| 640 |
<minimum>0.00400000</minimum> |
| 641 |
<maximum>2.00000000</maximum> |
| 642 |
<value>1.00000000</value> |
| 643 |
<mode>lin</mode> |
| 644 |
<mouseControl act="jump">continuous</mouseControl> |
| 645 |
<resolution>-1.00000000</resolution> |
| 646 |
<randomizable group="0">false</randomizable> |
| 647 |
</bsbObject> |
| 648 |
<bsbObject version="2" type="BSBDisplay"> |
| 649 |
<objectName>Size</objectName> |
| 650 |
<x>448</x> |
| 651 |
<y>303</y> |
| 652 |
<width>60</width> |
| 653 |
<height>30</height> |
| 654 |
<uuid>{3c428724-1329-4e7c-bdb5-6e1277f3c2ce}</uuid> |
| 655 |
<visible>true</visible> |
| 656 |
<midichan>0</midichan> |
| 657 |
<midicc>0</midicc> |
| 658 |
<label>1.000</label> |
| 659 |
<alignment>right</alignment> |
| 660 |
<font>Liberation Sans</font> |
| 661 |
<fontsize>9</fontsize> |
| 662 |
<precision>3</precision> |
| 663 |
<color> |
| 664 |
<r>0</r> |
| 665 |
<g>0</g> |
| 666 |
<b>0</b> |
| 667 |
</color> |
| 668 |
<bgcolor mode="nobackground"> |
| 669 |
<r>255</r> |
| 670 |
<g>255</g> |
| 671 |
<b>255</b> |
| 672 |
</bgcolor> |
| 673 |
<bordermode>noborder</bordermode> |
| 674 |
<borderradius>1</borderradius> |
| 675 |
<borderwidth>1</borderwidth> |
| 676 |
</bsbObject> |
| 677 |
<bsbObject version="2" type="BSBLabel"> |
| 678 |
<objectName/> |
| 679 |
<x>8</x> |
| 680 |
<y>53</y> |
| 681 |
<width>97</width> |
| 682 |
<height>30</height> |
| 683 |
<uuid>{3c19fbdc-3d2b-4583-8316-52f7a3a433e2}</uuid> |
| 684 |
<visible>true</visible> |
| 685 |
<midichan>0</midichan> |
| 686 |
<midicc>0</midicc> |
| 687 |
<label>PLUCK WAVE :</label> |
| 688 |
<alignment>left</alignment> |
| 689 |
<font>Liberation Sans</font> |
| 690 |
<fontsize>10</fontsize> |
| 691 |
<precision>3</precision> |
| 692 |
<color> |
| 693 |
<r>0</r> |
| 694 |
<g>0</g> |
| 695 |
<b>0</b> |
| 696 |
</color> |
| 697 |
<bgcolor mode="nobackground"> |
| 698 |
<r>255</r> |
| 699 |
<g>255</g> |
| 700 |
<b>255</b> |
| 701 |
</bgcolor> |
| 702 |
<bordermode>noborder</bordermode> |
| 703 |
<borderradius>1</borderradius> |
| 704 |
<borderwidth>1</borderwidth> |
| 705 |
</bsbObject> |
| 706 |
<bsbObject version="2" type="BSBButton"> |
| 707 |
<objectName>_Browse</objectName> |
| 708 |
<x>8</x> |
| 709 |
<y>75</y> |
| 710 |
<width>170</width> |
| 711 |
<height>30</height> |
| 712 |
<uuid>{43341095-bc3a-4607-bd0e-01254da7bc67}</uuid> |
| 713 |
<visible>true</visible> |
| 714 |
<midichan>0</midichan> |
| 715 |
<midicc>0</midicc> |
| 716 |
<type>value</type> |
| 717 |
<pressedValue>1.00000000</pressedValue> |
| 718 |
<stringvalue>mandpluk.aiff</stringvalue> |
| 719 |
<text>Browse Audio File</text> |
| 720 |
<image>/</image> |
| 721 |
<eventLine/> |
| 722 |
<latch>false</latch> |
| 723 |
<latched>false</latched> |
| 724 |
</bsbObject> |
| 725 |
<bsbObject version="2" type="BSBLineEdit"> |
| 726 |
<objectName>_Browse</objectName> |
| 727 |
<x>177</x> |
| 728 |
<y>76</y> |
| 729 |
<width>330</width> |
| 730 |
<height>28</height> |
| 731 |
<uuid>{b66f3878-dfd0-4290-9b9d-73be88197222}</uuid> |
| 732 |
<visible>true</visible> |
| 733 |
<midichan>0</midichan> |
| 734 |
<midicc>0</midicc> |
| 735 |
<label>mandpluk.aiff</label> |
| 736 |
<alignment>left</alignment> |
| 737 |
<font>Arial</font> |
| 738 |
<fontsize>10</fontsize> |
| 739 |
<precision>3</precision> |
| 740 |
<color> |
| 741 |
<r>0</r> |
| 742 |
<g>0</g> |
| 743 |
<b>0</b> |
| 744 |
</color> |
| 745 |
<bgcolor mode="nobackground"> |
| 746 |
<r>240</r> |
| 747 |
<g>235</g> |
| 748 |
<b>226</b> |
| 749 |
</bgcolor> |
| 750 |
<background>nobackground</background> |
| 751 |
</bsbObject> |
| 752 |
</bsbPanel> |
| 753 |
<bsbPresets> |
| 754 |
</bsbPresets> |
| 755 |
<EventPanel name="" tempo="60.00000000" loop="8.00000000" x="913" y="162" width="655" height="346" visible="true" loopStart="0" loopEnd="0"> </EventPanel> |