1;Written by Iain McCurdy, 2011 2 3;Modified for QuteCsound by René, May 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 audio files and power of two tables for grain2 opcode, accept mono or stereo wav files 8; Instrument 1 is activated by MIDI and by the GUI, added pitchbend 9; Removed Recording instrument 99, included in QuteCsound 10; Add INIT instrument using QuteCsound Presets system 11 12 13;my flags on Ubuntu: -odac -b1024 -B2048 -+rtaudio=alsa -+rtmidi=alsa -Ma -m0 --midi-key-oct=4 --midi-velocity-amp=5 14<CsoundSynthesizer> 15<CsOptions> 16--env:SSDIR+=../SourceMaterials 17</CsOptions> 18<CsInstruments> 19sr = 44100 ;SAMPLE RATE 20ksmps = 64 ;NUMBER OF AUDIO SAMPLES IN EACH CONTROL CYCLE 21nchnls = 2 ;NUMBER OF CHANNELS (2=STEREO) 220dbfs = 1 ;MAXIMUM AMPLITUDE REGARDLESS OF BIT DEPTH 23 24 25gisine ftgen 0, 0, 4096, 10, 1 ;SINE WAVE 26gibuzz ftgen 0, 0, 2048, 11, 30, 1, 0.8 ;BUZZ WAVEFORM 27 28;GRAIN ENVELOPE WINDOW FUNCTION TABLES: 29giwfn1 ftgen 0, 0, 512, 20, 2 ;HANNING WINDOW 30giwfn2 ftgen 0, 0, 512, 7, 0, 12, 1, 500, 0 ;PERCUSSIVE - STRAIGHT SEGMENTS 31giwfn3 ftgen 0, 0, 512, 5, 0.001, 12, 1, 500, 0.001 ;PERCUSSIVE - EXPONENTIAL SEGMENTS 32giwfn4 ftgen 0, 0, 512, 7, 0, 6, 1, 500, 1, 6, 0 ;GATE - WITH ANTI-CLICK RAMP UP AND RAMP DOWN SEGMENTS 33giwfn5 ftgen 0, 0, 512, 7, 0, 500, 1, 12, 0 ;REVERSE PERCUSSIVE - STRAIGHT SEGMENTS 34giwfn6 ftgen 0, 0, 512, 5, 0.001, 500, 1, 12, 0.001 ;REVERSE PERCUSSIVE - EXPONENTIAL SEGMENTS 35 36 37instr 10 ;GUI 38 ktrig metro 10 39 if (ktrig == 1) then 40 ;BUTTONS 41 koptions1 invalue "Interp" 42 koptions2 invalue "NoInterp" 43 koptions3 invalue "FreqCont" 44 koptions4 invalue "SkipInit" 45 gkMIDIToPch invalue "MIDItoPch" 46 gkMIDIToDens invalue "MIDItoDens" 47 gkoptions = koptions1 + koptions2 + koptions3 + koptions4 48 49 ;SLIDERS 50 gkamp invalue "Amplitude" 51 gkdur invalue "GrainDuration" 52 gkratio invalue "PitchRatio" 53 gkcps invalue "PitchCPS" 54 gkfmd invalue "PitchOffset" 55 gkovrlp invalue "NbOverlaps" 56 gkfrpow invalue "RndPitchVar" 57 gkseedL invalue "SeedL" 58 gkseedR invalue "SeedR" 59 gkAtt invalue "Attack" 60 gkRel invalue "Release" 61 ;MENUS 62 gkwfn invalue "GrainEnvelope" 63 gksfn invalue "Input" 64 65 ;AUDIO FILE CHANGE / LOAD IN POWER OF 2 TABLES ********************************************************************************************** 66 Sfile_new strcpy "" ;INIT TO EMPTY STRING 67 68 Sfile invalue "_Browse" 69 Sfile_old strcpyk Sfile_new 70 Sfile_new strcpyk Sfile 71 kfile strcmpk Sfile_new, Sfile_old 72 73 gkfile_new init 0 74 if kfile != 0 then ;IF A BANG HAD BEEN GENERATED IN THE LINE ABOVE 75 gkfile_new = 1 ;Flag to inform instr 1 that a new file is loaded 76 reinit NEW_FILE ;REINITIALIZE FROM LABEL 'NEW_FILE' 77 endif 78 NEW_FILE: 79 ;grain2 accept only power of 2 table size 80 ifnTemp ftgentmp 0, 0, 0, 1, Sfile, 0, 0, 1 ;Temporary table to get the audio file size 81 iftlen = ftlen(ifnTemp) ;file size 82 giftlen2 pow 2, ceil(log(iftlen)/log(2)) ;high nearest power of two table size 83 84 ;FUNCTION TABLES NUMBERS OF THE SOUND FILE THAT WILL BE GRANULATED 85 ichn filenchnls Sfile 86 if ichn == 1 then 87 giFileL ftgentmp 0, 0, giftlen2, 1, Sfile, 0, 0, 1 ;READ MONO AUDIO FILE CHANNEL 1 88 giFileR = giFileL 89 else 90 giFileL ftgentmp 0, 0, giftlen2, 1, Sfile, 0, 0, 1 ;READ STEREO AUDIO FILE CHANNEL 1 91 giFileR ftgentmp 0, 0, giftlen2, 1, Sfile, 0, 0, 2 ;READ STEREO AUDIO FILE CHANNEL 2 92 endif 93;******************************************************************************************************************************************* 94 endif 95endin 96 97instr 1 ;GRAIN2 INSTRUMENT 98 if p4!=0 then ;MIDI 99 ioct = p4 ;READ OCT VALUE FROM MIDI INPUT 100 ;PITCH BEND============================================================================================= 101 iSemitoneBendRange = 12 ;PITCH BEND RANGE IN SEMITONES 102 imin = 0 ;EQUILIBRIUM POSITION 103 imax = iSemitoneBendRange * .0833333 ;MAX PITCH DISPLACEMENT (IN oct FORMAT) 104 kbend pchbend imin, imax ;PITCH BEND VARIABLE (IN oct FORMAT) 105 kcps = cpsoct(ioct + kbend) ;SET FUNDAMENTAL 106 ;======================================================================================================= 107 endif 108 109 kporttime linseg 0, 0.001, 0.1 ;CREATE A VARIABLE FUNCTION THAT RAPIDLY RAMPS UP TO A SET VALUE 110 111 if p4!=0 && gkMIDIToPch=1 then ;IF THIS IS A MIDI ACTIVATED NOTE AND MIDI-TO-PITCH SWITCH IS ON... 112 kratio = kcps/cpsoct(8) ;MAP TO MIDI NOTE VALUE TO PITCH (CONVERT TO RATIO: MIDDLE C IS POINT OF UNISON) 113 else ;OTHERWISE... 114 kratio portk gkratio, kporttime ;USE THE GUI SLIDER VALUE 115 kcps portk gkcps, kporttime ;USE THE GUI SLIDER VALUE 116 endif ;END OF THIS CONDITIONAL BRANCH 117 118 if p4!=0 && gkMIDIToDens=1 then ;IF THIS IS A MIDI ACTIVATED NOTE AND MIDI-TO-PITCH SWITCH IS ON... 119 gkovrlp = kcps ;MAP TO MIDI NOTE VALUE TO GRAIN DENSITY 120 endif ;END OF THIS CONDITIONAL BRANCH 121 122 if gkfile_new = 1 then ;test if a new file is loaded by instr 10 123 gkfile_new = 0 ;flag to zero for next file change 124 reinit START ;REINITIALIZE FROM LABEL 'NEW_FILE1' 125 endif 126 127 kSwitch changed gkoptions, gkwfn, gksfn, gkfrpow, gkseedL, gkseedR, gkovrlp 128 129 if kSwitch=1 then ;IF I-RATE VARIABLE CHANGE TRIGGER IS '1'... 130 reinit START ;BEGIN A REINITIALISATION PASS FROM LABEL 'START' 131 endif 132 133 START: 134 isfnL = giFileL ;SOURCE SOUND/WAVEFORM FUNCTION TABLE 135 isfnR = giFileR ;SOURCE SOUND/WAVEFORM FUNCTION TABLE 136 137 if i(gksfn)=1 then 138 isfnL = gisine 139 isfnR = isfnL 140 elseif i(gksfn)=2 then 141 isfnL = gibuzz 142 isfnR = isfnL 143 endif 144 145 if gksfn = 0 then ;IF INPUT TABLE FOR GRAINS IS A SOUND FILE... 146 kpitch = (sr*kratio)/giftlen2 147 else ;OTHERWISE (WAVEFORM)... 148 kpitch = kcps 149 endif 150 151 iwfn = giwfn1 + i(gkwfn) 152 153 aSigL grain2 kpitch, gkfmd, gkdur, i(gkovrlp), isfnL, iwfn, i(gkfrpow), i(gkseedL), i(gkoptions) 154 aSigR grain2 kpitch, gkfmd, gkdur, i(gkovrlp), isfnR, iwfn, i(gkfrpow), i(gkseedR), i(gkoptions) 155 156 rireturn ;RETURN TO PERFORMANCE TIME PASSES 157 158 aenv expsegr 0.0001, i(gkAtt), 1, i(gkRel), 0.0001 ;CLOUD AMPLITUDE ENVELOPE 159 outs aSigL * gkamp * aenv, aSigR * gkamp * aenv ;SEND AUDIO TO OUTPUTS 160endin 161 162instr 2 ;INIT 163 outvalue "_SetPresetIndex", 0 164endin 165</CsInstruments> 166<CsScore> 167;INSTR | START | DURATION 168i 10 0 3600 ;GUI 169 170i 2 0.1 0.01 ;INIT 171</CsScore> 172</CsoundSynthesizer> 173 174 175<bsbPanel> 176 <label>Widgets</label> 177 <objectName/> 178 <x>72</x> 179 <y>179</y> 180 <width>1054</width> 181 <height>564</height> 182 <visible>true</visible> 183 <uuid/> 184 <bgcolor mode="background"> 185 <r>241</r> 186 <g>226</g> 187 <b>185</b> 188 </bgcolor> 189 <bsbObject version="2" type="BSBLabel"> 190 <objectName/> 191 <x>2</x> 192 <y>2</y> 193 <width>1026</width> 194 <height>510</height> 195 <uuid>{aa607456-d368-4d59-8497-d16d608404c3}</uuid> 196 <visible>true</visible> 197 <midichan>0</midichan> 198 <midicc>0</midicc> 199 <label>grain2</label> 200 <alignment>center</alignment> 201 <font>Liberation Sans</font> 202 <fontsize>18</fontsize> 203 <precision>3</precision> 204 <color> 205 <r>255</r> 206 <g>255</g> 207 <b>255</b> 208 </color> 209 <bgcolor mode="background"> 210 <r>0</r> 211 <g>85</g> 212 <b>0</b> 213 </bgcolor> 214 <bordermode>border</bordermode> 215 <borderradius>5</borderradius> 216 <borderwidth>2</borderwidth> 217 </bsbObject> 218 <bsbObject version="2" type="BSBButton"> 219 <objectName/> 220 <x>8</x> 221 <y>8</y> 222 <width>120</width> 223 <height>30</height> 224 <uuid>{55273d97-d39a-441c-8da6-87ea139493b6}</uuid> 225 <visible>true</visible> 226 <midichan>0</midichan> 227 <midicc>0</midicc> 228 <type>event</type> 229 <pressedValue>1.00000000</pressedValue> 230 <stringvalue/> 231 <text> On / Off (MIDI)</text> 232 <image>/</image> 233 <eventLine>i1 0 -1</eventLine> 234 <latch>true</latch> 235 <latched>false</latched> 236 </bsbObject> 237 <bsbObject version="2" type="BSBLabel"> 238 <objectName/> 239 <x>8</x> 240 <y>148</y> 241 <width>180</width> 242 <height>26</height> 243 <uuid>{8d67138b-037d-461e-8a25-108f849b03c2}</uuid> 244 <visible>true</visible> 245 <midichan>0</midichan> 246 <midicc>0</midicc> 247 <label>Pitch Ratio (SOUND FILE INPUT)</label> 248 <alignment>left</alignment> 249 <font>Liberation Sans</font> 250 <fontsize>10</fontsize> 251 <precision>3</precision> 252 <color> 253 <r>255</r> 254 <g>255</g> 255 <b>255</b> 256 </color> 257 <bgcolor mode="nobackground"> 258 <r>255</r> 259 <g>255</g> 260 <b>255</b> 261 </bgcolor> 262 <bordermode>noborder</bordermode> 263 <borderradius>1</borderradius> 264 <borderwidth>1</borderwidth> 265 </bsbObject> 266 <bsbObject version="2" type="BSBHSlider"> 267 <objectName>PitchRatio</objectName> 268 <x>8</x> 269 <y>125</y> 270 <width>500</width> 271 <height>27</height> 272 <uuid>{273087bd-e04a-4975-a3bd-5b0a8b5fd40a}</uuid> 273 <visible>true</visible> 274 <midichan>0</midichan> 275 <midicc>0</midicc> 276 <minimum>0.12500000</minimum> 277 <maximum>4.00000000</maximum> 278 <value>1.00000000</value> 279 <mode>lin</mode> 280 <mouseControl act="jump">continuous</mouseControl> 281 <resolution>-1.00000000</resolution> 282 <randomizable group="0">false</randomizable> 283 </bsbObject> 284 <bsbObject version="2" type="BSBDisplay"> 285 <objectName>PitchRatio</objectName> 286 <x>448</x> 287 <y>148</y> 288 <width>60</width> 289 <height>26</height> 290 <uuid>{04617e86-7abe-4120-bb9b-1d6ccd2f0983}</uuid> 291 <visible>true</visible> 292 <midichan>0</midichan> 293 <midicc>0</midicc> 294 <label>1.000</label> 295 <alignment>right</alignment> 296 <font>Liberation Sans</font> 297 <fontsize>9</fontsize> 298 <precision>3</precision> 299 <color> 300 <r>255</r> 301 <g>255</g> 302 <b>255</b> 303 </color> 304 <bgcolor mode="nobackground"> 305 <r>255</r> 306 <g>255</g> 307 <b>255</b> 308 </bgcolor> 309 <bordermode>noborder</bordermode> 310 <borderradius>1</borderradius> 311 <borderwidth>1</borderwidth> 312 </bsbObject> 313 <bsbObject version="2" type="BSBButton"> 314 <objectName>_Browse</objectName> 315 <x>521</x> 316 <y>62</y> 317 <width>170</width> 318 <height>30</height> 319 <uuid>{1757a18f-b418-4ef1-984d-bdee5e985805}</uuid> 320 <visible>true</visible> 321 <midichan>0</midichan> 322 <midicc>0</midicc> 323 <type>value</type> 324 <pressedValue>1.00000000</pressedValue> 325 <stringvalue>AndItsAll.wav</stringvalue> 326 <text>Browse Audio File</text> 327 <image>/</image> 328 <eventLine/> 329 <latch>false</latch> 330 <latched>false</latched> 331 </bsbObject> 332 <bsbObject version="2" type="BSBLineEdit"> 333 <objectName>_Browse</objectName> 334 <x>691</x> 335 <y>63</y> 336 <width>330</width> 337 <height>28</height> 338 <uuid>{804f4f24-03f1-4ac2-8ba2-697f15df06cf}</uuid> 339 <visible>true</visible> 340 <midichan>0</midichan> 341 <midicc>0</midicc> 342 <label>AndItsAll.wav</label> 343 <alignment>left</alignment> 344 <font>Liberation Sans</font> 345 <fontsize>10</fontsize> 346 <precision>3</precision> 347 <color> 348 <r>0</r> 349 <g>0</g> 350 <b>0</b> 351 </color> 352 <bgcolor mode="nobackground"> 353 <r>206</r> 354 <g>206</g> 355 <b>206</b> 356 </bgcolor> 357 <background>nobackground</background> 358 </bsbObject> 359 <bsbObject version="2" type="BSBLabel"> 360 <objectName/> 361 <x>521</x> 362 <y>41</y> 363 <width>120</width> 364 <height>30</height> 365 <uuid>{a918d231-4dd1-4893-81ef-bf453535bda6}</uuid> 366 <visible>true</visible> 367 <midichan>0</midichan> 368 <midicc>0</midicc> 369 <label>Input File</label> 370 <alignment>left</alignment> 371 <font>Liberation Sans</font> 372 <fontsize>10</fontsize> 373 <precision>3</precision> 374 <color> 375 <r>255</r> 376 <g>255</g> 377 <b>255</b> 378 </color> 379 <bgcolor mode="nobackground"> 380 <r>255</r> 381 <g>255</g> 382 <b>255</b> 383 </bgcolor> 384 <bordermode>noborder</bordermode> 385 <borderradius>1</borderradius> 386 <borderwidth>1</borderwidth> 387 </bsbObject> 388 <bsbObject version="2" type="BSBLabel"> 389 <objectName/> 390 <x>8</x> 391 <y>106</y> 392 <width>180</width> 393 <height>26</height> 394 <uuid>{93f3e274-799d-49e8-9392-4d8c6ad43ae2}</uuid> 395 <visible>true</visible> 396 <midichan>0</midichan> 397 <midicc>0</midicc> 398 <label>Grain Duration (ms)</label> 399 <alignment>left</alignment> 400 <font>Liberation Sans</font> 401 <fontsize>10</fontsize> 402 <precision>3</precision> 403 <color> 404 <r>255</r> 405 <g>255</g> 406 <b>255</b> 407 </color> 408 <bgcolor mode="nobackground"> 409 <r>255</r> 410 <g>255</g> 411 <b>255</b> 412 </bgcolor> 413 <bordermode>noborder</bordermode> 414 <borderradius>1</borderradius> 415 <borderwidth>1</borderwidth> 416 </bsbObject> 417 <bsbObject version="2" type="BSBHSlider"> 418 <objectName>GrainDuration</objectName> 419 <x>8</x> 420 <y>83</y> 421 <width>500</width> 422 <height>27</height> 423 <uuid>{89741b38-8333-4828-b8b8-656cff90d564}</uuid> 424 <visible>true</visible> 425 <midichan>0</midichan> 426 <midicc>0</midicc> 427 <minimum>0.00100000</minimum> 428 <maximum>1.00000000</maximum> 429 <value>0.25000000</value> 430 <mode>lin</mode> 431 <mouseControl act="jump">continuous</mouseControl> 432 <resolution>-1.00000000</resolution> 433 <randomizable group="0">false</randomizable> 434 </bsbObject> 435 <bsbObject version="2" type="BSBDisplay"> 436 <objectName>GrainDuration</objectName> 437 <x>448</x> 438 <y>106</y> 439 <width>60</width> 440 <height>26</height> 441 <uuid>{d1569d45-d5fa-452c-b69f-0b3e0b47cd01}</uuid> 442 <visible>true</visible> 443 <midichan>0</midichan> 444 <midicc>0</midicc> 445 <label>0.250</label> 446 <alignment>right</alignment> 447 <font>Liberation Sans</font> 448 <fontsize>9</fontsize> 449 <precision>3</precision> 450 <color> 451 <r>255</r> 452 <g>255</g> 453 <b>255</b> 454 </color> 455 <bgcolor mode="nobackground"> 456 <r>255</r> 457 <g>255</g> 458 <b>255</b> 459 </bgcolor> 460 <bordermode>noborder</bordermode> 461 <borderradius>1</borderradius> 462 <borderwidth>1</borderwidth> 463 </bsbObject> 464 <bsbObject version="2" type="BSBLabel"> 465 <objectName/> 466 <x>8</x> 467 <y>190</y> 468 <width>180</width> 469 <height>26</height> 470 <uuid>{9d200fd9-5a42-4f87-89ab-14ef5ac064ba}</uuid> 471 <visible>true</visible> 472 <midichan>0</midichan> 473 <midicc>0</midicc> 474 <label>Pitch CPS (WAVEFORM INPUT)</label> 475 <alignment>left</alignment> 476 <font>Liberation Sans</font> 477 <fontsize>10</fontsize> 478 <precision>3</precision> 479 <color> 480 <r>255</r> 481 <g>255</g> 482 <b>255</b> 483 </color> 484 <bgcolor mode="nobackground"> 485 <r>255</r> 486 <g>255</g> 487 <b>255</b> 488 </bgcolor> 489 <bordermode>noborder</bordermode> 490 <borderradius>1</borderradius> 491 <borderwidth>1</borderwidth> 492 </bsbObject> 493 <bsbObject version="2" type="BSBHSlider"> 494 <objectName>PitchCPS</objectName> 495 <x>8</x> 496 <y>167</y> 497 <width>500</width> 498 <height>27</height> 499 <uuid>{ecd7a8b0-5bb3-4479-b692-e56294223499}</uuid> 500 <visible>true</visible> 501 <midichan>0</midichan> 502 <midicc>0</midicc> 503 <minimum>1.00000000</minimum> 504 <maximum>5000.00000000</maximum> 505 <value>300.00000000</value> 506 <mode>lin</mode> 507 <mouseControl act="jump">continuous</mouseControl> 508 <resolution>-1.00000000</resolution> 509 <randomizable group="0">false</randomizable> 510 </bsbObject> 511 <bsbObject version="2" type="BSBDisplay"> 512 <objectName>PitchCPS</objectName> 513 <x>448</x> 514 <y>190</y> 515 <width>60</width> 516 <height>26</height> 517 <uuid>{f275c8fd-3605-49e8-9090-67ca5f21a9f6}</uuid> 518 <visible>true</visible> 519 <midichan>0</midichan> 520 <midicc>0</midicc> 521 <label>300.000</label> 522 <alignment>right</alignment> 523 <font>Liberation Sans</font> 524 <fontsize>9</fontsize> 525 <precision>3</precision> 526 <color> 527 <r>255</r> 528 <g>255</g> 529 <b>255</b> 530 </color> 531 <bgcolor mode="nobackground"> 532 <r>255</r> 533 <g>255</g> 534 <b>255</b> 535 </bgcolor> 536 <bordermode>noborder</bordermode> 537 <borderradius>1</borderradius> 538 <borderwidth>1</borderwidth> 539 </bsbObject> 540 <bsbObject version="2" type="BSBLabel"> 541 <objectName/> 542 <x>8</x> 543 <y>64</y> 544 <width>180</width> 545 <height>26</height> 546 <uuid>{5cde19f3-b356-4945-9c8b-43dd67c604dd}</uuid> 547 <visible>true</visible> 548 <midichan>0</midichan> 549 <midicc>0</midicc> 550 <label>Amplitude</label> 551 <alignment>left</alignment> 552 <font>Liberation Sans</font> 553 <fontsize>10</fontsize> 554 <precision>3</precision> 555 <color> 556 <r>255</r> 557 <g>255</g> 558 <b>255</b> 559 </color> 560 <bgcolor mode="nobackground"> 561 <r>255</r> 562 <g>255</g> 563 <b>255</b> 564 </bgcolor> 565 <bordermode>noborder</bordermode> 566 <borderradius>1</borderradius> 567 <borderwidth>1</borderwidth> 568 </bsbObject> 569 <bsbObject version="2" type="BSBHSlider"> 570 <objectName>Amplitude</objectName> 571 <x>8</x> 572 <y>41</y> 573 <width>500</width> 574 <height>27</height> 575 <uuid>{d6d73a88-8d82-47de-a067-758f1917a3f2}</uuid> 576 <visible>true</visible> 577 <midichan>0</midichan> 578 <midicc>0</midicc> 579 <minimum>0.00000000</minimum> 580 <maximum>1.00000000</maximum> 581 <value>0.25000000</value> 582 <mode>lin</mode> 583 <mouseControl act="jump">continuous</mouseControl> 584 <resolution>-1.00000000</resolution> 585 <randomizable group="0">false</randomizable> 586 </bsbObject> 587 <bsbObject version="2" type="BSBDisplay"> 588 <objectName>Amplitude</objectName> 589 <x>448</x> 590 <y>64</y> 591 <width>60</width> 592 <height>26</height> 593 <uuid>{073ad371-9227-46fa-a005-ac10a210db79}</uuid> 594 <visible>true</visible> 595 <midichan>0</midichan> 596 <midicc>0</midicc> 597 <label>0.250</label> 598 <alignment>right</alignment> 599 <font>Liberation Sans</font> 600 <fontsize>9</fontsize> 601 <precision>3</precision> 602 <color> 603 <r>255</r> 604 <g>255</g> 605 <b>255</b> 606 </color> 607 <bgcolor mode="nobackground"> 608 <r>255</r> 609 <g>255</g> 610 <b>255</b> 611 </bgcolor> 612 <bordermode>noborder</bordermode> 613 <borderradius>1</borderradius> 614 <borderwidth>1</borderwidth> 615 </bsbObject> 616 <bsbObject version="2" type="BSBLabel"> 617 <objectName/> 618 <x>521</x> 619 <y>319</y> 620 <width>500</width> 621 <height>80</height> 622 <uuid>{b83b9228-3958-46d8-adf5-262b04a121c6}</uuid> 623 <visible>true</visible> 624 <midichan>0</midichan> 625 <midicc>0</midicc> 626 <label>Grain Cloud Envelope</label> 627 <alignment>left</alignment> 628 <font>Liberation Sans</font> 629 <fontsize>14</fontsize> 630 <precision>3</precision> 631 <color> 632 <r>255</r> 633 <g>255</g> 634 <b>255</b> 635 </color> 636 <bgcolor mode="nobackground"> 637 <r>255</r> 638 <g>255</g> 639 <b>255</b> 640 </bgcolor> 641 <bordermode>border</bordermode> 642 <borderradius>1</borderradius> 643 <borderwidth>1</borderwidth> 644 </bsbObject> 645 <bsbObject version="2" type="BSBLabel"> 646 <objectName/> 647 <x>521</x> 648 <y>365</y> 649 <width>180</width> 650 <height>30</height> 651 <uuid>{489dc531-f476-4ca3-b56d-f970ee2c49aa}</uuid> 652 <visible>true</visible> 653 <midichan>0</midichan> 654 <midicc>0</midicc> 655 <label>Attack Time</label> 656 <alignment>left</alignment> 657 <font>Liberation Sans</font> 658 <fontsize>10</fontsize> 659 <precision>3</precision> 660 <color> 661 <r>255</r> 662 <g>255</g> 663 <b>255</b> 664 </color> 665 <bgcolor mode="nobackground"> 666 <r>255</r> 667 <g>255</g> 668 <b>255</b> 669 </bgcolor> 670 <bordermode>noborder</bordermode> 671 <borderradius>1</borderradius> 672 <borderwidth>1</borderwidth> 673 </bsbObject> 674 <bsbObject version="2" type="BSBHSlider"> 675 <objectName>Attack</objectName> 676 <x>521</x> 677 <y>342</y> 678 <width>250</width> 679 <height>27</height> 680 <uuid>{dbdbe7cb-a74d-45b2-9e47-e5c0594f3ea5}</uuid> 681 <visible>true</visible> 682 <midichan>0</midichan> 683 <midicc>0</midicc> 684 <minimum>0.05000000</minimum> 685 <maximum>10.00000000</maximum> 686 <value>0.05000000</value> 687 <mode>lin</mode> 688 <mouseControl act="jump">continuous</mouseControl> 689 <resolution>-1.00000000</resolution> 690 <randomizable group="0">false</randomizable> 691 </bsbObject> 692 <bsbObject version="2" type="BSBDisplay"> 693 <objectName>Attack</objectName> 694 <x>711</x> 695 <y>365</y> 696 <width>60</width> 697 <height>30</height> 698 <uuid>{2aea18ca-8a9a-457a-8de3-cb7c918a4e3b}</uuid> 699 <visible>true</visible> 700 <midichan>0</midichan> 701 <midicc>0</midicc> 702 <label>0.050</label> 703 <alignment>right</alignment> 704 <font>Liberation Sans</font> 705 <fontsize>9</fontsize> 706 <precision>3</precision> 707 <color> 708 <r>255</r> 709 <g>255</g> 710 <b>255</b> 711 </color> 712 <bgcolor mode="nobackground"> 713 <r>255</r> 714 <g>255</g> 715 <b>255</b> 716 </bgcolor> 717 <bordermode>noborder</bordermode> 718 <borderradius>1</borderradius> 719 <borderwidth>1</borderwidth> 720 </bsbObject> 721 <bsbObject version="2" type="BSBDisplay"> 722 <objectName>Release</objectName> 723 <x>961</x> 724 <y>365</y> 725 <width>60</width> 726 <height>30</height> 727 <uuid>{ea7f84c3-e2da-4b1c-a79e-61c2a264d20c}</uuid> 728 <visible>true</visible> 729 <midichan>0</midichan> 730 <midicc>0</midicc> 731 <label>0.050</label> 732 <alignment>right</alignment> 733 <font>Liberation Sans</font> 734 <fontsize>9</fontsize> 735 <precision>3</precision> 736 <color> 737 <r>255</r> 738 <g>255</g> 739 <b>255</b> 740 </color> 741 <bgcolor mode="nobackground"> 742 <r>255</r> 743 <g>255</g> 744 <b>255</b> 745 </bgcolor> 746 <bordermode>noborder</bordermode> 747 <borderradius>1</borderradius> 748 <borderwidth>1</borderwidth> 749 </bsbObject> 750 <bsbObject version="2" type="BSBHSlider"> 751 <objectName>Release</objectName> 752 <x>771</x> 753 <y>342</y> 754 <width>250</width> 755 <height>27</height> 756 <uuid>{cb664a0c-f84b-41f5-92e9-7deb5a672d56}</uuid> 757 <visible>true</visible> 758 <midichan>0</midichan> 759 <midicc>0</midicc> 760 <minimum>0.05000000</minimum> 761 <maximum>10.00000000</maximum> 762 <value>0.05000000</value> 763 <mode>lin</mode> 764 <mouseControl act="jump">continuous</mouseControl> 765 <resolution>-1.00000000</resolution> 766 <randomizable group="0">false</randomizable> 767 </bsbObject> 768 <bsbObject version="2" type="BSBLabel"> 769 <objectName/> 770 <x>771</x> 771 <y>365</y> 772 <width>180</width> 773 <height>30</height> 774 <uuid>{7a8b8cb8-12e8-415d-b11c-fb0d460c9e6f}</uuid> 775 <visible>true</visible> 776 <midichan>0</midichan> 777 <midicc>0</midicc> 778 <label>Release Time</label> 779 <alignment>left</alignment> 780 <font>Liberation Sans</font> 781 <fontsize>10</fontsize> 782 <precision>3</precision> 783 <color> 784 <r>255</r> 785 <g>255</g> 786 <b>255</b> 787 </color> 788 <bgcolor mode="nobackground"> 789 <r>255</r> 790 <g>255</g> 791 <b>255</b> 792 </bgcolor> 793 <bordermode>noborder</bordermode> 794 <borderradius>1</borderradius> 795 <borderwidth>1</borderwidth> 796 </bsbObject> 797 <bsbObject version="2" type="BSBLabel"> 798 <objectName/> 799 <x>8</x> 800 <y>316</y> 801 <width>220</width> 802 <height>26</height> 803 <uuid>{b6afbe1e-677c-44a6-ba84-4c32dc21b0a7}</uuid> 804 <visible>true</visible> 805 <midichan>0</midichan> 806 <midicc>0</midicc> 807 <label>Distribution of Random Pitch Variation</label> 808 <alignment>left</alignment> 809 <font>Liberation Sans</font> 810 <fontsize>10</fontsize> 811 <precision>3</precision> 812 <color> 813 <r>255</r> 814 <g>255</g> 815 <b>255</b> 816 </color> 817 <bgcolor mode="nobackground"> 818 <r>255</r> 819 <g>255</g> 820 <b>255</b> 821 </bgcolor> 822 <bordermode>noborder</bordermode> 823 <borderradius>1</borderradius> 824 <borderwidth>1</borderwidth> 825 </bsbObject> 826 <bsbObject version="2" type="BSBHSlider"> 827 <objectName>RndPitchVar</objectName> 828 <x>8</x> 829 <y>293</y> 830 <width>500</width> 831 <height>27</height> 832 <uuid>{859d1ded-b337-4ee7-ac9b-48a1b5f77d16}</uuid> 833 <visible>true</visible> 834 <midichan>0</midichan> 835 <midicc>0</midicc> 836 <minimum>-2.00000000</minimum> 837 <maximum>2.00000000</maximum> 838 <value>2.00000000</value> 839 <mode>lin</mode> 840 <mouseControl act="jump">continuous</mouseControl> 841 <resolution>-1.00000000</resolution> 842 <randomizable group="0">false</randomizable> 843 </bsbObject> 844 <bsbObject version="2" type="BSBDisplay"> 845 <objectName>RndPitchVar</objectName> 846 <x>448</x> 847 <y>316</y> 848 <width>60</width> 849 <height>26</height> 850 <uuid>{95f6cb02-77ec-46fe-876b-a93efac3c5e5}</uuid> 851 <visible>true</visible> 852 <midichan>0</midichan> 853 <midicc>0</midicc> 854 <label>2.000</label> 855 <alignment>right</alignment> 856 <font>Liberation Sans</font> 857 <fontsize>9</fontsize> 858 <precision>3</precision> 859 <color> 860 <r>255</r> 861 <g>255</g> 862 <b>255</b> 863 </color> 864 <bgcolor mode="nobackground"> 865 <r>255</r> 866 <g>255</g> 867 <b>255</b> 868 </bgcolor> 869 <bordermode>noborder</bordermode> 870 <borderradius>1</borderradius> 871 <borderwidth>1</borderwidth> 872 </bsbObject> 873 <bsbObject version="2" type="BSBLabel"> 874 <objectName/> 875 <x>8</x> 876 <y>274</y> 877 <width>180</width> 878 <height>26</height> 879 <uuid>{7fd47947-fd0d-4964-85e5-682fed1916c7}</uuid> 880 <visible>true</visible> 881 <midichan>0</midichan> 882 <midicc>0</midicc> 883 <label>Number of Overlaps</label> 884 <alignment>left</alignment> 885 <font>Liberation Sans</font> 886 <fontsize>10</fontsize> 887 <precision>3</precision> 888 <color> 889 <r>255</r> 890 <g>255</g> 891 <b>255</b> 892 </color> 893 <bgcolor mode="nobackground"> 894 <r>255</r> 895 <g>255</g> 896 <b>255</b> 897 </bgcolor> 898 <bordermode>noborder</bordermode> 899 <borderradius>1</borderradius> 900 <borderwidth>1</borderwidth> 901 </bsbObject> 902 <bsbObject version="2" type="BSBHSlider"> 903 <objectName>NbOverlaps</objectName> 904 <x>8</x> 905 <y>251</y> 906 <width>500</width> 907 <height>27</height> 908 <uuid>{475cdd64-a4ca-4ebc-a000-90448e932478}</uuid> 909 <visible>true</visible> 910 <midichan>0</midichan> 911 <midicc>0</midicc> 912 <minimum>1.00000000</minimum> 913 <maximum>200.00000000</maximum> 914 <value>10.00000000</value> 915 <mode>lin</mode> 916 <mouseControl act="jump">continuous</mouseControl> 917 <resolution>-1.00000000</resolution> 918 <randomizable group="0">false</randomizable> 919 </bsbObject> 920 <bsbObject version="2" type="BSBDisplay"> 921 <objectName>NbOverlaps</objectName> 922 <x>448</x> 923 <y>274</y> 924 <width>60</width> 925 <height>26</height> 926 <uuid>{dc75acc2-c015-4b8d-8fb2-467b9fb96d42}</uuid> 927 <visible>true</visible> 928 <midichan>0</midichan> 929 <midicc>0</midicc> 930 <label>10.000</label> 931 <alignment>right</alignment> 932 <font>Liberation Sans</font> 933 <fontsize>9</fontsize> 934 <precision>3</precision> 935 <color> 936 <r>255</r> 937 <g>255</g> 938 <b>255</b> 939 </color> 940 <bgcolor mode="nobackground"> 941 <r>255</r> 942 <g>255</g> 943 <b>255</b> 944 </bgcolor> 945 <bordermode>noborder</bordermode> 946 <borderradius>1</borderradius> 947 <borderwidth>1</borderwidth> 948 </bsbObject> 949 <bsbObject version="2" type="BSBLabel"> 950 <objectName/> 951 <x>8</x> 952 <y>232</y> 953 <width>180</width> 954 <height>26</height> 955 <uuid>{3ebc1139-1fdb-48dc-9150-49ee8dfdbd4a}</uuid> 956 <visible>true</visible> 957 <midichan>0</midichan> 958 <midicc>0</midicc> 959 <label>Pitch Offset</label> 960 <alignment>left</alignment> 961 <font>Liberation Sans</font> 962 <fontsize>10</fontsize> 963 <precision>3</precision> 964 <color> 965 <r>255</r> 966 <g>255</g> 967 <b>255</b> 968 </color> 969 <bgcolor mode="nobackground"> 970 <r>255</r> 971 <g>255</g> 972 <b>255</b> 973 </bgcolor> 974 <bordermode>noborder</bordermode> 975 <borderradius>1</borderradius> 976 <borderwidth>1</borderwidth> 977 </bsbObject> 978 <bsbObject version="2" type="BSBHSlider"> 979 <objectName>PitchOffset</objectName> 980 <x>8</x> 981 <y>209</y> 982 <width>500</width> 983 <height>27</height> 984 <uuid>{2cf97843-5b49-438e-8034-62a459597e86}</uuid> 985 <visible>true</visible> 986 <midichan>0</midichan> 987 <midicc>0</midicc> 988 <minimum>0.00000000</minimum> 989 <maximum>0.30000000</maximum> 990 <value>0.00000000</value> 991 <mode>lin</mode> 992 <mouseControl act="jump">continuous</mouseControl> 993 <resolution>-1.00000000</resolution> 994 <randomizable group="0">false</randomizable> 995 </bsbObject> 996 <bsbObject version="2" type="BSBDisplay"> 997 <objectName>PitchOffset</objectName> 998 <x>448</x> 999 <y>232</y> 1000 <width>60</width> 1001 <height>26</height> 1002 <uuid>{e54486c5-f9aa-4d0e-9a67-6506dae3c790}</uuid> 1003 <visible>true</visible> 1004 <midichan>0</midichan> 1005 <midicc>0</midicc> 1006 <label>0.000</label> 1007 <alignment>right</alignment> 1008 <font>Liberation Sans</font> 1009 <fontsize>9</fontsize> 1010 <precision>3</precision> 1011 <color> 1012 <r>255</r> 1013 <g>255</g> 1014 <b>255</b> 1015 </color> 1016 <bgcolor mode="nobackground"> 1017 <r>255</r> 1018 <g>255</g> 1019 <b>255</b> 1020 </bgcolor> 1021 <bordermode>noborder</bordermode> 1022 <borderradius>1</borderradius> 1023 <borderwidth>1</borderwidth> 1024 </bsbObject> 1025 <bsbObject version="2" type="BSBButton"> 1026 <objectName>Interp</objectName> 1027 <x>643</x> 1028 <y>198</y> 1029 <width>16</width> 1030 <height>16</height> 1031 <uuid>{c91fbe77-0e64-47c4-8d0c-8e11c6357c65}</uuid> 1032 <visible>true</visible> 1033 <midichan>0</midichan> 1034 <midicc>0</midicc> 1035 <type>value</type> 1036 <pressedValue>8.00000000</pressedValue> 1037 <stringvalue/> 1038 <text/> 1039 <image>/</image> 1040 <eventLine/> 1041 <latch>true</latch> 1042 <latched>false</latched> 1043 </bsbObject> 1044 <bsbObject version="2" type="BSBButton"> 1045 <objectName>NoInterp</objectName> 1046 <x>781</x> 1047 <y>198</y> 1048 <width>16</width> 1049 <height>16</height> 1050 <uuid>{82fb9bb8-870c-4d99-aa2c-e0737632eaaa}</uuid> 1051 <visible>true</visible> 1052 <midichan>0</midichan> 1053 <midicc>0</midicc> 1054 <type>value</type> 1055 <pressedValue>4.00000000</pressedValue> 1056 <stringvalue/> 1057 <text/> 1058 <image>/</image> 1059 <eventLine/> 1060 <latch>true</latch> 1061 <latched>false</latched> 1062 </bsbObject> 1063 <bsbObject version="2" type="BSBLabel"> 1064 <objectName/> 1065 <x>673</x> 1066 <y>189</y> 1067 <width>107</width> 1068 <height>35</height> 1069 <uuid>{ce374c64-8397-44a6-994b-4965d6d27f36}</uuid> 1070 <visible>true</visible> 1071 <midichan>0</midichan> 1072 <midicc>0</midicc> 1073 <label>Do Not Interpolate 1074Grain Waveform</label> 1075 <alignment>right</alignment> 1076 <font>Liberation Sans</font> 1077 <fontsize>10</fontsize> 1078 <precision>3</precision> 1079 <color> 1080 <r>255</r> 1081 <g>255</g> 1082 <b>255</b> 1083 </color> 1084 <bgcolor mode="nobackground"> 1085 <r>255</r> 1086 <g>255</g> 1087 <b>255</b> 1088 </bgcolor> 1089 <bordermode>noborder</bordermode> 1090 <borderradius>1</borderradius> 1091 <borderwidth>1</borderwidth> 1092 </bsbObject> 1093 <bsbObject version="2" type="BSBButton"> 1094 <objectName>SkipInit</objectName> 1095 <x>643</x> 1096 <y>229</y> 1097 <width>16</width> 1098 <height>16</height> 1099 <uuid>{a25a48b1-9ba9-49b7-a190-19023a8e37e7}</uuid> 1100 <visible>true</visible> 1101 <midichan>0</midichan> 1102 <midicc>0</midicc> 1103 <type>value</type> 1104 <pressedValue>1.00000000</pressedValue> 1105 <stringvalue/> 1106 <text/> 1107 <image>/</image> 1108 <eventLine/> 1109 <latch>true</latch> 1110 <latched>false</latched> 1111 </bsbObject> 1112 <bsbObject version="2" type="BSBButton"> 1113 <objectName>MIDItoPch</objectName> 1114 <x>781</x> 1115 <y>229</y> 1116 <width>16</width> 1117 <height>16</height> 1118 <uuid>{15cb1c0c-7f3b-4f53-93c1-383a67f11366}</uuid> 1119 <visible>true</visible> 1120 <midichan>0</midichan> 1121 <midicc>0</midicc> 1122 <type>value</type> 1123 <pressedValue>1.00000000</pressedValue> 1124 <stringvalue/> 1125 <text/> 1126 <image>/</image> 1127 <eventLine/> 1128 <latch>true</latch> 1129 <latched>false</latched> 1130 </bsbObject> 1131 <bsbObject version="2" type="BSBLabel"> 1132 <objectName/> 1133 <x>673</x> 1134 <y>225</y> 1135 <width>107</width> 1136 <height>30</height> 1137 <uuid>{efdeda47-7ac4-4566-8c07-9f1a98886c5e}</uuid> 1138 <visible>true</visible> 1139 <midichan>0</midichan> 1140 <midicc>0</midicc> 1141 <label>MIDI to Pitch</label> 1142 <alignment>right</alignment> 1143 <font>Liberation Sans</font> 1144 <fontsize>10</fontsize> 1145 <precision>3</precision> 1146 <color> 1147 <r>255</r> 1148 <g>255</g> 1149 <b>255</b> 1150 </color> 1151 <bgcolor mode="nobackground"> 1152 <r>255</r> 1153 <g>255</g> 1154 <b>255</b> 1155 </bgcolor> 1156 <bordermode>noborder</bordermode> 1157 <borderradius>1</borderradius> 1158 <borderwidth>1</borderwidth> 1159 </bsbObject> 1160 <bsbObject version="2" type="BSBLabel"> 1161 <objectName/> 1162 <x>521</x> 1163 <y>225</y> 1164 <width>120</width> 1165 <height>30</height> 1166 <uuid>{cbf5c49d-eea8-45cb-97d8-736f42feddb2}</uuid> 1167 <visible>true</visible> 1168 <midichan>0</midichan> 1169 <midicc>0</midicc> 1170 <label>Skip Initialisation</label> 1171 <alignment>right</alignment> 1172 <font>Liberation Sans</font> 1173 <fontsize>10</fontsize> 1174 <precision>3</precision> 1175 <color> 1176 <r>255</r> 1177 <g>255</g> 1178 <b>255</b> 1179 </color> 1180 <bgcolor mode="nobackground"> 1181 <r>255</r> 1182 <g>255</g> 1183 <b>255</b> 1184 </bgcolor> 1185 <bordermode>noborder</bordermode> 1186 <borderradius>1</borderradius> 1187 <borderwidth>1</borderwidth> 1188 </bsbObject> 1189 <bsbObject version="2" type="BSBButton"> 1190 <objectName>FreqCont</objectName> 1191 <x>919</x> 1192 <y>198</y> 1193 <width>16</width> 1194 <height>16</height> 1195 <uuid>{f65b4392-389d-48ca-ba17-ab82ffa05bbc}</uuid> 1196 <visible>true</visible> 1197 <midichan>0</midichan> 1198 <midicc>0</midicc> 1199 <type>value</type> 1200 <pressedValue>2.00000000</pressedValue> 1201 <stringvalue/> 1202 <text/> 1203 <image>/</image> 1204 <eventLine/> 1205 <latch>true</latch> 1206 <latched>false</latched> 1207 </bsbObject> 1208 <bsbObject version="2" type="BSBLabel"> 1209 <objectName/> 1210 <x>799</x> 1211 <y>189</y> 1212 <width>120</width> 1213 <height>35</height> 1214 <uuid>{d98d1d5d-8b96-4ca5-b011-fbd6e2e8b2f7}</uuid> 1215 <visible>true</visible> 1216 <midichan>0</midichan> 1217 <midicc>0</midicc> 1218 <label>Continuous Freq 1219Modulation</label> 1220 <alignment>right</alignment> 1221 <font>Liberation Sans</font> 1222 <fontsize>10</fontsize> 1223 <precision>3</precision> 1224 <color> 1225 <r>255</r> 1226 <g>255</g> 1227 <b>255</b> 1228 </color> 1229 <bgcolor mode="nobackground"> 1230 <r>255</r> 1231 <g>255</g> 1232 <b>255</b> 1233 </bgcolor> 1234 <bordermode>noborder</bordermode> 1235 <borderradius>1</borderradius> 1236 <borderwidth>1</borderwidth> 1237 </bsbObject> 1238 <bsbObject version="2" type="BSBButton"> 1239 <objectName>MIDItoDens</objectName> 1240 <x>919</x> 1241 <y>229</y> 1242 <width>16</width> 1243 <height>16</height> 1244 <uuid>{6083872a-d937-4f30-ae49-bc3a1cccab54}</uuid> 1245 <visible>true</visible> 1246 <midichan>0</midichan> 1247 <midicc>0</midicc> 1248 <type>value</type> 1249 <pressedValue>1.00000000</pressedValue> 1250 <stringvalue/> 1251 <text/> 1252 <image>/</image> 1253 <eventLine/> 1254 <latch>true</latch> 1255 <latched>false</latched> 1256 </bsbObject> 1257 <bsbObject version="2" type="BSBLabel"> 1258 <objectName/> 1259 <x>799</x> 1260 <y>225</y> 1261 <width>120</width> 1262 <height>30</height> 1263 <uuid>{3e9cc7b4-8f67-4225-813b-1412a0f6f00d}</uuid> 1264 <visible>true</visible> 1265 <midichan>0</midichan> 1266 <midicc>0</midicc> 1267 <label>MIDI to Density</label> 1268 <alignment>right</alignment> 1269 <font>Liberation Sans</font> 1270 <fontsize>10</fontsize> 1271 <precision>3</precision> 1272 <color> 1273 <r>255</r> 1274 <g>255</g> 1275 <b>255</b> 1276 </color> 1277 <bgcolor mode="nobackground"> 1278 <r>255</r> 1279 <g>255</g> 1280 <b>255</b> 1281 </bgcolor> 1282 <bordermode>noborder</bordermode> 1283 <borderradius>1</borderradius> 1284 <borderwidth>1</borderwidth> 1285 </bsbObject> 1286 <bsbObject version="2" type="BSBDropdown"> 1287 <objectName>GrainEnvelope</objectName> 1288 <x>691</x> 1289 <y>263</y> 1290 <width>330</width> 1291 <height>30</height> 1292 <uuid>{1967ceb8-a1c4-4c8f-995e-05391c92b96c}</uuid> 1293 <visible>true</visible> 1294 <midichan>0</midichan> 1295 <midicc>0</midicc> 1296 <bsbDropdownItemList> 1297 <bsbDropdownItem> 1298 <name>Hanning</name> 1299 <value>0</value> 1300 <stringvalue/> 1301 </bsbDropdownItem> 1302 <bsbDropdownItem> 1303 <name>Percussive (straight segments)</name> 1304 <value>1</value> 1305 <stringvalue/> 1306 </bsbDropdownItem> 1307 <bsbDropdownItem> 1308 <name>Percussive (exponential segments)</name> 1309 <value>2</value> 1310 <stringvalue/> 1311 </bsbDropdownItem> 1312 <bsbDropdownItem> 1313 <name>Gate (with anti click ramp up and ramp down)</name> 1314 <value>3</value> 1315 <stringvalue/> 1316 </bsbDropdownItem> 1317 <bsbDropdownItem> 1318 <name>Reverse Percussive (straight segments)</name> 1319 <value>4</value> 1320 <stringvalue/> 1321 </bsbDropdownItem> 1322 <bsbDropdownItem> 1323 <name>Reverse Percussive (exponential segments)</name> 1324 <value>5</value> 1325 <stringvalue/> 1326 </bsbDropdownItem> 1327 </bsbDropdownItemList> 1328 <selectedIndex>0</selectedIndex> 1329 <randomizable group="0">false</randomizable> 1330 </bsbObject> 1331 <bsbObject version="2" type="BSBLabel"> 1332 <objectName/> 1333 <x>553</x> 1334 <y>265</y> 1335 <width>137</width> 1336 <height>32</height> 1337 <uuid>{48bd216b-d27b-4396-b997-30ddbe53d173}</uuid> 1338 <visible>true</visible> 1339 <midichan>0</midichan> 1340 <midicc>0</midicc> 1341 <label>Grain Envelope Type</label> 1342 <alignment>right</alignment> 1343 <font>Liberation Sans</font> 1344 <fontsize>10</fontsize> 1345 <precision>3</precision> 1346 <color> 1347 <r>255</r> 1348 <g>255</g> 1349 <b>255</b> 1350 </color> 1351 <bgcolor mode="nobackground"> 1352 <r>255</r> 1353 <g>255</g> 1354 <b>255</b> 1355 </bgcolor> 1356 <bordermode>noborder</bordermode> 1357 <borderradius>1</borderradius> 1358 <borderwidth>1</borderwidth> 1359 </bsbObject> 1360 <bsbObject version="2" type="BSBLabel"> 1361 <objectName/> 1362 <x>8</x> 1363 <y>365</y> 1364 <width>120</width> 1365 <height>30</height> 1366 <uuid>{c71f1f6c-839a-4dca-a2ee-3459bf26e376}</uuid> 1367 <visible>true</visible> 1368 <midichan>0</midichan> 1369 <midicc>0</midicc> 1370 <label>Seed Value Left</label> 1371 <alignment>right</alignment> 1372 <font>Liberation Sans</font> 1373 <fontsize>10</fontsize> 1374 <precision>3</precision> 1375 <color> 1376 <r>255</r> 1377 <g>255</g> 1378 <b>255</b> 1379 </color> 1380 <bgcolor mode="nobackground"> 1381 <r>255</r> 1382 <g>255</g> 1383 <b>255</b> 1384 </bgcolor> 1385 <bordermode>noborder</bordermode> 1386 <borderradius>1</borderradius> 1387 <borderwidth>1</borderwidth> 1388 </bsbObject> 1389 <bsbObject version="2" type="BSBLabel"> 1390 <objectName/> 1391 <x>535</x> 1392 <y>189</y> 1393 <width>107</width> 1394 <height>35</height> 1395 <uuid>{6524dd7f-f6aa-48d1-9348-85004d1db83f}</uuid> 1396 <visible>true</visible> 1397 <midichan>0</midichan> 1398 <midicc>0</midicc> 1399 <label>Interpolate Grain 1400Window</label> 1401 <alignment>right</alignment> 1402 <font>Liberation Sans</font> 1403 <fontsize>10</fontsize> 1404 <precision>3</precision> 1405 <color> 1406 <r>255</r> 1407 <g>255</g> 1408 <b>255</b> 1409 </color> 1410 <bgcolor mode="nobackground"> 1411 <r>255</r> 1412 <g>255</g> 1413 <b>255</b> 1414 </bgcolor> 1415 <bordermode>noborder</bordermode> 1416 <borderradius>1</borderradius> 1417 <borderwidth>1</borderwidth> 1418 </bsbObject> 1419 <bsbObject version="2" type="BSBDropdown"> 1420 <objectName>Input</objectName> 1421 <x>691</x> 1422 <y>127</y> 1423 <width>174</width> 1424 <height>30</height> 1425 <uuid>{7c4f04d1-0710-4b77-a412-d783034c89d7}</uuid> 1426 <visible>true</visible> 1427 <midichan>0</midichan> 1428 <midicc>0</midicc> 1429 <bsbDropdownItemList> 1430 <bsbDropdownItem> 1431 <name>Sound File</name> 1432 <value>0</value> 1433 <stringvalue/> 1434 </bsbDropdownItem> 1435 <bsbDropdownItem> 1436 <name>Sine</name> 1437 <value>1</value> 1438 <stringvalue/> 1439 </bsbDropdownItem> 1440 <bsbDropdownItem> 1441 <name>Buzz</name> 1442 <value>2</value> 1443 <stringvalue/> 1444 </bsbDropdownItem> 1445 </bsbDropdownItemList> 1446 <selectedIndex>0</selectedIndex> 1447 <randomizable group="0">false</randomizable> 1448 </bsbObject> 1449 <bsbObject version="2" type="BSBLabel"> 1450 <objectName/> 1451 <x>572</x> 1452 <y>131</y> 1453 <width>120</width> 1454 <height>30</height> 1455 <uuid>{0b39dee5-918a-4abe-b3be-e15ba5222429}</uuid> 1456 <visible>true</visible> 1457 <midichan>0</midichan> 1458 <midicc>0</midicc> 1459 <label>Input :</label> 1460 <alignment>right</alignment> 1461 <font>Liberation Sans</font> 1462 <fontsize>10</fontsize> 1463 <precision>3</precision> 1464 <color> 1465 <r>255</r> 1466 <g>255</g> 1467 <b>255</b> 1468 </color> 1469 <bgcolor mode="nobackground"> 1470 <r>255</r> 1471 <g>255</g> 1472 <b>255</b> 1473 </bgcolor> 1474 <bordermode>noborder</bordermode> 1475 <borderradius>1</borderradius> 1476 <borderwidth>1</borderwidth> 1477 </bsbObject> 1478 <bsbObject version="2" type="BSBLabel"> 1479 <objectName/> 1480 <x>8</x> 1481 <y>396</y> 1482 <width>1015</width> 1483 <height>139</height> 1484 <uuid>{9c6abfa6-99bf-4a15-94a4-ce86b18f37d9}</uuid> 1485 <visible>true</visible> 1486 <midichan>0</midichan> 1487 <midicc>0</midicc> 1488 <label>----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1489grain2 is a simpler version of grain3. grain3 offers more input parameters and greater user control. 1490grain2 provides no user control of grain phase (pointer position), instead initial phase is chosen randomly across the source function table. 1491Density it defined as the number of overlaps. This is an i-rate parameter, in this example moving its slider forces reinitialisations in order to implement the update but this will inevitably cause discontinuities in the audio output. 1492If density is thought of as grains per second then increasing 'Number of Overlaps' will increase density but reducing 'Grain Duration' will also increase density.</label> 1493 <alignment>left</alignment> 1494 <font>Liberation Sans</font> 1495 <fontsize>14</fontsize> 1496 <precision>3</precision> 1497 <color> 1498 <r>255</r> 1499 <g>255</g> 1500 <b>255</b> 1501 </color> 1502 <bgcolor mode="nobackground"> 1503 <r>255</r> 1504 <g>255</g> 1505 <b>255</b> 1506 </bgcolor> 1507 <bordermode>noborder</bordermode> 1508 <borderradius>1</borderradius> 1509 <borderwidth>1</borderwidth> 1510 </bsbObject> 1511 <bsbObject version="2" type="BSBSpinBox"> 1512 <objectName>SeedL</objectName> 1513 <x>129</x> 1514 <y>365</y> 1515 <width>100</width> 1516 <height>30</height> 1517 <uuid>{2bf2fa3a-39f0-466f-81aa-d594b7a6f5f2}</uuid> 1518 <visible>true</visible> 1519 <midichan>0</midichan> 1520 <midicc>0</midicc> 1521 <alignment>right</alignment> 1522 <font>Liberation Sans</font> 1523 <fontsize>12</fontsize> 1524 <color> 1525 <r>0</r> 1526 <g>0</g> 1527 <b>0</b> 1528 </color> 1529 <bgcolor mode="nobackground"> 1530 <r>255</r> 1531 <g>255</g> 1532 <b>255</b> 1533 </bgcolor> 1534 <resolution>1.00000000</resolution> 1535 <minimum>0</minimum> 1536 <maximum>2.14748e+09</maximum> 1537 <randomizable group="0">false</randomizable> 1538 <value>0</value> 1539 </bsbObject> 1540 <bsbObject version="2" type="BSBLabel"> 1541 <objectName/> 1542 <x>229</x> 1543 <y>365</y> 1544 <width>120</width> 1545 <height>30</height> 1546 <uuid>{c83c33cb-81d2-41fa-ae19-99118698acf2}</uuid> 1547 <visible>true</visible> 1548 <midichan>0</midichan> 1549 <midicc>0</midicc> 1550 <label>Seed Value Right</label> 1551 <alignment>right</alignment> 1552 <font>Liberation Sans</font> 1553 <fontsize>10</fontsize> 1554 <precision>3</precision> 1555 <color> 1556 <r>255</r> 1557 <g>255</g> 1558 <b>255</b> 1559 </color> 1560 <bgcolor mode="nobackground"> 1561 <r>255</r> 1562 <g>255</g> 1563 <b>255</b> 1564 </bgcolor> 1565 <bordermode>noborder</bordermode> 1566 <borderradius>1</borderradius> 1567 <borderwidth>1</borderwidth> 1568 </bsbObject> 1569 <bsbObject version="2" type="BSBSpinBox"> 1570 <objectName>SeedR</objectName> 1571 <x>350</x> 1572 <y>365</y> 1573 <width>100</width> 1574 <height>30</height> 1575 <uuid>{716f5b71-705a-4ac8-9af6-09876c21d9a4}</uuid> 1576 <visible>true</visible> 1577 <midichan>0</midichan> 1578 <midicc>0</midicc> 1579 <alignment>right</alignment> 1580 <font>Liberation Sans</font> 1581 <fontsize>12</fontsize> 1582 <color> 1583 <r>0</r> 1584 <g>0</g> 1585 <b>0</b> 1586 </color> 1587 <bgcolor mode="nobackground"> 1588 <r>255</r> 1589 <g>255</g> 1590 <b>255</b> 1591 </bgcolor> 1592 <resolution>1.00000000</resolution> 1593 <minimum>0</minimum> 1594 <maximum>2.14748e+09</maximum> 1595 <randomizable group="0">false</randomizable> 1596 <value>0</value> 1597 </bsbObject> 1598</bsbPanel> 1599<bsbPresets> 1600<preset name="INIT" number="0" > 1601<value id="{55273d97-d39a-441c-8da6-87ea139493b6}" mode="1" >0.00000000</value> 1602<value id="{55273d97-d39a-441c-8da6-87ea139493b6}" mode="4" >0</value> 1603<value id="{273087bd-e04a-4975-a3bd-5b0a8b5fd40a}" mode="1" >1.00000000</value> 1604<value id="{04617e86-7abe-4120-bb9b-1d6ccd2f0983}" mode="1" >1.00000000</value> 1605<value id="{04617e86-7abe-4120-bb9b-1d6ccd2f0983}" mode="4" >1.000</value> 1606<value id="{1757a18f-b418-4ef1-984d-bdee5e985805}" mode="4" >AndItsAll.wav</value> 1607<value id="{804f4f24-03f1-4ac2-8ba2-697f15df06cf}" mode="4" >AndItsAll.wav</value> 1608<value id="{89741b38-8333-4828-b8b8-656cff90d564}" mode="1" >0.25000000</value> 1609<value id="{d1569d45-d5fa-452c-b69f-0b3e0b47cd01}" mode="1" >0.25000000</value> 1610<value id="{d1569d45-d5fa-452c-b69f-0b3e0b47cd01}" mode="4" >0.250</value> 1611<value id="{ecd7a8b0-5bb3-4479-b692-e56294223499}" mode="1" >300.00000000</value> 1612<value id="{f275c8fd-3605-49e8-9090-67ca5f21a9f6}" mode="1" >300.00000000</value> 1613<value id="{f275c8fd-3605-49e8-9090-67ca5f21a9f6}" mode="4" >300.000</value> 1614<value id="{d6d73a88-8d82-47de-a067-758f1917a3f2}" mode="1" >0.25000000</value> 1615<value id="{073ad371-9227-46fa-a005-ac10a210db79}" mode="1" >0.25000000</value> 1616<value id="{073ad371-9227-46fa-a005-ac10a210db79}" mode="4" >0.250</value> 1617<value id="{dbdbe7cb-a74d-45b2-9e47-e5c0594f3ea5}" mode="1" >0.05000000</value> 1618<value id="{2aea18ca-8a9a-457a-8de3-cb7c918a4e3b}" mode="1" >0.05000000</value> 1619<value id="{2aea18ca-8a9a-457a-8de3-cb7c918a4e3b}" mode="4" >0.050</value> 1620<value id="{ea7f84c3-e2da-4b1c-a79e-61c2a264d20c}" mode="1" >0.05000000</value> 1621<value id="{ea7f84c3-e2da-4b1c-a79e-61c2a264d20c}" mode="4" >0.050</value> 1622<value id="{cb664a0c-f84b-41f5-92e9-7deb5a672d56}" mode="1" >0.05000000</value> 1623<value id="{859d1ded-b337-4ee7-ac9b-48a1b5f77d16}" mode="1" >2.00000000</value> 1624<value id="{95f6cb02-77ec-46fe-876b-a93efac3c5e5}" mode="1" >2.00000000</value> 1625<value id="{95f6cb02-77ec-46fe-876b-a93efac3c5e5}" mode="4" >2.000</value> 1626<value id="{475cdd64-a4ca-4ebc-a000-90448e932478}" mode="1" >10.00000000</value> 1627<value id="{dc75acc2-c015-4b8d-8fb2-467b9fb96d42}" mode="1" >10.00000000</value> 1628<value id="{dc75acc2-c015-4b8d-8fb2-467b9fb96d42}" mode="4" >10.000</value> 1629<value id="{2cf97843-5b49-438e-8034-62a459597e86}" mode="1" >0.00000000</value> 1630<value id="{e54486c5-f9aa-4d0e-9a67-6506dae3c790}" mode="1" >0.00000000</value> 1631<value id="{e54486c5-f9aa-4d0e-9a67-6506dae3c790}" mode="4" >0.000</value> 1632<value id="{c91fbe77-0e64-47c4-8d0c-8e11c6357c65}" mode="1" >0.00000000</value> 1633<value id="{c91fbe77-0e64-47c4-8d0c-8e11c6357c65}" mode="4" >0</value> 1634<value id="{82fb9bb8-870c-4d99-aa2c-e0737632eaaa}" mode="1" >0.00000000</value> 1635<value id="{82fb9bb8-870c-4d99-aa2c-e0737632eaaa}" mode="4" >0</value> 1636<value id="{a25a48b1-9ba9-49b7-a190-19023a8e37e7}" mode="1" >0.00000000</value> 1637<value id="{a25a48b1-9ba9-49b7-a190-19023a8e37e7}" mode="4" >0</value> 1638<value id="{15cb1c0c-7f3b-4f53-93c1-383a67f11366}" mode="1" >0.00000000</value> 1639<value id="{15cb1c0c-7f3b-4f53-93c1-383a67f11366}" mode="4" >0</value> 1640<value id="{f65b4392-389d-48ca-ba17-ab82ffa05bbc}" mode="1" >0.00000000</value> 1641<value id="{f65b4392-389d-48ca-ba17-ab82ffa05bbc}" mode="4" >0</value> 1642<value id="{6083872a-d937-4f30-ae49-bc3a1cccab54}" mode="1" >0.00000000</value> 1643<value id="{6083872a-d937-4f30-ae49-bc3a1cccab54}" mode="4" >0</value> 1644<value id="{1967ceb8-a1c4-4c8f-995e-05391c92b96c}" mode="1" >0.00000000</value> 1645<value id="{7c4f04d1-0710-4b77-a412-d783034c89d7}" mode="1" >0.00000000</value> 1646<value id="{2bf2fa3a-39f0-466f-81aa-d594b7a6f5f2}" mode="1" >0.00000000</value> 1647<value id="{716f5b71-705a-4ac8-9af6-09876c21d9a4}" mode="1" >0.00000000</value> 1648</preset> 1649</bsbPresets> 1650<EventPanel name="" tempo="60.00000000" loop="8.00000000" x="913" y="162" width="655" height="346" visible="false" loopStart="0" loopEnd="0"> </EventPanel> 1651