| 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 impulse 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 with 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 |
givibfn ftgen 0,0,4096,10,1 ;A SINE WAVE |
| 26 |
|
| 27 |
|
| 28 |
instr 2 ;GUI |
| 29 |
ktrig metro 10 |
| 30 |
if (ktrig == 1) then |
| 31 |
gkamp invalue "Amp" |
| 32 |
gkfreq invalue "Freq" |
| 33 |
gkhrd invalue "Hardness" |
| 34 |
gkpos invalue "Position" |
| 35 |
gkvibf invalue "VibFreq" |
| 36 |
gkvamp invalue "VibAmp" |
| 37 |
gkdec invalue "Decay" |
| 38 |
gkdoubles invalue "Doubles" |
| 39 |
gktriples invalue "Triples" |
| 40 |
|
| 41 |
;AUDIO FILE CHANGE / LOAD IN TABLES ******************************************************************************************************** |
| 42 |
Sfile_new strcpy "" ;INIT TO EMPTY STRING |
| 43 |
Sfile invalue "_Browse" |
| 44 |
Sfile_old strcpyk Sfile_new |
| 45 |
Sfile_new strcpyk Sfile |
| 46 |
kfile strcmpk Sfile_new, Sfile_old |
| 47 |
|
| 48 |
if kfile != 0 then ;IF A BANG HAD BEEN GENERATED IN THE LINE ABOVE |
| 49 |
reinit NEW_FILE ;REINITIALIZE FROM LABEL 'NEW_FILE' |
| 50 |
endif |
| 51 |
NEW_FILE: |
| 52 |
ilen filelen Sfile ;Find length |
| 53 |
isr filesr Sfile ;Find sample rate |
| 54 |
isamps = ilen * isr ;Total number of samples |
| 55 |
|
| 56 |
isize init 1 |
| 57 |
LOOP: |
| 58 |
isize = isize * 2 |
| 59 |
if (isize < isamps) igoto LOOP ;Loop until isize is greater than number of samples |
| 60 |
|
| 61 |
gimp ftgen 0, 0, isize, 1, Sfile, 0, 0, 1 ;READ AUDIO FILE CHANNEL 1 |
| 62 |
;******************************************************************************************************************************************* |
| 63 |
endif |
| 64 |
endin |
| 65 |
|
| 66 |
instr 1 ;MIDI ACTIVATED INSTRUMENT |
| 67 |
ifreq cpsmidi ;FREQUENCY IS READ FROM INCOMING MIDI NOTE |
| 68 |
iamp ampmidi 0.5 ;AMPLITUDE IS READ FROM INCOMING MIDI NOTE |
| 69 |
|
| 70 |
event_i "i", 5, 0, 0.1, ifreq ;SEND FREQUENCY VALUE TO FREQUENCY SLIDER |
| 71 |
|
| 72 |
kSwitch changed gkhrd, gkpos, gkdec ;GENERATE A MOMENTARY '1' PULSE IN OUTPUT 'kSwitch' IF ANY OF THE SCANNED INPUT VARIABLES CHANGE. (OUTPUT 'kSwitch' IS NORMALLY ZERO) |
| 73 |
if kSwitch=1 then |
| 74 |
reinit START |
| 75 |
endif |
| 76 |
START: |
| 77 |
ares vibes i(gkamp), ifreq, i(gkhrd), i(gkpos), gimp, gkvibf, gkvamp, givibfn, i(gkdec) |
| 78 |
rireturn |
| 79 |
aenv linsegr 1,3600,1,0.1,0 ;CREATE AN AMPLITUDE ENVELOPE. THIS WILL BE USED TO PREVENT CLICKS. |
| 80 |
outs ares*aenv, ares*aenv ;SEND AUDIO TO OUTPUTS |
| 81 |
endin |
| 82 |
|
| 83 |
instr 3 ;GUI BUTTON ACTIVATED INSTRUMENT |
| 84 |
kSwitch changed gkamp, gkhrd, gkpos, gkdec ;GENERATE A MOMENTARY '1' PULSE IN OUTPUT 'kSwitch' IF ANY OF THE SCANNED INPUT VARIABLES CHANGE. (OUTPUT 'kSwitch' IS NORMALLY ZERO) |
| 85 |
if kSwitch=1 then |
| 86 |
reinit START |
| 87 |
endif |
| 88 |
START: |
| 89 |
ares vibes i(gkamp), i(gkfreq), i(gkhrd), i(gkpos), gimp, gkvibf, gkvamp, givibfn, i(gkdec) |
| 90 |
rireturn |
| 91 |
outs ares, ares |
| 92 |
endin |
| 93 |
|
| 94 |
instr 4 ;INIT |
| 95 |
outvalue "Amp" , 0.3 |
| 96 |
outvalue "Freq" , 250 |
| 97 |
outvalue "Hardness" , 0.5 |
| 98 |
outvalue "Position" , 0.4 |
| 99 |
outvalue "VibFreq" , 0.5 |
| 100 |
outvalue "VibAmp" , 0.8 |
| 101 |
outvalue "Decay" , 1.0 |
| 102 |
endin |
| 103 |
|
| 104 |
instr 5 ;UPDATE |
| 105 |
outvalue "Freq", p4 ;SEND FREQUENCY VALUE TO FREQUENCY SLIDER |
| 106 |
endin |
| 107 |
</CsInstruments> |
| 108 |
<CsScore> |
| 109 |
;INSTR | START | DURATION |
| 110 |
i 2 0 3600 ;GUI |
| 111 |
i 4 0 0.1 ;INIT |
| 112 |
</CsScore> |
| 113 |
</CsoundSynthesizer> |
| 114 |
<bsbPanel> |
| 115 |
<label>Widgets</label> |
| 116 |
<objectName/> |
| 117 |
<x>504</x> |
| 118 |
<y>267</y> |
| 119 |
<width>801</width> |
| 120 |
<height>375</height> |
| 121 |
<visible>true</visible> |
| 122 |
<uuid/> |
| 123 |
<bgcolor mode="background"> |
| 124 |
<r>241</r> |
| 125 |
<g>226</g> |
| 126 |
<b>185</b> |
| 127 |
</bgcolor> |
| 128 |
<bsbObject version="2" type="BSBLabel"> |
| 129 |
<objectName/> |
| 130 |
<x>2</x> |
| 131 |
<y>2</y> |
| 132 |
<width>510</width> |
| 133 |
<height>370</height> |
| 134 |
<uuid>{aa607456-d368-4d59-8497-d16d608404c3}</uuid> |
| 135 |
<visible>true</visible> |
| 136 |
<midichan>0</midichan> |
| 137 |
<midicc>0</midicc> |
| 138 |
<label>vibes</label> |
| 139 |
<alignment>center</alignment> |
| 140 |
<font>Liberation Sans</font> |
| 141 |
<fontsize>18</fontsize> |
| 142 |
<precision>3</precision> |
| 143 |
<color> |
| 144 |
<r>0</r> |
| 145 |
<g>0</g> |
| 146 |
<b>0</b> |
| 147 |
</color> |
| 148 |
<bgcolor mode="background"> |
| 149 |
<r>147</r> |
| 150 |
<g>154</g> |
| 151 |
<b>255</b> |
| 152 |
</bgcolor> |
| 153 |
<bordermode>border</bordermode> |
| 154 |
<borderradius>5</borderradius> |
| 155 |
<borderwidth>2</borderwidth> |
| 156 |
</bsbObject> |
| 157 |
<bsbObject version="2" type="BSBLabel"> |
| 158 |
<objectName/> |
| 159 |
<x>8</x> |
| 160 |
<y>128</y> |
| 161 |
<width>220</width> |
| 162 |
<height>30</height> |
| 163 |
<uuid>{640b50b7-7200-4f81-8394-89d9843ae939}</uuid> |
| 164 |
<visible>true</visible> |
| 165 |
<midichan>0</midichan> |
| 166 |
<midicc>0</midicc> |
| 167 |
<label>Amplitude</label> |
| 168 |
<alignment>left</alignment> |
| 169 |
<font>Liberation Sans</font> |
| 170 |
<fontsize>10</fontsize> |
| 171 |
<precision>3</precision> |
| 172 |
<color> |
| 173 |
<r>0</r> |
| 174 |
<g>0</g> |
| 175 |
<b>0</b> |
| 176 |
</color> |
| 177 |
<bgcolor mode="nobackground"> |
| 178 |
<r>255</r> |
| 179 |
<g>255</g> |
| 180 |
<b>255</b> |
| 181 |
</bgcolor> |
| 182 |
<bordermode>noborder</bordermode> |
| 183 |
<borderradius>1</borderradius> |
| 184 |
<borderwidth>1</borderwidth> |
| 185 |
</bsbObject> |
| 186 |
<bsbObject version="2" type="BSBHSlider"> |
| 187 |
<objectName>Amp</objectName> |
| 188 |
<x>8</x> |
| 189 |
<y>111</y> |
| 190 |
<width>500</width> |
| 191 |
<height>27</height> |
| 192 |
<uuid>{5585fa6f-0f63-4ac3-bf1b-809c2b1d9134}</uuid> |
| 193 |
<visible>true</visible> |
| 194 |
<midichan>0</midichan> |
| 195 |
<midicc>0</midicc> |
| 196 |
<minimum>0.00000000</minimum> |
| 197 |
<maximum>1.00000000</maximum> |
| 198 |
<value>0.30000000</value> |
| 199 |
<mode>lin</mode> |
| 200 |
<mouseControl act="jump">continuous</mouseControl> |
| 201 |
<resolution>-1.00000000</resolution> |
| 202 |
<randomizable group="0">false</randomizable> |
| 203 |
</bsbObject> |
| 204 |
<bsbObject version="2" type="BSBDisplay"> |
| 205 |
<objectName>Amp</objectName> |
| 206 |
<x>448</x> |
| 207 |
<y>128</y> |
| 208 |
<width>60</width> |
| 209 |
<height>30</height> |
| 210 |
<uuid>{b731b52e-e14a-476a-a583-f3b2bd885539}</uuid> |
| 211 |
<visible>true</visible> |
| 212 |
<midichan>0</midichan> |
| 213 |
<midicc>0</midicc> |
| 214 |
<label>0.300</label> |
| 215 |
<alignment>right</alignment> |
| 216 |
<font>Liberation Sans</font> |
| 217 |
<fontsize>9</fontsize> |
| 218 |
<precision>3</precision> |
| 219 |
<color> |
| 220 |
<r>0</r> |
| 221 |
<g>0</g> |
| 222 |
<b>0</b> |
| 223 |
</color> |
| 224 |
<bgcolor mode="nobackground"> |
| 225 |
<r>255</r> |
| 226 |
<g>255</g> |
| 227 |
<b>255</b> |
| 228 |
</bgcolor> |
| 229 |
<bordermode>noborder</bordermode> |
| 230 |
<borderradius>1</borderradius> |
| 231 |
<borderwidth>1</borderwidth> |
| 232 |
</bsbObject> |
| 233 |
<bsbObject version="2" type="BSBLabel"> |
| 234 |
<objectName/> |
| 235 |
<x>8</x> |
| 236 |
<y>163</y> |
| 237 |
<width>220</width> |
| 238 |
<height>30</height> |
| 239 |
<uuid>{989564b0-b237-4c22-9d10-b76b7c7e4e4c}</uuid> |
| 240 |
<visible>true</visible> |
| 241 |
<midichan>0</midichan> |
| 242 |
<midicc>0</midicc> |
| 243 |
<label>Frequency</label> |
| 244 |
<alignment>left</alignment> |
| 245 |
<font>Liberation Sans</font> |
| 246 |
<fontsize>10</fontsize> |
| 247 |
<precision>3</precision> |
| 248 |
<color> |
| 249 |
<r>0</r> |
| 250 |
<g>0</g> |
| 251 |
<b>0</b> |
| 252 |
</color> |
| 253 |
<bgcolor mode="nobackground"> |
| 254 |
<r>255</r> |
| 255 |
<g>255</g> |
| 256 |
<b>255</b> |
| 257 |
</bgcolor> |
| 258 |
<bordermode>noborder</bordermode> |
| 259 |
<borderradius>1</borderradius> |
| 260 |
<borderwidth>1</borderwidth> |
| 261 |
</bsbObject> |
| 262 |
<bsbObject version="2" type="BSBHSlider"> |
| 263 |
<objectName>Freq</objectName> |
| 264 |
<x>8</x> |
| 265 |
<y>146</y> |
| 266 |
<width>500</width> |
| 267 |
<height>27</height> |
| 268 |
<uuid>{84cd664e-fb67-4dd4-aac3-adbcf2c81fe6}</uuid> |
| 269 |
<visible>true</visible> |
| 270 |
<midichan>0</midichan> |
| 271 |
<midicc>0</midicc> |
| 272 |
<minimum>20.00000000</minimum> |
| 273 |
<maximum>2000.00000000</maximum> |
| 274 |
<value>130.81277466</value> |
| 275 |
<mode>lin</mode> |
| 276 |
<mouseControl act="jump">continuous</mouseControl> |
| 277 |
<resolution>-1.00000000</resolution> |
| 278 |
<randomizable group="0">false</randomizable> |
| 279 |
</bsbObject> |
| 280 |
<bsbObject version="2" type="BSBDisplay"> |
| 281 |
<objectName>Freq</objectName> |
| 282 |
<x>448</x> |
| 283 |
<y>163</y> |
| 284 |
<width>60</width> |
| 285 |
<height>30</height> |
| 286 |
<uuid>{ba8682a6-056f-4432-946b-4e3ee82c47a1}</uuid> |
| 287 |
<visible>true</visible> |
| 288 |
<midichan>0</midichan> |
| 289 |
<midicc>0</midicc> |
| 290 |
<label>130.813</label> |
| 291 |
<alignment>right</alignment> |
| 292 |
<font>Liberation Sans</font> |
| 293 |
<fontsize>9</fontsize> |
| 294 |
<precision>3</precision> |
| 295 |
<color> |
| 296 |
<r>0</r> |
| 297 |
<g>0</g> |
| 298 |
<b>0</b> |
| 299 |
</color> |
| 300 |
<bgcolor mode="nobackground"> |
| 301 |
<r>255</r> |
| 302 |
<g>255</g> |
| 303 |
<b>255</b> |
| 304 |
</bgcolor> |
| 305 |
<bordermode>noborder</bordermode> |
| 306 |
<borderradius>1</borderradius> |
| 307 |
<borderwidth>1</borderwidth> |
| 308 |
</bsbObject> |
| 309 |
<bsbObject version="2" type="BSBLabel"> |
| 310 |
<objectName/> |
| 311 |
<x>8</x> |
| 312 |
<y>197</y> |
| 313 |
<width>200</width> |
| 314 |
<height>30</height> |
| 315 |
<uuid>{76044785-79c4-4202-b7ce-07aee4868219}</uuid> |
| 316 |
<visible>true</visible> |
| 317 |
<midichan>0</midichan> |
| 318 |
<midicc>0</midicc> |
| 319 |
<label>Stick Hardness</label> |
| 320 |
<alignment>left</alignment> |
| 321 |
<font>Liberation Sans</font> |
| 322 |
<fontsize>10</fontsize> |
| 323 |
<precision>3</precision> |
| 324 |
<color> |
| 325 |
<r>0</r> |
| 326 |
<g>0</g> |
| 327 |
<b>0</b> |
| 328 |
</color> |
| 329 |
<bgcolor mode="nobackground"> |
| 330 |
<r>255</r> |
| 331 |
<g>255</g> |
| 332 |
<b>255</b> |
| 333 |
</bgcolor> |
| 334 |
<bordermode>noborder</bordermode> |
| 335 |
<borderradius>1</borderradius> |
| 336 |
<borderwidth>1</borderwidth> |
| 337 |
</bsbObject> |
| 338 |
<bsbObject version="2" type="BSBHSlider"> |
| 339 |
<objectName>Hardness</objectName> |
| 340 |
<x>8</x> |
| 341 |
<y>180</y> |
| 342 |
<width>500</width> |
| 343 |
<height>27</height> |
| 344 |
<uuid>{0f952e77-ff9b-4621-b1af-23252bb9c2a6}</uuid> |
| 345 |
<visible>true</visible> |
| 346 |
<midichan>0</midichan> |
| 347 |
<midicc>0</midicc> |
| 348 |
<minimum>0.00000000</minimum> |
| 349 |
<maximum>1.00000000</maximum> |
| 350 |
<value>0.50000000</value> |
| 351 |
<mode>lin</mode> |
| 352 |
<mouseControl act="jump">continuous</mouseControl> |
| 353 |
<resolution>-1.00000000</resolution> |
| 354 |
<randomizable group="0">false</randomizable> |
| 355 |
</bsbObject> |
| 356 |
<bsbObject version="2" type="BSBDisplay"> |
| 357 |
<objectName>Hardness</objectName> |
| 358 |
<x>448</x> |
| 359 |
<y>197</y> |
| 360 |
<width>60</width> |
| 361 |
<height>30</height> |
| 362 |
<uuid>{7b92c0ca-2fe8-4b4f-9ed0-f618c1b3cb5c}</uuid> |
| 363 |
<visible>true</visible> |
| 364 |
<midichan>0</midichan> |
| 365 |
<midicc>0</midicc> |
| 366 |
<label>0.500</label> |
| 367 |
<alignment>right</alignment> |
| 368 |
<font>Liberation Sans</font> |
| 369 |
<fontsize>9</fontsize> |
| 370 |
<precision>3</precision> |
| 371 |
<color> |
| 372 |
<r>0</r> |
| 373 |
<g>0</g> |
| 374 |
<b>0</b> |
| 375 |
</color> |
| 376 |
<bgcolor mode="nobackground"> |
| 377 |
<r>255</r> |
| 378 |
<g>255</g> |
| 379 |
<b>255</b> |
| 380 |
</bgcolor> |
| 381 |
<bordermode>noborder</bordermode> |
| 382 |
<borderradius>1</borderradius> |
| 383 |
<borderwidth>1</borderwidth> |
| 384 |
</bsbObject> |
| 385 |
<bsbObject version="2" type="BSBLabel"> |
| 386 |
<objectName/> |
| 387 |
<x>8</x> |
| 388 |
<y>232</y> |
| 389 |
<width>220</width> |
| 390 |
<height>30</height> |
| 391 |
<uuid>{ca41878c-b561-486b-9cf9-d0da6b48448b}</uuid> |
| 392 |
<visible>true</visible> |
| 393 |
<midichan>0</midichan> |
| 394 |
<midicc>0</midicc> |
| 395 |
<label>Strike Position</label> |
| 396 |
<alignment>left</alignment> |
| 397 |
<font>Liberation Sans</font> |
| 398 |
<fontsize>10</fontsize> |
| 399 |
<precision>3</precision> |
| 400 |
<color> |
| 401 |
<r>0</r> |
| 402 |
<g>0</g> |
| 403 |
<b>0</b> |
| 404 |
</color> |
| 405 |
<bgcolor mode="nobackground"> |
| 406 |
<r>255</r> |
| 407 |
<g>255</g> |
| 408 |
<b>255</b> |
| 409 |
</bgcolor> |
| 410 |
<bordermode>noborder</bordermode> |
| 411 |
<borderradius>1</borderradius> |
| 412 |
<borderwidth>1</borderwidth> |
| 413 |
</bsbObject> |
| 414 |
<bsbObject version="2" type="BSBHSlider"> |
| 415 |
<objectName>Position</objectName> |
| 416 |
<x>8</x> |
| 417 |
<y>215</y> |
| 418 |
<width>500</width> |
| 419 |
<height>27</height> |
| 420 |
<uuid>{2800fb88-347a-402c-88ed-fc97af6a36be}</uuid> |
| 421 |
<visible>true</visible> |
| 422 |
<midichan>0</midichan> |
| 423 |
<midicc>0</midicc> |
| 424 |
<minimum>0.00000000</minimum> |
| 425 |
<maximum>1.00000000</maximum> |
| 426 |
<value>0.40000001</value> |
| 427 |
<mode>lin</mode> |
| 428 |
<mouseControl act="jump">continuous</mouseControl> |
| 429 |
<resolution>-1.00000000</resolution> |
| 430 |
<randomizable group="0">false</randomizable> |
| 431 |
</bsbObject> |
| 432 |
<bsbObject version="2" type="BSBDisplay"> |
| 433 |
<objectName>Position</objectName> |
| 434 |
<x>448</x> |
| 435 |
<y>232</y> |
| 436 |
<width>60</width> |
| 437 |
<height>30</height> |
| 438 |
<uuid>{5d1ba94c-536a-4178-be6c-c0d9d2f75e3d}</uuid> |
| 439 |
<visible>true</visible> |
| 440 |
<midichan>0</midichan> |
| 441 |
<midicc>0</midicc> |
| 442 |
<label>0.400</label> |
| 443 |
<alignment>right</alignment> |
| 444 |
<font>Liberation Sans</font> |
| 445 |
<fontsize>9</fontsize> |
| 446 |
<precision>3</precision> |
| 447 |
<color> |
| 448 |
<r>0</r> |
| 449 |
<g>0</g> |
| 450 |
<b>0</b> |
| 451 |
</color> |
| 452 |
<bgcolor mode="nobackground"> |
| 453 |
<r>255</r> |
| 454 |
<g>255</g> |
| 455 |
<b>255</b> |
| 456 |
</bgcolor> |
| 457 |
<bordermode>noborder</bordermode> |
| 458 |
<borderradius>1</borderradius> |
| 459 |
<borderwidth>1</borderwidth> |
| 460 |
</bsbObject> |
| 461 |
<bsbObject version="2" type="BSBLabel"> |
| 462 |
<objectName/> |
| 463 |
<x>8</x> |
| 464 |
<y>267</y> |
| 465 |
<width>220</width> |
| 466 |
<height>30</height> |
| 467 |
<uuid>{cdd71125-b224-471a-9c41-9c05d8d28d0c}</uuid> |
| 468 |
<visible>true</visible> |
| 469 |
<midichan>0</midichan> |
| 470 |
<midicc>0</midicc> |
| 471 |
<label>Vibrato Frequency</label> |
| 472 |
<alignment>left</alignment> |
| 473 |
<font>Liberation Sans</font> |
| 474 |
<fontsize>10</fontsize> |
| 475 |
<precision>3</precision> |
| 476 |
<color> |
| 477 |
<r>0</r> |
| 478 |
<g>0</g> |
| 479 |
<b>0</b> |
| 480 |
</color> |
| 481 |
<bgcolor mode="nobackground"> |
| 482 |
<r>255</r> |
| 483 |
<g>255</g> |
| 484 |
<b>255</b> |
| 485 |
</bgcolor> |
| 486 |
<bordermode>noborder</bordermode> |
| 487 |
<borderradius>1</borderradius> |
| 488 |
<borderwidth>1</borderwidth> |
| 489 |
</bsbObject> |
| 490 |
<bsbObject version="2" type="BSBHSlider"> |
| 491 |
<objectName>VibFreq</objectName> |
| 492 |
<x>8</x> |
| 493 |
<y>250</y> |
| 494 |
<width>500</width> |
| 495 |
<height>27</height> |
| 496 |
<uuid>{7a83bb1f-f25d-47e0-bf2d-9c5c86e0756b}</uuid> |
| 497 |
<visible>true</visible> |
| 498 |
<midichan>0</midichan> |
| 499 |
<midicc>0</midicc> |
| 500 |
<minimum>0.00000000</minimum> |
| 501 |
<maximum>15.00000000</maximum> |
| 502 |
<value>0.50000000</value> |
| 503 |
<mode>lin</mode> |
| 504 |
<mouseControl act="jump">continuous</mouseControl> |
| 505 |
<resolution>-1.00000000</resolution> |
| 506 |
<randomizable group="0">false</randomizable> |
| 507 |
</bsbObject> |
| 508 |
<bsbObject version="2" type="BSBDisplay"> |
| 509 |
<objectName>VibFreq</objectName> |
| 510 |
<x>448</x> |
| 511 |
<y>267</y> |
| 512 |
<width>60</width> |
| 513 |
<height>30</height> |
| 514 |
<uuid>{7f8d2709-bf8c-46ab-83f0-36fc620b0d56}</uuid> |
| 515 |
<visible>true</visible> |
| 516 |
<midichan>0</midichan> |
| 517 |
<midicc>0</midicc> |
| 518 |
<label>0.500</label> |
| 519 |
<alignment>right</alignment> |
| 520 |
<font>Liberation Sans</font> |
| 521 |
<fontsize>9</fontsize> |
| 522 |
<precision>3</precision> |
| 523 |
<color> |
| 524 |
<r>0</r> |
| 525 |
<g>0</g> |
| 526 |
<b>0</b> |
| 527 |
</color> |
| 528 |
<bgcolor mode="nobackground"> |
| 529 |
<r>255</r> |
| 530 |
<g>255</g> |
| 531 |
<b>255</b> |
| 532 |
</bgcolor> |
| 533 |
<bordermode>noborder</bordermode> |
| 534 |
<borderradius>1</borderradius> |
| 535 |
<borderwidth>1</borderwidth> |
| 536 |
</bsbObject> |
| 537 |
<bsbObject version="2" type="BSBLabel"> |
| 538 |
<objectName/> |
| 539 |
<x>515</x> |
| 540 |
<y>2</y> |
| 541 |
<width>280</width> |
| 542 |
<height>370</height> |
| 543 |
<uuid>{74928ed2-b701-4668-9a11-74763d317e9b}</uuid> |
| 544 |
<visible>true</visible> |
| 545 |
<midichan>0</midichan> |
| 546 |
<midicc>0</midicc> |
| 547 |
<label>vibes</label> |
| 548 |
<alignment>center</alignment> |
| 549 |
<font>Liberation Sans</font> |
| 550 |
<fontsize>18</fontsize> |
| 551 |
<precision>3</precision> |
| 552 |
<color> |
| 553 |
<r>0</r> |
| 554 |
<g>0</g> |
| 555 |
<b>0</b> |
| 556 |
</color> |
| 557 |
<bgcolor mode="background"> |
| 558 |
<r>147</r> |
| 559 |
<g>154</g> |
| 560 |
<b>255</b> |
| 561 |
</bgcolor> |
| 562 |
<bordermode>border</bordermode> |
| 563 |
<borderradius>5</borderradius> |
| 564 |
<borderwidth>2</borderwidth> |
| 565 |
</bsbObject> |
| 566 |
<bsbObject version="2" type="BSBLabel"> |
| 567 |
<objectName/> |
| 568 |
<x>516</x> |
| 569 |
<y>25</y> |
| 570 |
<width>277</width> |
| 571 |
<height>319</height> |
| 572 |
<uuid>{d4bdb5ce-87d8-4c8c-9c64-40ec2eed6f5a}</uuid> |
| 573 |
<visible>true</visible> |
| 574 |
<midichan>0</midichan> |
| 575 |
<midicc>0</midicc> |
| 576 |
<label>------------------------------------------------------------------- |
| 577 |
'vibes' is a physical model of a vibraphone tone. 'Stick Hardness' and 'Strike Position' create some variation in tone but this is quite subtle. 'Decay Time' controls the time before the end of the note when damping is introduced. By replacing the sample suggested for the strike impulse (marmstk1.wav) with a longer sample sample (Songpan.wav for example), a longer duration tone is possible. |
| 578 |
This instrument can be triggered either from the GUI button or via a connected MIDI keyboard. |
| 579 |
Carrefull, audio file may give loud output !</label> |
| 580 |
<alignment>left</alignment> |
| 581 |
<font>Liberation Sans</font> |
| 582 |
<fontsize>14</fontsize> |
| 583 |
<precision>3</precision> |
| 584 |
<color> |
| 585 |
<r>0</r> |
| 586 |
<g>0</g> |
| 587 |
<b>0</b> |
| 588 |
</color> |
| 589 |
<bgcolor mode="nobackground"> |
| 590 |
<r>255</r> |
| 591 |
<g>255</g> |
| 592 |
<b>255</b> |
| 593 |
</bgcolor> |
| 594 |
<bordermode>noborder</bordermode> |
| 595 |
<borderradius>1</borderradius> |
| 596 |
<borderwidth>1</borderwidth> |
| 597 |
</bsbObject> |
| 598 |
<bsbObject version="2" type="BSBButton"> |
| 599 |
<objectName/> |
| 600 |
<x>8</x> |
| 601 |
<y>16</y> |
| 602 |
<width>100</width> |
| 603 |
<height>30</height> |
| 604 |
<uuid>{04d44ebe-12eb-4bb0-a3f5-9e4fd3e7830e}</uuid> |
| 605 |
<visible>true</visible> |
| 606 |
<midichan>0</midichan> |
| 607 |
<midicc>0</midicc> |
| 608 |
<type>event</type> |
| 609 |
<pressedValue>1.00000000</pressedValue> |
| 610 |
<stringvalue/> |
| 611 |
<text>Strike !</text> |
| 612 |
<image>/</image> |
| 613 |
<eventLine>i 3 0 -1</eventLine> |
| 614 |
<latch>false</latch> |
| 615 |
<latched>false</latched> |
| 616 |
</bsbObject> |
| 617 |
<bsbObject version="2" type="BSBLabel"> |
| 618 |
<objectName/> |
| 619 |
<x>8</x> |
| 620 |
<y>303</y> |
| 621 |
<width>220</width> |
| 622 |
<height>30</height> |
| 623 |
<uuid>{ca67a321-de0d-4a0f-8efd-864d9a51098c}</uuid> |
| 624 |
<visible>true</visible> |
| 625 |
<midichan>0</midichan> |
| 626 |
<midicc>0</midicc> |
| 627 |
<label>Vibrato Amplitude</label> |
| 628 |
<alignment>left</alignment> |
| 629 |
<font>Liberation Sans</font> |
| 630 |
<fontsize>10</fontsize> |
| 631 |
<precision>3</precision> |
| 632 |
<color> |
| 633 |
<r>0</r> |
| 634 |
<g>0</g> |
| 635 |
<b>0</b> |
| 636 |
</color> |
| 637 |
<bgcolor mode="nobackground"> |
| 638 |
<r>255</r> |
| 639 |
<g>255</g> |
| 640 |
<b>255</b> |
| 641 |
</bgcolor> |
| 642 |
<bordermode>noborder</bordermode> |
| 643 |
<borderradius>1</borderradius> |
| 644 |
<borderwidth>1</borderwidth> |
| 645 |
</bsbObject> |
| 646 |
<bsbObject version="2" type="BSBHSlider"> |
| 647 |
<objectName>VibAmp</objectName> |
| 648 |
<x>8</x> |
| 649 |
<y>286</y> |
| 650 |
<width>500</width> |
| 651 |
<height>27</height> |
| 652 |
<uuid>{0341fedb-6323-4661-b4c3-8207291fcd90}</uuid> |
| 653 |
<visible>true</visible> |
| 654 |
<midichan>0</midichan> |
| 655 |
<midicc>0</midicc> |
| 656 |
<minimum>0.00000000</minimum> |
| 657 |
<maximum>1.00000000</maximum> |
| 658 |
<value>0.80000001</value> |
| 659 |
<mode>lin</mode> |
| 660 |
<mouseControl act="jump">continuous</mouseControl> |
| 661 |
<resolution>-1.00000000</resolution> |
| 662 |
<randomizable group="0">false</randomizable> |
| 663 |
</bsbObject> |
| 664 |
<bsbObject version="2" type="BSBDisplay"> |
| 665 |
<objectName>VibAmp</objectName> |
| 666 |
<x>448</x> |
| 667 |
<y>303</y> |
| 668 |
<width>60</width> |
| 669 |
<height>30</height> |
| 670 |
<uuid>{3c428724-1329-4e7c-bdb5-6e1277f3c2ce}</uuid> |
| 671 |
<visible>true</visible> |
| 672 |
<midichan>0</midichan> |
| 673 |
<midicc>0</midicc> |
| 674 |
<label>0.800</label> |
| 675 |
<alignment>right</alignment> |
| 676 |
<font>Liberation Sans</font> |
| 677 |
<fontsize>9</fontsize> |
| 678 |
<precision>3</precision> |
| 679 |
<color> |
| 680 |
<r>0</r> |
| 681 |
<g>0</g> |
| 682 |
<b>0</b> |
| 683 |
</color> |
| 684 |
<bgcolor mode="nobackground"> |
| 685 |
<r>255</r> |
| 686 |
<g>255</g> |
| 687 |
<b>255</b> |
| 688 |
</bgcolor> |
| 689 |
<bordermode>noborder</bordermode> |
| 690 |
<borderradius>1</borderradius> |
| 691 |
<borderwidth>1</borderwidth> |
| 692 |
</bsbObject> |
| 693 |
<bsbObject version="2" type="BSBLabel"> |
| 694 |
<objectName/> |
| 695 |
<x>8</x> |
| 696 |
<y>53</y> |
| 697 |
<width>97</width> |
| 698 |
<height>30</height> |
| 699 |
<uuid>{3c19fbdc-3d2b-4583-8316-52f7a3a433e2}</uuid> |
| 700 |
<visible>true</visible> |
| 701 |
<midichan>0</midichan> |
| 702 |
<midicc>0</midicc> |
| 703 |
<label>IMPULSE :</label> |
| 704 |
<alignment>left</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="BSBButton"> |
| 723 |
<objectName>_Browse</objectName> |
| 724 |
<x>8</x> |
| 725 |
<y>75</y> |
| 726 |
<width>170</width> |
| 727 |
<height>30</height> |
| 728 |
<uuid>{43341095-bc3a-4607-bd0e-01254da7bc67}</uuid> |
| 729 |
<visible>true</visible> |
| 730 |
<midichan>0</midichan> |
| 731 |
<midicc>0</midicc> |
| 732 |
<type>value</type> |
| 733 |
<pressedValue>1.00000000</pressedValue> |
| 734 |
<stringvalue>marmstk1.wav</stringvalue> |
| 735 |
<text>Browse Audio File</text> |
| 736 |
<image>/</image> |
| 737 |
<eventLine/> |
| 738 |
<latch>false</latch> |
| 739 |
<latched>false</latched> |
| 740 |
</bsbObject> |
| 741 |
<bsbObject version="2" type="BSBLineEdit"> |
| 742 |
<objectName>_Browse</objectName> |
| 743 |
<x>177</x> |
| 744 |
<y>76</y> |
| 745 |
<width>330</width> |
| 746 |
<height>28</height> |
| 747 |
<uuid>{b66f3878-dfd0-4290-9b9d-73be88197222}</uuid> |
| 748 |
<visible>true</visible> |
| 749 |
<midichan>0</midichan> |
| 750 |
<midicc>0</midicc> |
| 751 |
<label>marmstk1.wav</label> |
| 752 |
<alignment>left</alignment> |
| 753 |
<font>Arial</font> |
| 754 |
<fontsize>10</fontsize> |
| 755 |
<precision>3</precision> |
| 756 |
<color> |
| 757 |
<r>0</r> |
| 758 |
<g>0</g> |
| 759 |
<b>0</b> |
| 760 |
</color> |
| 761 |
<bgcolor mode="nobackground"> |
| 762 |
<r>240</r> |
| 763 |
<g>235</g> |
| 764 |
<b>226</b> |
| 765 |
</bgcolor> |
| 766 |
<background>nobackground</background> |
| 767 |
</bsbObject> |
| 768 |
<bsbObject version="2" type="BSBLabel"> |
| 769 |
<objectName/> |
| 770 |
<x>8</x> |
| 771 |
<y>340</y> |
| 772 |
<width>220</width> |
| 773 |
<height>30</height> |
| 774 |
<uuid>{89d33619-f23a-461d-9e4a-411664bfd7a2}</uuid> |
| 775 |
<visible>true</visible> |
| 776 |
<midichan>0</midichan> |
| 777 |
<midicc>0</midicc> |
| 778 |
<label>Decay Time</label> |
| 779 |
<alignment>left</alignment> |
| 780 |
<font>Liberation Sans</font> |
| 781 |
<fontsize>10</fontsize> |
| 782 |
<precision>3</precision> |
| 783 |
<color> |
| 784 |
<r>0</r> |
| 785 |
<g>0</g> |
| 786 |
<b>0</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="BSBHSlider"> |
| 798 |
<objectName>Decay</objectName> |
| 799 |
<x>8</x> |
| 800 |
<y>323</y> |
| 801 |
<width>500</width> |
| 802 |
<height>27</height> |
| 803 |
<uuid>{70c1504f-58f9-49a9-84ae-70a3f263a660}</uuid> |
| 804 |
<visible>true</visible> |
| 805 |
<midichan>0</midichan> |
| 806 |
<midicc>0</midicc> |
| 807 |
<minimum>0.00000000</minimum> |
| 808 |
<maximum>5.00000000</maximum> |
| 809 |
<value>1.00000000</value> |
| 810 |
<mode>lin</mode> |
| 811 |
<mouseControl act="jump">continuous</mouseControl> |
| 812 |
<resolution>-1.00000000</resolution> |
| 813 |
<randomizable group="0">false</randomizable> |
| 814 |
</bsbObject> |
| 815 |
<bsbObject version="2" type="BSBDisplay"> |
| 816 |
<objectName>Decay</objectName> |
| 817 |
<x>448</x> |
| 818 |
<y>340</y> |
| 819 |
<width>60</width> |
| 820 |
<height>30</height> |
| 821 |
<uuid>{8d08c05b-378b-4ba5-a338-29d9bcc58f65}</uuid> |
| 822 |
<visible>true</visible> |
| 823 |
<midichan>0</midichan> |
| 824 |
<midicc>0</midicc> |
| 825 |
<label>1.000</label> |
| 826 |
<alignment>right</alignment> |
| 827 |
<font>Liberation Sans</font> |
| 828 |
<fontsize>9</fontsize> |
| 829 |
<precision>3</precision> |
| 830 |
<color> |
| 831 |
<r>0</r> |
| 832 |
<g>0</g> |
| 833 |
<b>0</b> |
| 834 |
</color> |
| 835 |
<bgcolor mode="nobackground"> |
| 836 |
<r>255</r> |
| 837 |
<g>255</g> |
| 838 |
<b>255</b> |
| 839 |
</bgcolor> |
| 840 |
<bordermode>noborder</bordermode> |
| 841 |
<borderradius>1</borderradius> |
| 842 |
<borderwidth>1</borderwidth> |
| 843 |
</bsbObject> |
| 844 |
</bsbPanel> |
| 845 |
<bsbPresets> |
| 846 |
</bsbPresets> |
| 847 |
<EventPanel name="" tempo="60.00000000" loop="8.00000000" x="913" y="162" width="655" height="346" visible="true" loopStart="0" loopEnd="0"> </EventPanel> |