| 1 |
;Written by Iain McCurdy 2009 |
| 2 |
|
| 3 |
;Modified for QuteCsound by René, September 2010, updated Feb 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 table(s) for exp slider |
| 8 |
; Add Browser for audio files and use of FilePlay2 udo, now accept mono or stereo wav files |
| 9 |
|
| 10 |
|
| 11 |
;my flags on Ubuntu: -iadc -odac -b1024 -B2048 -+rtaudio=alsa -+rtmidi=null -m0 |
| 12 |
<CsoundSynthesizer> |
| 13 |
<CsOptions> |
| 14 |
--env:SSDIR+=../../SourceMaterials |
| 15 |
</CsOptions> |
| 16 |
<CsInstruments> |
| 17 |
sr = 44100 ;SAMPLE RATE |
| 18 |
ksmps = 256 ;NUMBER OF AUDIO SAMPLES IN EACH CONTROL CYCLE |
| 19 |
nchnls = 2 ;NUMBER OF CHANNELS (2=STEREO) |
| 20 |
|
| 21 |
|
| 22 |
;TABLES THAT STORE FFT ANALYSIS ATTRIBUTES DATA |
| 23 |
giFFTattributes0 ftgen 1, 0, 4, -2, 512, 256, 1024, 1 |
| 24 |
giFFTattributes1 ftgen 2, 0, 4, -2, 1024, 256, 1024, 1 |
| 25 |
giFFTattributes2 ftgen 3, 0, 4, -2, 2048, 256, 2048, 1 |
| 26 |
giFFTattributes3 ftgen 4, 0, 4, -2, 4096, 256, 4096, 1 |
| 27 |
|
| 28 |
;TABLE FOR EXP SLIDER |
| 29 |
giExp2 ftgen 0, 0, 129, -25, 0, 0.25, 128, 2.0 |
| 30 |
|
| 31 |
|
| 32 |
opcode FilePlay2, aa, Skoo ; Credit to Joachim Heintz |
| 33 |
;gives stereo output regardless your soundfile is mono or stereo |
| 34 |
Sfil, kspeed, iskip, iloop xin |
| 35 |
ichn filenchnls Sfil |
| 36 |
if ichn == 1 then |
| 37 |
aL diskin2 Sfil, kspeed, iskip, iloop |
| 38 |
aR = aL |
| 39 |
else |
| 40 |
aL, aR diskin2 Sfil, kspeed, iskip, iloop |
| 41 |
endif |
| 42 |
xout aL, aR |
| 43 |
endop |
| 44 |
|
| 45 |
|
| 46 |
instr 10 ;GUI |
| 47 |
ktrig metro 10 |
| 48 |
if (ktrig == 1) then |
| 49 |
kfmod invalue "Rescale_Frequencies" |
| 50 |
gkfmod tablei kfmod, giExp2, 1 |
| 51 |
outvalue "Rescale_Frequencies_Value", gkfmod ;init 1.0 |
| 52 |
gknoscs invalue "No_Oscs" |
| 53 |
gkbinoffset invalue "Bin_Offset" |
| 54 |
gkbinincr invalue "Bin_Increment" |
| 55 |
|
| 56 |
gkinput invalue "Input" |
| 57 |
gkFFTattributes invalue "FFTattributes" |
| 58 |
endif |
| 59 |
endin |
| 60 |
|
| 61 |
instr 1 |
| 62 |
if gkinput=0 then ;IF 'INPUT' SWITCH IS SET TO 'Live Input' THEN IMPLEMENT THE NEXT LINE OF CODE |
| 63 |
asig inch 1 ;READ AUDIO FROM THE COMPUTER'S LIVE INPUT CHANNEL 1 (LEFT) |
| 64 |
else ;IF 'INPUT' SWITCH IS SET TO 'Sound File' THEN IMPLEMENT THE NEXT LINE OF CODE |
| 65 |
Sfile invalue "_Browse" |
| 66 |
;OUTPUT OPCODE FILE_PATH| SPEED | INSKIP | WRAPAROUND (1=ON) |
| 67 |
asig, aR FilePlay2 Sfile, 1, 0, 1 ;READ A STORED AUDIO FILE FROM THE HARD DRIVE |
| 68 |
endif ;END OF 'IF'...'THEN' BRANCHING |
| 69 |
|
| 70 |
iFFTsize table 0, i(gkFFTattributes)+1 ;READ FFT SIZE FROM APPROPRIATE TABLE |
| 71 |
kSwitch changed gkFFTattributes, gknoscs, gkbinoffset, gkbinincr ;GENERATE A MOMENTARY '1' PULSE IN OUTPUT 'kSwitch' IF ANY OF THE SCANNED INPUT VARIABLES CHANGE. (OUTPUT 'kSwitch' IS NORMALLY ZERO) |
| 72 |
|
| 73 |
if kSwitch=1 then ;IF I-RATE VARIABLE IS CHANGED... |
| 74 |
reinit UPDATE ;BEGIN A REINITIALISATION PASS IN ORDER TO EFFECT THIS CHANGE. BEGIN THIS PASS AT LABEL ENTITLED 'UPDATE' AND CONTINUE UNTIL rireturn OPCODE |
| 75 |
endif ;END OF CONDITIONAL BRANCHING |
| 76 |
|
| 77 |
UPDATE: ;LABEL - BEGIN RE-INITIALIZATION PASS FROM HERE |
| 78 |
iFFTsize table 0, i(gkFFTattributes)+1 ;READ FFT SIZE FROM APPROPRIATE TABLE |
| 79 |
ioverlap table 1, i(gkFFTattributes)+1 ;READ OVERLAP SIZE FROM APPROPRIATE TABLE |
| 80 |
iwinsize table 2, i(gkFFTattributes)+1 ;READ WINDOW SIZE FROM APPROPRIATE TABLE |
| 81 |
iwintype table 3, i(gkFFTattributes)+1 ;READ WINDOW TYPE FROM APPROPRIATE TABLE |
| 82 |
|
| 83 |
fsig1 pvsanal asig, iFFTsize, ioverlap, iwinsize, iwintype ;ANALYSE THE AUDIO SIGNAL. OUTPUT AN F-SIGNAL. |
| 84 |
|
| 85 |
;THE limit OPCODE IS USED TO LIMIT THE VALUE USED FOR NUMBER OF OSCILLATORS (inoscs) |
| 86 |
;AS IF THIS EXCEEDS THE NUMBER OF BINS USED IN THE ORIGINAL ANALYSIS CSOUND WILL CRASH. |
| 87 |
;THE NUMBER OF BINS IS FFTsize DIVIDED BY 2, + 1 |
| 88 |
;BIN OFFSET (binoffset) AND BIN INCREMENT (binincr) MUST ALSO BE TAKEN INTO ACCOUNT AS |
| 89 |
;THEY WILL INFLUENCE TO WHAT HIGHEST FFT BIN pvsadsyn ATTEMPTS TO READ FROM |
| 90 |
inoscs limit i(gknoscs), 0, (((iFFTsize*0.5)+1)-i(gkbinoffset))/i(gkbinincr) |
| 91 |
|
| 92 |
; print inoscs ;FOR THE USERS INFORMATION THE ACTUAL NUMBER OF OSCILLATORS |
| 93 |
aresyn pvsadsyn fsig1, inoscs, gkfmod , i(gkbinoffset), i(gkbinincr) ;RESYNTHESIZE FROM THE fsig USING pvsadsyn |
| 94 |
;OUTPUT OPCODE INPUT |
| 95 |
outs aresyn, aresyn ;SEND THE RESYNTHESIZED SIGNAL TO THE AUDIO OUTPUTS |
| 96 |
endin |
| 97 |
</CsInstruments> |
| 98 |
<CsScore> |
| 99 |
;INSTR | START | DURATION |
| 100 |
i 10 0 3600 ;GUI |
| 101 |
</CsScore> |
| 102 |
</CsoundSynthesizer> |
| 103 |
|
| 104 |
|
| 105 |
<bsbPanel> |
| 106 |
<label>Widgets</label> |
| 107 |
<objectName/> |
| 108 |
<x>240</x> |
| 109 |
<y>333</y> |
| 110 |
<width>1125</width> |
| 111 |
<height>429</height> |
| 112 |
<visible>true</visible> |
| 113 |
<uuid/> |
| 114 |
<bgcolor mode="background"> |
| 115 |
<r>241</r> |
| 116 |
<g>226</g> |
| 117 |
<b>185</b> |
| 118 |
</bgcolor> |
| 119 |
<bsbObject version="2" type="BSBLabel"> |
| 120 |
<objectName/> |
| 121 |
<x>2</x> |
| 122 |
<y>2</y> |
| 123 |
<width>514</width> |
| 124 |
<height>420</height> |
| 125 |
<uuid>{aa607456-d368-4d59-8497-d16d608404c3}</uuid> |
| 126 |
<visible>true</visible> |
| 127 |
<midichan>0</midichan> |
| 128 |
<midicc>0</midicc> |
| 129 |
<label>pvsadsyn</label> |
| 130 |
<alignment>center</alignment> |
| 131 |
<font>Liberation Sans</font> |
| 132 |
<fontsize>18</fontsize> |
| 133 |
<precision>3</precision> |
| 134 |
<color> |
| 135 |
<r>0</r> |
| 136 |
<g>0</g> |
| 137 |
<b>0</b> |
| 138 |
</color> |
| 139 |
<bgcolor mode="background"> |
| 140 |
<r>181</r> |
| 141 |
<g>199</g> |
| 142 |
<b>255</b> |
| 143 |
</bgcolor> |
| 144 |
<bordermode>border</bordermode> |
| 145 |
<borderradius>5</borderradius> |
| 146 |
<borderwidth>2</borderwidth> |
| 147 |
</bsbObject> |
| 148 |
<bsbObject version="2" type="BSBLabel"> |
| 149 |
<objectName/> |
| 150 |
<x>517</x> |
| 151 |
<y>2</y> |
| 152 |
<width>601</width> |
| 153 |
<height>420</height> |
| 154 |
<uuid>{74928ed2-b701-4668-9a11-74763d317e9b}</uuid> |
| 155 |
<visible>true</visible> |
| 156 |
<midichan>0</midichan> |
| 157 |
<midicc>0</midicc> |
| 158 |
<label>pvsadsyn</label> |
| 159 |
<alignment>center</alignment> |
| 160 |
<font>Liberation Sans</font> |
| 161 |
<fontsize>18</fontsize> |
| 162 |
<precision>3</precision> |
| 163 |
<color> |
| 164 |
<r>0</r> |
| 165 |
<g>0</g> |
| 166 |
<b>0</b> |
| 167 |
</color> |
| 168 |
<bgcolor mode="background"> |
| 169 |
<r>181</r> |
| 170 |
<g>199</g> |
| 171 |
<b>255</b> |
| 172 |
</bgcolor> |
| 173 |
<bordermode>border</bordermode> |
| 174 |
<borderradius>5</borderradius> |
| 175 |
<borderwidth>2</borderwidth> |
| 176 |
</bsbObject> |
| 177 |
<bsbObject version="2" type="BSBLabel"> |
| 178 |
<objectName/> |
| 179 |
<x>520</x> |
| 180 |
<y>18</y> |
| 181 |
<width>595</width> |
| 182 |
<height>402</height> |
| 183 |
<uuid>{d4bdb5ce-87d8-4c8c-9c64-40ec2eed6f5a}</uuid> |
| 184 |
<visible>true</visible> |
| 185 |
<midichan>0</midichan> |
| 186 |
<midicc>0</midicc> |
| 187 |
<label>-------------------------------------------------------------------------------------------------------------------------------------------------- |
| 188 |
pvsadsyn resynthesizes an fsig into an audio signal with some interesting user adjustable parameters that define how that resynthesis is performed. pvsadsyn is quite similar the the opcode pvadd. The principle innovation is that pvsadsyn can operate upon a streaming f-signal and therefore a live stream of audio. Most of pvsadsyn's input parameters must be defined at initialization time. To allow realtime modulation of these parameters I have designed the instrument to perform a re-initialization pass through the relevant code if any of these parameters are changed in the GUI. 'No. Oscs.' (number of oscillators) defines the number of oscillators that will be used in the resynthesis. As this number is reduced the result is simlar to lowering the cutoff frequency of a low-pass filter. 'Bin Offset' defines the lowest FFT bin which will be read from. As this value is increased the result is similar to raising the cutoff frequency of a high-pass filter. Setting 'Bin Increment' to values higher than '1' means that pvsadsyn will not read from every consecutive FFT bin but will instead skip the defined number of bins before reading again for each oscillator. If pvsadsyn is forced to read from a bin that doesn't exist Csound will crash. The highest bin that can be read from is dictated by the number of bins available from the original analysis carried out, in this case, by 'pvsanal'. It will be (FFTsize/2)+1. The highest bin that pvsadsyn will attempt to read from is dependent upon 'No. Oscs.', 'Bin Offset' and 'Bin Increment'. To prevent the annoyance of crashes while modulating these parameters I have included a line of code that limits the actual number of oscillators to prevent read attempts from non existant FFT bins. The actual number of oscillators used by pvsadsyn is output to the terminal each time it changes. 'Rescale Frequencies' modulates the frequencies of all FFT bins at k-rate. The user can select between a variety of combinations of parameters for the FFT analysis. Larger values for FFT size will give better harmonic reproduction but greater time smearing effects and higher computational cost. Lower values will result in less time smearing but greater harmonic distortion.</label> |
| 189 |
<alignment>left</alignment> |
| 190 |
<font>Arial</font> |
| 191 |
<fontsize>14</fontsize> |
| 192 |
<precision>3</precision> |
| 193 |
<color> |
| 194 |
<r>0</r> |
| 195 |
<g>0</g> |
| 196 |
<b>0</b> |
| 197 |
</color> |
| 198 |
<bgcolor mode="nobackground"> |
| 199 |
<r>255</r> |
| 200 |
<g>255</g> |
| 201 |
<b>255</b> |
| 202 |
</bgcolor> |
| 203 |
<bordermode>noborder</bordermode> |
| 204 |
<borderradius>1</borderradius> |
| 205 |
<borderwidth>1</borderwidth> |
| 206 |
</bsbObject> |
| 207 |
<bsbObject version="2" type="BSBButton"> |
| 208 |
<objectName/> |
| 209 |
<x>8</x> |
| 210 |
<y>8</y> |
| 211 |
<width>100</width> |
| 212 |
<height>30</height> |
| 213 |
<uuid>{24979132-c53f-4414-ac6b-6b4f503ecfe8}</uuid> |
| 214 |
<visible>true</visible> |
| 215 |
<midichan>0</midichan> |
| 216 |
<midicc>0</midicc> |
| 217 |
<type>event</type> |
| 218 |
<pressedValue>1.00000000</pressedValue> |
| 219 |
<stringvalue/> |
| 220 |
<text> ON / OFF</text> |
| 221 |
<image>/</image> |
| 222 |
<eventLine>i 1 0 -1</eventLine> |
| 223 |
<latch>true</latch> |
| 224 |
<latched>false</latched> |
| 225 |
</bsbObject> |
| 226 |
<bsbObject version="2" type="BSBLabel"> |
| 227 |
<objectName/> |
| 228 |
<x>6</x> |
| 229 |
<y>341</y> |
| 230 |
<width>506</width> |
| 231 |
<height>70</height> |
| 232 |
<uuid>{f0c4875d-4e35-4d37-b043-9c1476025645}</uuid> |
| 233 |
<visible>true</visible> |
| 234 |
<midichan>0</midichan> |
| 235 |
<midicc>0</midicc> |
| 236 |
<label>FFT Attributes</label> |
| 237 |
<alignment>left</alignment> |
| 238 |
<font>Arial Black</font> |
| 239 |
<fontsize>14</fontsize> |
| 240 |
<precision>3</precision> |
| 241 |
<color> |
| 242 |
<r>0</r> |
| 243 |
<g>0</g> |
| 244 |
<b>0</b> |
| 245 |
</color> |
| 246 |
<bgcolor mode="nobackground"> |
| 247 |
<r>255</r> |
| 248 |
<g>255</g> |
| 249 |
<b>255</b> |
| 250 |
</bgcolor> |
| 251 |
<bordermode>border</bordermode> |
| 252 |
<borderradius>3</borderradius> |
| 253 |
<borderwidth>1</borderwidth> |
| 254 |
</bsbObject> |
| 255 |
<bsbObject version="2" type="BSBLabel"> |
| 256 |
<objectName/> |
| 257 |
<x>169</x> |
| 258 |
<y>347</y> |
| 259 |
<width>300</width> |
| 260 |
<height>30</height> |
| 261 |
<uuid>{c2cdd204-e32b-488e-b5c2-70688fb2defa}</uuid> |
| 262 |
<visible>true</visible> |
| 263 |
<midichan>0</midichan> |
| 264 |
<midicc>0</midicc> |
| 265 |
<label>FFT Size - Overlap - Window Size - Window Type</label> |
| 266 |
<alignment>left</alignment> |
| 267 |
<font>Arial</font> |
| 268 |
<fontsize>10</fontsize> |
| 269 |
<precision>3</precision> |
| 270 |
<color> |
| 271 |
<r>0</r> |
| 272 |
<g>0</g> |
| 273 |
<b>0</b> |
| 274 |
</color> |
| 275 |
<bgcolor mode="nobackground"> |
| 276 |
<r>255</r> |
| 277 |
<g>255</g> |
| 278 |
<b>255</b> |
| 279 |
</bgcolor> |
| 280 |
<bordermode>noborder</bordermode> |
| 281 |
<borderradius>1</borderradius> |
| 282 |
<borderwidth>1</borderwidth> |
| 283 |
</bsbObject> |
| 284 |
<bsbObject version="2" type="BSBDropdown"> |
| 285 |
<objectName>FFTattributes</objectName> |
| 286 |
<x>169</x> |
| 287 |
<y>367</y> |
| 288 |
<width>274</width> |
| 289 |
<height>32</height> |
| 290 |
<uuid>{c8c311f9-c1b7-4bbb-becf-9c9f1fa862c9}</uuid> |
| 291 |
<visible>true</visible> |
| 292 |
<midichan>0</midichan> |
| 293 |
<midicc>0</midicc> |
| 294 |
<bsbDropdownItemList> |
| 295 |
<bsbDropdownItem> |
| 296 |
<name>512 256 1024 1</name> |
| 297 |
<value>0</value> |
| 298 |
<stringvalue/> |
| 299 |
</bsbDropdownItem> |
| 300 |
<bsbDropdownItem> |
| 301 |
<name>1024 256 1024 1</name> |
| 302 |
<value>1</value> |
| 303 |
<stringvalue/> |
| 304 |
</bsbDropdownItem> |
| 305 |
<bsbDropdownItem> |
| 306 |
<name>2048 256 2048 1</name> |
| 307 |
<value>2</value> |
| 308 |
<stringvalue/> |
| 309 |
</bsbDropdownItem> |
| 310 |
<bsbDropdownItem> |
| 311 |
<name>4096 256 4096 1</name> |
| 312 |
<value>3</value> |
| 313 |
<stringvalue/> |
| 314 |
</bsbDropdownItem> |
| 315 |
</bsbDropdownItemList> |
| 316 |
<selectedIndex>1</selectedIndex> |
| 317 |
<randomizable group="0">false</randomizable> |
| 318 |
</bsbObject> |
| 319 |
<bsbObject version="2" type="BSBDisplay"> |
| 320 |
<objectName>Rescale_Frequencies_Value</objectName> |
| 321 |
<x>449</x> |
| 322 |
<y>93</y> |
| 323 |
<width>60</width> |
| 324 |
<height>30</height> |
| 325 |
<uuid>{745d6bee-b951-4a03-9fe8-9e10d5ae4556}</uuid> |
| 326 |
<visible>true</visible> |
| 327 |
<midichan>0</midichan> |
| 328 |
<midicc>0</midicc> |
| 329 |
<label>1.003</label> |
| 330 |
<alignment>right</alignment> |
| 331 |
<font>Arial</font> |
| 332 |
<fontsize>9</fontsize> |
| 333 |
<precision>3</precision> |
| 334 |
<color> |
| 335 |
<r>0</r> |
| 336 |
<g>0</g> |
| 337 |
<b>0</b> |
| 338 |
</color> |
| 339 |
<bgcolor mode="nobackground"> |
| 340 |
<r>255</r> |
| 341 |
<g>255</g> |
| 342 |
<b>255</b> |
| 343 |
</bgcolor> |
| 344 |
<bordermode>noborder</bordermode> |
| 345 |
<borderradius>1</borderradius> |
| 346 |
<borderwidth>1</borderwidth> |
| 347 |
</bsbObject> |
| 348 |
<bsbObject version="2" type="BSBHSlider"> |
| 349 |
<objectName>Rescale_Frequencies</objectName> |
| 350 |
<x>9</x> |
| 351 |
<y>76</y> |
| 352 |
<width>500</width> |
| 353 |
<height>27</height> |
| 354 |
<uuid>{06814721-6151-4baa-84e2-8f39843b07a4}</uuid> |
| 355 |
<visible>true</visible> |
| 356 |
<midichan>0</midichan> |
| 357 |
<midicc>0</midicc> |
| 358 |
<minimum>0.00000000</minimum> |
| 359 |
<maximum>1.00000000</maximum> |
| 360 |
<value>0.66800000</value> |
| 361 |
<mode>lin</mode> |
| 362 |
<mouseControl act="jump">continuous</mouseControl> |
| 363 |
<resolution>-1.00000000</resolution> |
| 364 |
<randomizable group="0">false</randomizable> |
| 365 |
</bsbObject> |
| 366 |
<bsbObject version="2" type="BSBLabel"> |
| 367 |
<objectName/> |
| 368 |
<x>9</x> |
| 369 |
<y>93</y> |
| 370 |
<width>180</width> |
| 371 |
<height>30</height> |
| 372 |
<uuid>{c6d7165c-6730-426f-b293-52b411bc73cf}</uuid> |
| 373 |
<visible>true</visible> |
| 374 |
<midichan>0</midichan> |
| 375 |
<midicc>0</midicc> |
| 376 |
<label>Rescale Frequencies</label> |
| 377 |
<alignment>left</alignment> |
| 378 |
<font>Arial</font> |
| 379 |
<fontsize>10</fontsize> |
| 380 |
<precision>3</precision> |
| 381 |
<color> |
| 382 |
<r>0</r> |
| 383 |
<g>0</g> |
| 384 |
<b>0</b> |
| 385 |
</color> |
| 386 |
<bgcolor mode="nobackground"> |
| 387 |
<r>255</r> |
| 388 |
<g>255</g> |
| 389 |
<b>255</b> |
| 390 |
</bgcolor> |
| 391 |
<bordermode>noborder</bordermode> |
| 392 |
<borderradius>1</borderradius> |
| 393 |
<borderwidth>1</borderwidth> |
| 394 |
</bsbObject> |
| 395 |
<bsbObject version="2" type="BSBLabel"> |
| 396 |
<objectName/> |
| 397 |
<x>6</x> |
| 398 |
<y>222</y> |
| 399 |
<width>506</width> |
| 400 |
<height>110</height> |
| 401 |
<uuid>{cdc434d0-b9e7-4f6f-aa90-800ec76dced6}</uuid> |
| 402 |
<visible>true</visible> |
| 403 |
<midichan>0</midichan> |
| 404 |
<midicc>0</midicc> |
| 405 |
<label>Input</label> |
| 406 |
<alignment>left</alignment> |
| 407 |
<font>DejaVu Sans</font> |
| 408 |
<fontsize>14</fontsize> |
| 409 |
<precision>3</precision> |
| 410 |
<color> |
| 411 |
<r>0</r> |
| 412 |
<g>0</g> |
| 413 |
<b>0</b> |
| 414 |
</color> |
| 415 |
<bgcolor mode="nobackground"> |
| 416 |
<r>255</r> |
| 417 |
<g>255</g> |
| 418 |
<b>255</b> |
| 419 |
</bgcolor> |
| 420 |
<bordermode>border</bordermode> |
| 421 |
<borderradius>3</borderradius> |
| 422 |
<borderwidth>1</borderwidth> |
| 423 |
</bsbObject> |
| 424 |
<bsbObject version="2" type="BSBButton"> |
| 425 |
<objectName>_Browse</objectName> |
| 426 |
<x>8</x> |
| 427 |
<y>280</y> |
| 428 |
<width>170</width> |
| 429 |
<height>30</height> |
| 430 |
<uuid>{b9431a61-61f7-432b-bf6f-c47ddc7f9050}</uuid> |
| 431 |
<visible>true</visible> |
| 432 |
<midichan>0</midichan> |
| 433 |
<midicc>0</midicc> |
| 434 |
<type>value</type> |
| 435 |
<pressedValue>1.00000000</pressedValue> |
| 436 |
<stringvalue>Songpan.wav</stringvalue> |
| 437 |
<text>Browse Audio File</text> |
| 438 |
<image>/</image> |
| 439 |
<eventLine/> |
| 440 |
<latch>false</latch> |
| 441 |
<latched>false</latched> |
| 442 |
</bsbObject> |
| 443 |
<bsbObject version="2" type="BSBDropdown"> |
| 444 |
<objectName>Input</objectName> |
| 445 |
<x>180</x> |
| 446 |
<y>244</y> |
| 447 |
<width>120</width> |
| 448 |
<height>30</height> |
| 449 |
<uuid>{cc64e047-7e82-416c-9753-d010ddefabe4}</uuid> |
| 450 |
<visible>true</visible> |
| 451 |
<midichan>0</midichan> |
| 452 |
<midicc>0</midicc> |
| 453 |
<bsbDropdownItemList> |
| 454 |
<bsbDropdownItem> |
| 455 |
<name>Live Input</name> |
| 456 |
<value>0</value> |
| 457 |
<stringvalue/> |
| 458 |
</bsbDropdownItem> |
| 459 |
<bsbDropdownItem> |
| 460 |
<name>Audio File</name> |
| 461 |
<value>1</value> |
| 462 |
<stringvalue/> |
| 463 |
</bsbDropdownItem> |
| 464 |
</bsbDropdownItemList> |
| 465 |
<selectedIndex>1</selectedIndex> |
| 466 |
<randomizable group="0">false</randomizable> |
| 467 |
</bsbObject> |
| 468 |
<bsbObject version="2" type="BSBLineEdit"> |
| 469 |
<objectName>_Browse</objectName> |
| 470 |
<x>179</x> |
| 471 |
<y>281</y> |
| 472 |
<width>330</width> |
| 473 |
<height>28</height> |
| 474 |
<uuid>{68b5f90b-b78e-4581-b434-232db5f4c40f}</uuid> |
| 475 |
<visible>true</visible> |
| 476 |
<midichan>0</midichan> |
| 477 |
<midicc>0</midicc> |
| 478 |
<label>Songpan.wav</label> |
| 479 |
<alignment>left</alignment> |
| 480 |
<font>Arial</font> |
| 481 |
<fontsize>10</fontsize> |
| 482 |
<precision>3</precision> |
| 483 |
<color> |
| 484 |
<r>0</r> |
| 485 |
<g>0</g> |
| 486 |
<b>0</b> |
| 487 |
</color> |
| 488 |
<bgcolor mode="nobackground"> |
| 489 |
<r>229</r> |
| 490 |
<g>229</g> |
| 491 |
<b>229</b> |
| 492 |
</bgcolor> |
| 493 |
<background>nobackground</background> |
| 494 |
</bsbObject> |
| 495 |
<bsbObject version="2" type="BSBLabel"> |
| 496 |
<objectName/> |
| 497 |
<x>162</x> |
| 498 |
<y>153</y> |
| 499 |
<width>80</width> |
| 500 |
<height>30</height> |
| 501 |
<uuid>{dc1bccf4-d23b-4470-9c3f-5e576f314662}</uuid> |
| 502 |
<visible>true</visible> |
| 503 |
<midichan>0</midichan> |
| 504 |
<midicc>0</midicc> |
| 505 |
<label>Bin Offset</label> |
| 506 |
<alignment>right</alignment> |
| 507 |
<font>Arial</font> |
| 508 |
<fontsize>10</fontsize> |
| 509 |
<precision>3</precision> |
| 510 |
<color> |
| 511 |
<r>0</r> |
| 512 |
<g>0</g> |
| 513 |
<b>0</b> |
| 514 |
</color> |
| 515 |
<bgcolor mode="nobackground"> |
| 516 |
<r>255</r> |
| 517 |
<g>255</g> |
| 518 |
<b>255</b> |
| 519 |
</bgcolor> |
| 520 |
<bordermode>noborder</bordermode> |
| 521 |
<borderradius>1</borderradius> |
| 522 |
<borderwidth>1</borderwidth> |
| 523 |
</bsbObject> |
| 524 |
<bsbObject version="2" type="BSBSpinBox"> |
| 525 |
<objectName>Bin_Offset</objectName> |
| 526 |
<x>242</x> |
| 527 |
<y>153</y> |
| 528 |
<width>60</width> |
| 529 |
<height>30</height> |
| 530 |
<uuid>{ba683795-bc00-46ba-8540-c6c32edb8bd5}</uuid> |
| 531 |
<visible>true</visible> |
| 532 |
<midichan>0</midichan> |
| 533 |
<midicc>0</midicc> |
| 534 |
<alignment>left</alignment> |
| 535 |
<font>Arial</font> |
| 536 |
<fontsize>14</fontsize> |
| 537 |
<color> |
| 538 |
<r>0</r> |
| 539 |
<g>0</g> |
| 540 |
<b>0</b> |
| 541 |
</color> |
| 542 |
<bgcolor mode="nobackground"> |
| 543 |
<r>255</r> |
| 544 |
<g>255</g> |
| 545 |
<b>255</b> |
| 546 |
</bgcolor> |
| 547 |
<resolution>1.00000000</resolution> |
| 548 |
<minimum>0</minimum> |
| 549 |
<maximum>2048</maximum> |
| 550 |
<randomizable group="0">false</randomizable> |
| 551 |
<value>0</value> |
| 552 |
</bsbObject> |
| 553 |
<bsbObject version="2" type="BSBSpinBox"> |
| 554 |
<objectName>No_Oscs</objectName> |
| 555 |
<x>120</x> |
| 556 |
<y>153</y> |
| 557 |
<width>60</width> |
| 558 |
<height>30</height> |
| 559 |
<uuid>{90b425e6-cc7a-4b70-bd54-52c1a629ce97}</uuid> |
| 560 |
<visible>true</visible> |
| 561 |
<midichan>0</midichan> |
| 562 |
<midicc>0</midicc> |
| 563 |
<alignment>left</alignment> |
| 564 |
<font>Arial</font> |
| 565 |
<fontsize>14</fontsize> |
| 566 |
<color> |
| 567 |
<r>0</r> |
| 568 |
<g>0</g> |
| 569 |
<b>0</b> |
| 570 |
</color> |
| 571 |
<bgcolor mode="nobackground"> |
| 572 |
<r>255</r> |
| 573 |
<g>255</g> |
| 574 |
<b>255</b> |
| 575 |
</bgcolor> |
| 576 |
<resolution>1.00000000</resolution> |
| 577 |
<minimum>1</minimum> |
| 578 |
<maximum>2048</maximum> |
| 579 |
<randomizable group="0">false</randomizable> |
| 580 |
<value>256</value> |
| 581 |
</bsbObject> |
| 582 |
<bsbObject version="2" type="BSBLabel"> |
| 583 |
<objectName/> |
| 584 |
<x>40</x> |
| 585 |
<y>153</y> |
| 586 |
<width>80</width> |
| 587 |
<height>30</height> |
| 588 |
<uuid>{0c5a5f45-e32e-4e9c-b277-3c4e6c3cc04d}</uuid> |
| 589 |
<visible>true</visible> |
| 590 |
<midichan>0</midichan> |
| 591 |
<midicc>0</midicc> |
| 592 |
<label>No. Oscs</label> |
| 593 |
<alignment>right</alignment> |
| 594 |
<font>Arial</font> |
| 595 |
<fontsize>10</fontsize> |
| 596 |
<precision>3</precision> |
| 597 |
<color> |
| 598 |
<r>0</r> |
| 599 |
<g>0</g> |
| 600 |
<b>0</b> |
| 601 |
</color> |
| 602 |
<bgcolor mode="nobackground"> |
| 603 |
<r>255</r> |
| 604 |
<g>255</g> |
| 605 |
<b>255</b> |
| 606 |
</bgcolor> |
| 607 |
<bordermode>noborder</bordermode> |
| 608 |
<borderradius>1</borderradius> |
| 609 |
<borderwidth>1</borderwidth> |
| 610 |
</bsbObject> |
| 611 |
<bsbObject version="2" type="BSBLabel"> |
| 612 |
<objectName/> |
| 613 |
<x>303</x> |
| 614 |
<y>153</y> |
| 615 |
<width>80</width> |
| 616 |
<height>30</height> |
| 617 |
<uuid>{c7b8f937-676e-40dd-99c4-9aadc4aafe48}</uuid> |
| 618 |
<visible>true</visible> |
| 619 |
<midichan>0</midichan> |
| 620 |
<midicc>0</midicc> |
| 621 |
<label>Bin Increment</label> |
| 622 |
<alignment>right</alignment> |
| 623 |
<font>Arial</font> |
| 624 |
<fontsize>10</fontsize> |
| 625 |
<precision>3</precision> |
| 626 |
<color> |
| 627 |
<r>0</r> |
| 628 |
<g>0</g> |
| 629 |
<b>0</b> |
| 630 |
</color> |
| 631 |
<bgcolor mode="nobackground"> |
| 632 |
<r>255</r> |
| 633 |
<g>255</g> |
| 634 |
<b>255</b> |
| 635 |
</bgcolor> |
| 636 |
<bordermode>noborder</bordermode> |
| 637 |
<borderradius>1</borderradius> |
| 638 |
<borderwidth>1</borderwidth> |
| 639 |
</bsbObject> |
| 640 |
<bsbObject version="2" type="BSBSpinBox"> |
| 641 |
<objectName>Bin_Increment</objectName> |
| 642 |
<x>383</x> |
| 643 |
<y>153</y> |
| 644 |
<width>60</width> |
| 645 |
<height>30</height> |
| 646 |
<uuid>{f83a5be2-dec4-4c9f-a1c9-b584b0a8c120}</uuid> |
| 647 |
<visible>true</visible> |
| 648 |
<midichan>0</midichan> |
| 649 |
<midicc>0</midicc> |
| 650 |
<alignment>left</alignment> |
| 651 |
<font>Arial</font> |
| 652 |
<fontsize>14</fontsize> |
| 653 |
<color> |
| 654 |
<r>0</r> |
| 655 |
<g>0</g> |
| 656 |
<b>0</b> |
| 657 |
</color> |
| 658 |
<bgcolor mode="nobackground"> |
| 659 |
<r>255</r> |
| 660 |
<g>255</g> |
| 661 |
<b>255</b> |
| 662 |
</bgcolor> |
| 663 |
<resolution>1.00000000</resolution> |
| 664 |
<minimum>1</minimum> |
| 665 |
<maximum>2048</maximum> |
| 666 |
<randomizable group="0">false</randomizable> |
| 667 |
<value>1</value> |
| 668 |
</bsbObject> |
| 669 |
<bsbObject version="2" type="BSBLabel"> |
| 670 |
<objectName/> |
| 671 |
<x>179</x> |
| 672 |
<y>309</y> |
| 673 |
<width>330</width> |
| 674 |
<height>30</height> |
| 675 |
<uuid>{a63909ac-6fa4-41c8-a84b-ba08e76132ab}</uuid> |
| 676 |
<visible>true</visible> |
| 677 |
<midichan>0</midichan> |
| 678 |
<midicc>0</midicc> |
| 679 |
<label>Restart the instrument after changing the audio file.</label> |
| 680 |
<alignment>left</alignment> |
| 681 |
<font>Liberation Sans</font> |
| 682 |
<fontsize>12</fontsize> |
| 683 |
<precision>3</precision> |
| 684 |
<color> |
| 685 |
<r>0</r> |
| 686 |
<g>0</g> |
| 687 |
<b>0</b> |
| 688 |
</color> |
| 689 |
<bgcolor mode="nobackground"> |
| 690 |
<r>255</r> |
| 691 |
<g>255</g> |
| 692 |
<b>255</b> |
| 693 |
</bgcolor> |
| 694 |
<bordermode>noborder</bordermode> |
| 695 |
<borderradius>1</borderradius> |
| 696 |
<borderwidth>1</borderwidth> |
| 697 |
</bsbObject> |
| 698 |
</bsbPanel> |
| 699 |
<bsbPresets> |
| 700 |
</bsbPresets> |
| 701 |
<EventPanel name="" tempo="60.00000000" loop="8.00000000" x="913" y="162" width="655" height="346" visible="true" loopStart="0" loopEnd="0"> </EventPanel> |