| 1 |
;Written by Iain McCurdy, 2006 |
| 2 |
|
| 3 |
;This csd requires the external file "scale.txt" to be located in the same directory as the csd or in SSDIR |
| 4 |
|
| 5 |
;Modified for QuteCsound by René, March 2011 |
| 6 |
;Tested on Ubuntu 10.04 with csound-float 5.13.0 and QuteCsound svn rev 817 |
| 7 |
|
| 8 |
;Notes on modifications from original csd: |
| 9 |
|
| 10 |
|
| 11 |
;my flags on Ubuntu: -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 = 10 ;NUMBER OF AUDIO SAMPLES IN EACH CONTROL CYCLE |
| 19 |
nchnls = 2 ;NUMBER OF CHANNELS (2=STEREO) |
| 20 |
0dbfs = 1 ;MAXIMUM AMPLITUDE REGARDLESS OF BIT DEPTH |
| 21 |
|
| 22 |
|
| 23 |
gisine ftgen 0,0,4096,10,1 ;A SINE WAVE |
| 24 |
giscale ftgen 0,0,128,-23,"scale.txt" ;PHRASE FROM EXTERNAL TEXT FILE |
| 25 |
|
| 26 |
|
| 27 |
instr 1 ;NOTE TRIGGERING INSTRUMENT |
| 28 |
itempo = p4 ;TEMPO VALUE FROM p4 |
| 29 |
kBPS = itempo/60 ;DERIVE BEATS-PER-SECOND |
| 30 |
ibeats = 4 ;NUMBER OF BEATS IN LOOP |
| 31 |
kphase phasor kBPS/ibeats ;DEFINE PHASOR ACCORDING TO BEATS-PER-SECOND AND NUMBER OF BEAT IN PHRASE |
| 32 |
kpointer = kphase * ibeats ;MULTIPLY PHASE VALUE BY NUMBER OF BEATS |
| 33 |
kp1 init 0 ;INITIALISE P-FIELD VARIABLES |
| 34 |
kp2 init 0 ;INITIALISE P-FIELD VARIABLES |
| 35 |
kp3 init 0 ;INITIALISE P-FIELD VARIABLES |
| 36 |
kp4 init 0 ;INITIALISE P-FIELD VARIABLES |
| 37 |
ktrigger timedseq kpointer, giscale, kp1, kp2,kp3, kp4 ;READ CURRENT TRIGGER AND P-FIELDS FROM FUNCTION TABLE |
| 38 |
schedkwhen ktrigger, 0, 0, 2, 0, kp3/kBPS, kp4 ;p3 VALUES ARE SCALED ACCORDING TO TEMPO (ALTHOUGH THEY COULD BE LEFT UNSCALED |
| 39 |
endin |
| 40 |
|
| 41 |
instr 2 ;SOUND GENERATING INSTRUMENT |
| 42 |
aenv line 1,(p3), 0 ;AMPLITUDE ENVELOPE |
| 43 |
asig oscili 0.4*aenv, cpspch(p4), gisine ;OSCILLATOR |
| 44 |
outs asig, asig ;SEND AUDIO TO OUTPUTS |
| 45 |
endin |
| 46 |
|
| 47 |
instr 3 ;PRINTS TIME |
| 48 |
ktime timeinsts |
| 49 |
ktime = int(ktime) |
| 50 |
outvalue "Time", ktime |
| 51 |
endin |
| 52 |
</CsInstruments> |
| 53 |
<CsScore> |
| 54 |
; p1 | p2 | p3 | p4(tempo) |
| 55 |
i 1 0 4 60 ;PLAY PHRASE ONCE AT 60BPM |
| 56 |
i 1 5 2 120 ;PLAY PHRASE ONCE AT 120BPM |
| 57 |
i 1 8 4 240 ;PLAY PHRASE FOUR TIMES AT 240BPM |
| 58 |
i 3 0 12 ;PRINTS TIME |
| 59 |
|
| 60 |
f 0 300 |
| 61 |
</CsScore> |
| 62 |
</CsoundSynthesizer> |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
<bsbPanel> |
| 67 |
<label>Widgets</label> |
| 68 |
<objectName/> |
| 69 |
<x>73</x> |
| 70 |
<y>206</y> |
| 71 |
<width>740</width> |
| 72 |
<height>387</height> |
| 73 |
<visible>true</visible> |
| 74 |
<uuid/> |
| 75 |
<bgcolor mode="background"> |
| 76 |
<r>241</r> |
| 77 |
<g>226</g> |
| 78 |
<b>185</b> |
| 79 |
</bgcolor> |
| 80 |
<bsbObject version="2" type="BSBLabel"> |
| 81 |
<objectName/> |
| 82 |
<x>2</x> |
| 83 |
<y>2</y> |
| 84 |
<width>322</width> |
| 85 |
<height>385</height> |
| 86 |
<uuid>{aa607456-d368-4d59-8497-d16d608404c3}</uuid> |
| 87 |
<visible>true</visible> |
| 88 |
<midichan>0</midichan> |
| 89 |
<midicc>0</midicc> |
| 90 |
<label/> |
| 91 |
<alignment>center</alignment> |
| 92 |
<font>Liberation Sans</font> |
| 93 |
<fontsize>18</fontsize> |
| 94 |
<precision>3</precision> |
| 95 |
<color> |
| 96 |
<r>0</r> |
| 97 |
<g>0</g> |
| 98 |
<b>0</b> |
| 99 |
</color> |
| 100 |
<bgcolor mode="background"> |
| 101 |
<r>244</r> |
| 102 |
<g>248</g> |
| 103 |
<b>200</b> |
| 104 |
</bgcolor> |
| 105 |
<bordermode>border</bordermode> |
| 106 |
<borderradius>5</borderradius> |
| 107 |
<borderwidth>2</borderwidth> |
| 108 |
</bsbObject> |
| 109 |
<bsbObject version="2" type="BSBLabel"> |
| 110 |
<objectName/> |
| 111 |
<x>10</x> |
| 112 |
<y>13</y> |
| 113 |
<width>190</width> |
| 114 |
<height>26</height> |
| 115 |
<uuid>{8a217802-41aa-44cc-a262-6808461bf7c9}</uuid> |
| 116 |
<visible>true</visible> |
| 117 |
<midichan>0</midichan> |
| 118 |
<midicc>0</midicc> |
| 119 |
<label>scale.txt------------------------------------</label> |
| 120 |
<alignment>left</alignment> |
| 121 |
<font>Liberation Sans</font> |
| 122 |
<fontsize>10</fontsize> |
| 123 |
<precision>3</precision> |
| 124 |
<color> |
| 125 |
<r>0</r> |
| 126 |
<g>0</g> |
| 127 |
<b>0</b> |
| 128 |
</color> |
| 129 |
<bgcolor mode="nobackground"> |
| 130 |
<r>255</r> |
| 131 |
<g>255</g> |
| 132 |
<b>255</b> |
| 133 |
</bgcolor> |
| 134 |
<bordermode>noborder</bordermode> |
| 135 |
<borderradius>1</borderradius> |
| 136 |
<borderwidth>1</borderwidth> |
| 137 |
</bsbObject> |
| 138 |
<bsbObject version="2" type="BSBLabel"> |
| 139 |
<objectName/> |
| 140 |
<x>10</x> |
| 141 |
<y>55</y> |
| 142 |
<width>189</width> |
| 143 |
<height>27</height> |
| 144 |
<uuid>{eee3e4a5-591a-489d-bb70-e387c0b89cdf}</uuid> |
| 145 |
<visible>true</visible> |
| 146 |
<midichan>0</midichan> |
| 147 |
<midicc>0</midicc> |
| 148 |
<label> 2 0.0 0.5 8.00</label> |
| 149 |
<alignment>left</alignment> |
| 150 |
<font>Liberation Sans</font> |
| 151 |
<fontsize>10</fontsize> |
| 152 |
<precision>3</precision> |
| 153 |
<color> |
| 154 |
<r>0</r> |
| 155 |
<g>0</g> |
| 156 |
<b>0</b> |
| 157 |
</color> |
| 158 |
<bgcolor mode="nobackground"> |
| 159 |
<r>255</r> |
| 160 |
<g>255</g> |
| 161 |
<b>255</b> |
| 162 |
</bgcolor> |
| 163 |
<bordermode>noborder</bordermode> |
| 164 |
<borderradius>1</borderradius> |
| 165 |
<borderwidth>1</borderwidth> |
| 166 |
</bsbObject> |
| 167 |
<bsbObject version="2" type="BSBLabel"> |
| 168 |
<objectName/> |
| 169 |
<x>10</x> |
| 170 |
<y>35</y> |
| 171 |
<width>190</width> |
| 172 |
<height>27</height> |
| 173 |
<uuid>{12c5e2f3-de58-4ff7-a888-994b7d7ce8c4}</uuid> |
| 174 |
<visible>true</visible> |
| 175 |
<midichan>0</midichan> |
| 176 |
<midicc>0</midicc> |
| 177 |
<label> instr strt dur pch</label> |
| 178 |
<alignment>left</alignment> |
| 179 |
<font>Liberation Sans</font> |
| 180 |
<fontsize>10</fontsize> |
| 181 |
<precision>3</precision> |
| 182 |
<color> |
| 183 |
<r>0</r> |
| 184 |
<g>0</g> |
| 185 |
<b>0</b> |
| 186 |
</color> |
| 187 |
<bgcolor mode="nobackground"> |
| 188 |
<r>255</r> |
| 189 |
<g>255</g> |
| 190 |
<b>255</b> |
| 191 |
</bgcolor> |
| 192 |
<bordermode>noborder</bordermode> |
| 193 |
<borderradius>1</borderradius> |
| 194 |
<borderwidth>1</borderwidth> |
| 195 |
</bsbObject> |
| 196 |
<bsbObject version="2" type="BSBLabel"> |
| 197 |
<objectName/> |
| 198 |
<x>10</x> |
| 199 |
<y>75</y> |
| 200 |
<width>189</width> |
| 201 |
<height>27</height> |
| 202 |
<uuid>{16a22c25-f68d-4d58-ae33-beb6bccd06a6}</uuid> |
| 203 |
<visible>true</visible> |
| 204 |
<midichan>0</midichan> |
| 205 |
<midicc>0</midicc> |
| 206 |
<label> 2 0.5 0.5 8.02</label> |
| 207 |
<alignment>left</alignment> |
| 208 |
<font>Liberation Sans</font> |
| 209 |
<fontsize>10</fontsize> |
| 210 |
<precision>3</precision> |
| 211 |
<color> |
| 212 |
<r>0</r> |
| 213 |
<g>0</g> |
| 214 |
<b>0</b> |
| 215 |
</color> |
| 216 |
<bgcolor mode="nobackground"> |
| 217 |
<r>255</r> |
| 218 |
<g>255</g> |
| 219 |
<b>255</b> |
| 220 |
</bgcolor> |
| 221 |
<bordermode>noborder</bordermode> |
| 222 |
<borderradius>1</borderradius> |
| 223 |
<borderwidth>1</borderwidth> |
| 224 |
</bsbObject> |
| 225 |
<bsbObject version="2" type="BSBLabel"> |
| 226 |
<objectName/> |
| 227 |
<x>10</x> |
| 228 |
<y>94</y> |
| 229 |
<width>189</width> |
| 230 |
<height>27</height> |
| 231 |
<uuid>{3a6bacff-afe5-430b-a28e-1de238f73536}</uuid> |
| 232 |
<visible>true</visible> |
| 233 |
<midichan>0</midichan> |
| 234 |
<midicc>0</midicc> |
| 235 |
<label> 2 1.0 0.5 8.04</label> |
| 236 |
<alignment>left</alignment> |
| 237 |
<font>Liberation Sans</font> |
| 238 |
<fontsize>10</fontsize> |
| 239 |
<precision>3</precision> |
| 240 |
<color> |
| 241 |
<r>0</r> |
| 242 |
<g>0</g> |
| 243 |
<b>0</b> |
| 244 |
</color> |
| 245 |
<bgcolor mode="nobackground"> |
| 246 |
<r>255</r> |
| 247 |
<g>255</g> |
| 248 |
<b>255</b> |
| 249 |
</bgcolor> |
| 250 |
<bordermode>noborder</bordermode> |
| 251 |
<borderradius>1</borderradius> |
| 252 |
<borderwidth>1</borderwidth> |
| 253 |
</bsbObject> |
| 254 |
<bsbObject version="2" type="BSBLabel"> |
| 255 |
<objectName/> |
| 256 |
<x>10</x> |
| 257 |
<y>113</y> |
| 258 |
<width>189</width> |
| 259 |
<height>27</height> |
| 260 |
<uuid>{79b84407-044e-4f56-97c3-76627037ef84}</uuid> |
| 261 |
<visible>true</visible> |
| 262 |
<midichan>0</midichan> |
| 263 |
<midicc>0</midicc> |
| 264 |
<label> 2 1.5 0.5 8.05</label> |
| 265 |
<alignment>left</alignment> |
| 266 |
<font>Liberation Sans</font> |
| 267 |
<fontsize>10</fontsize> |
| 268 |
<precision>3</precision> |
| 269 |
<color> |
| 270 |
<r>0</r> |
| 271 |
<g>0</g> |
| 272 |
<b>0</b> |
| 273 |
</color> |
| 274 |
<bgcolor mode="nobackground"> |
| 275 |
<r>255</r> |
| 276 |
<g>255</g> |
| 277 |
<b>255</b> |
| 278 |
</bgcolor> |
| 279 |
<bordermode>noborder</bordermode> |
| 280 |
<borderradius>1</borderradius> |
| 281 |
<borderwidth>1</borderwidth> |
| 282 |
</bsbObject> |
| 283 |
<bsbObject version="2" type="BSBLabel"> |
| 284 |
<objectName/> |
| 285 |
<x>10</x> |
| 286 |
<y>132</y> |
| 287 |
<width>189</width> |
| 288 |
<height>27</height> |
| 289 |
<uuid>{0c70d982-0573-4c99-a4ef-cb48a0cc467d}</uuid> |
| 290 |
<visible>true</visible> |
| 291 |
<midichan>0</midichan> |
| 292 |
<midicc>0</midicc> |
| 293 |
<label> 2 2.0 0.5 8.07</label> |
| 294 |
<alignment>left</alignment> |
| 295 |
<font>Liberation Sans</font> |
| 296 |
<fontsize>10</fontsize> |
| 297 |
<precision>3</precision> |
| 298 |
<color> |
| 299 |
<r>0</r> |
| 300 |
<g>0</g> |
| 301 |
<b>0</b> |
| 302 |
</color> |
| 303 |
<bgcolor mode="nobackground"> |
| 304 |
<r>255</r> |
| 305 |
<g>255</g> |
| 306 |
<b>255</b> |
| 307 |
</bgcolor> |
| 308 |
<bordermode>noborder</bordermode> |
| 309 |
<borderradius>1</borderradius> |
| 310 |
<borderwidth>1</borderwidth> |
| 311 |
</bsbObject> |
| 312 |
<bsbObject version="2" type="BSBLabel"> |
| 313 |
<objectName/> |
| 314 |
<x>10</x> |
| 315 |
<y>151</y> |
| 316 |
<width>189</width> |
| 317 |
<height>27</height> |
| 318 |
<uuid>{e6814b74-acc4-4110-9d38-b2a1c508bc66}</uuid> |
| 319 |
<visible>true</visible> |
| 320 |
<midichan>0</midichan> |
| 321 |
<midicc>0</midicc> |
| 322 |
<label> 2 2.5 0.5 8.09</label> |
| 323 |
<alignment>left</alignment> |
| 324 |
<font>Liberation Sans</font> |
| 325 |
<fontsize>10</fontsize> |
| 326 |
<precision>3</precision> |
| 327 |
<color> |
| 328 |
<r>0</r> |
| 329 |
<g>0</g> |
| 330 |
<b>0</b> |
| 331 |
</color> |
| 332 |
<bgcolor mode="nobackground"> |
| 333 |
<r>255</r> |
| 334 |
<g>255</g> |
| 335 |
<b>255</b> |
| 336 |
</bgcolor> |
| 337 |
<bordermode>noborder</bordermode> |
| 338 |
<borderradius>1</borderradius> |
| 339 |
<borderwidth>1</borderwidth> |
| 340 |
</bsbObject> |
| 341 |
<bsbObject version="2" type="BSBLabel"> |
| 342 |
<objectName/> |
| 343 |
<x>10</x> |
| 344 |
<y>171</y> |
| 345 |
<width>189</width> |
| 346 |
<height>27</height> |
| 347 |
<uuid>{b7a881a2-036b-4f14-98c6-21f69c297964}</uuid> |
| 348 |
<visible>true</visible> |
| 349 |
<midichan>0</midichan> |
| 350 |
<midicc>0</midicc> |
| 351 |
<label> 2 3.0 0.5 8.11</label> |
| 352 |
<alignment>left</alignment> |
| 353 |
<font>Liberation Sans</font> |
| 354 |
<fontsize>10</fontsize> |
| 355 |
<precision>3</precision> |
| 356 |
<color> |
| 357 |
<r>0</r> |
| 358 |
<g>0</g> |
| 359 |
<b>0</b> |
| 360 |
</color> |
| 361 |
<bgcolor mode="nobackground"> |
| 362 |
<r>255</r> |
| 363 |
<g>255</g> |
| 364 |
<b>255</b> |
| 365 |
</bgcolor> |
| 366 |
<bordermode>noborder</bordermode> |
| 367 |
<borderradius>1</borderradius> |
| 368 |
<borderwidth>1</borderwidth> |
| 369 |
</bsbObject> |
| 370 |
<bsbObject version="2" type="BSBLabel"> |
| 371 |
<objectName/> |
| 372 |
<x>10</x> |
| 373 |
<y>191</y> |
| 374 |
<width>189</width> |
| 375 |
<height>27</height> |
| 376 |
<uuid>{6ba85d92-0657-4505-a8ba-e54aa26cf375}</uuid> |
| 377 |
<visible>true</visible> |
| 378 |
<midichan>0</midichan> |
| 379 |
<midicc>0</midicc> |
| 380 |
<label> 2 3.5 0.5 9.00</label> |
| 381 |
<alignment>left</alignment> |
| 382 |
<font>Liberation Sans</font> |
| 383 |
<fontsize>10</fontsize> |
| 384 |
<precision>3</precision> |
| 385 |
<color> |
| 386 |
<r>0</r> |
| 387 |
<g>0</g> |
| 388 |
<b>0</b> |
| 389 |
</color> |
| 390 |
<bgcolor mode="nobackground"> |
| 391 |
<r>255</r> |
| 392 |
<g>255</g> |
| 393 |
<b>255</b> |
| 394 |
</bgcolor> |
| 395 |
<bordermode>noborder</bordermode> |
| 396 |
<borderradius>1</borderradius> |
| 397 |
<borderwidth>1</borderwidth> |
| 398 |
</bsbObject> |
| 399 |
<bsbObject version="2" type="BSBLabel"> |
| 400 |
<objectName/> |
| 401 |
<x>10</x> |
| 402 |
<y>211</y> |
| 403 |
<width>189</width> |
| 404 |
<height>27</height> |
| 405 |
<uuid>{aa55ca88-c235-4d20-a43b-cc2014236b76}</uuid> |
| 406 |
<visible>true</visible> |
| 407 |
<midichan>0</midichan> |
| 408 |
<midicc>0</midicc> |
| 409 |
<label> 2 4.0 0.5 8.00</label> |
| 410 |
<alignment>left</alignment> |
| 411 |
<font>Liberation Sans</font> |
| 412 |
<fontsize>10</fontsize> |
| 413 |
<precision>3</precision> |
| 414 |
<color> |
| 415 |
<r>0</r> |
| 416 |
<g>0</g> |
| 417 |
<b>0</b> |
| 418 |
</color> |
| 419 |
<bgcolor mode="nobackground"> |
| 420 |
<r>255</r> |
| 421 |
<g>255</g> |
| 422 |
<b>255</b> |
| 423 |
</bgcolor> |
| 424 |
<bordermode>noborder</bordermode> |
| 425 |
<borderradius>1</borderradius> |
| 426 |
<borderwidth>1</borderwidth> |
| 427 |
</bsbObject> |
| 428 |
<bsbObject version="2" type="BSBLabel"> |
| 429 |
<objectName/> |
| 430 |
<x>10</x> |
| 431 |
<y>231</y> |
| 432 |
<width>189</width> |
| 433 |
<height>27</height> |
| 434 |
<uuid>{d788a18a-3770-4dcf-a064-9674ef852b9d}</uuid> |
| 435 |
<visible>true</visible> |
| 436 |
<midichan>0</midichan> |
| 437 |
<midicc>0</midicc> |
| 438 |
<label> -1 4 -1 -1</label> |
| 439 |
<alignment>left</alignment> |
| 440 |
<font>Liberation Sans</font> |
| 441 |
<fontsize>10</fontsize> |
| 442 |
<precision>3</precision> |
| 443 |
<color> |
| 444 |
<r>0</r> |
| 445 |
<g>0</g> |
| 446 |
<b>0</b> |
| 447 |
</color> |
| 448 |
<bgcolor mode="nobackground"> |
| 449 |
<r>255</r> |
| 450 |
<g>255</g> |
| 451 |
<b>255</b> |
| 452 |
</bgcolor> |
| 453 |
<bordermode>noborder</bordermode> |
| 454 |
<borderradius>1</borderradius> |
| 455 |
<borderwidth>1</borderwidth> |
| 456 |
</bsbObject> |
| 457 |
<bsbObject version="2" type="BSBLabel"> |
| 458 |
<objectName/> |
| 459 |
<x>10</x> |
| 460 |
<y>250</y> |
| 461 |
<width>190</width> |
| 462 |
<height>26</height> |
| 463 |
<uuid>{130bcd5c-6637-4933-b16a-283ff1dd7a7d}</uuid> |
| 464 |
<visible>true</visible> |
| 465 |
<midichan>0</midichan> |
| 466 |
<midicc>0</midicc> |
| 467 |
<label>----------------------------------------------</label> |
| 468 |
<alignment>left</alignment> |
| 469 |
<font>Liberation Sans</font> |
| 470 |
<fontsize>10</fontsize> |
| 471 |
<precision>3</precision> |
| 472 |
<color> |
| 473 |
<r>0</r> |
| 474 |
<g>0</g> |
| 475 |
<b>0</b> |
| 476 |
</color> |
| 477 |
<bgcolor mode="nobackground"> |
| 478 |
<r>255</r> |
| 479 |
<g>255</g> |
| 480 |
<b>255</b> |
| 481 |
</bgcolor> |
| 482 |
<bordermode>noborder</bordermode> |
| 483 |
<borderradius>1</borderradius> |
| 484 |
<borderwidth>1</borderwidth> |
| 485 |
</bsbObject> |
| 486 |
<bsbObject version="2" type="BSBLabel"> |
| 487 |
<objectName/> |
| 488 |
<x>10</x> |
| 489 |
<y>276</y> |
| 490 |
<width>190</width> |
| 491 |
<height>26</height> |
| 492 |
<uuid>{b8ad3284-5a77-4dbb-ac62-3975956fca06}</uuid> |
| 493 |
<visible>true</visible> |
| 494 |
<midichan>0</midichan> |
| 495 |
<midicc>0</midicc> |
| 496 |
<label>Score---------------------------------------</label> |
| 497 |
<alignment>left</alignment> |
| 498 |
<font>Liberation Sans</font> |
| 499 |
<fontsize>10</fontsize> |
| 500 |
<precision>3</precision> |
| 501 |
<color> |
| 502 |
<r>0</r> |
| 503 |
<g>0</g> |
| 504 |
<b>0</b> |
| 505 |
</color> |
| 506 |
<bgcolor mode="nobackground"> |
| 507 |
<r>255</r> |
| 508 |
<g>255</g> |
| 509 |
<b>255</b> |
| 510 |
</bgcolor> |
| 511 |
<bordermode>noborder</bordermode> |
| 512 |
<borderradius>1</borderradius> |
| 513 |
<borderwidth>1</borderwidth> |
| 514 |
</bsbObject> |
| 515 |
<bsbObject version="2" type="BSBLabel"> |
| 516 |
<objectName/> |
| 517 |
<x>10</x> |
| 518 |
<y>317</y> |
| 519 |
<width>350</width> |
| 520 |
<height>27</height> |
| 521 |
<uuid>{e04db746-13db-45b0-a773-b3071a7b4684}</uuid> |
| 522 |
<visible>true</visible> |
| 523 |
<midichan>0</midichan> |
| 524 |
<midicc>0</midicc> |
| 525 |
<label>i 1 0 4 60 -PLAY PHRASE ONCE AT 60BPM</label> |
| 526 |
<alignment>left</alignment> |
| 527 |
<font>Liberation Sans</font> |
| 528 |
<fontsize>10</fontsize> |
| 529 |
<precision>3</precision> |
| 530 |
<color> |
| 531 |
<r>0</r> |
| 532 |
<g>0</g> |
| 533 |
<b>0</b> |
| 534 |
</color> |
| 535 |
<bgcolor mode="nobackground"> |
| 536 |
<r>255</r> |
| 537 |
<g>255</g> |
| 538 |
<b>255</b> |
| 539 |
</bgcolor> |
| 540 |
<bordermode>noborder</bordermode> |
| 541 |
<borderradius>1</borderradius> |
| 542 |
<borderwidth>1</borderwidth> |
| 543 |
</bsbObject> |
| 544 |
<bsbObject version="2" type="BSBLabel"> |
| 545 |
<objectName/> |
| 546 |
<x>10</x> |
| 547 |
<y>297</y> |
| 548 |
<width>189</width> |
| 549 |
<height>27</height> |
| 550 |
<uuid>{dd9137a8-91d3-4775-b6c0-53637c44469d}</uuid> |
| 551 |
<visible>true</visible> |
| 552 |
<midichan>0</midichan> |
| 553 |
<midicc>0</midicc> |
| 554 |
<label>p1 | p2 | p3 | p4(tempo)</label> |
| 555 |
<alignment>left</alignment> |
| 556 |
<font>Liberation Sans</font> |
| 557 |
<fontsize>10</fontsize> |
| 558 |
<precision>3</precision> |
| 559 |
<color> |
| 560 |
<r>0</r> |
| 561 |
<g>0</g> |
| 562 |
<b>0</b> |
| 563 |
</color> |
| 564 |
<bgcolor mode="nobackground"> |
| 565 |
<r>255</r> |
| 566 |
<g>255</g> |
| 567 |
<b>255</b> |
| 568 |
</bgcolor> |
| 569 |
<bordermode>noborder</bordermode> |
| 570 |
<borderradius>1</borderradius> |
| 571 |
<borderwidth>1</borderwidth> |
| 572 |
</bsbObject> |
| 573 |
<bsbObject version="2" type="BSBLabel"> |
| 574 |
<objectName/> |
| 575 |
<x>10</x> |
| 576 |
<y>338</y> |
| 577 |
<width>350</width> |
| 578 |
<height>27</height> |
| 579 |
<uuid>{c08e956e-e389-453a-ae74-faf078173cd5}</uuid> |
| 580 |
<visible>true</visible> |
| 581 |
<midichan>0</midichan> |
| 582 |
<midicc>0</midicc> |
| 583 |
<label>i 1 5 2 120 -PLAY PHRASE ONCE AT 120BPM</label> |
| 584 |
<alignment>left</alignment> |
| 585 |
<font>Liberation Sans</font> |
| 586 |
<fontsize>10</fontsize> |
| 587 |
<precision>3</precision> |
| 588 |
<color> |
| 589 |
<r>0</r> |
| 590 |
<g>0</g> |
| 591 |
<b>0</b> |
| 592 |
</color> |
| 593 |
<bgcolor mode="nobackground"> |
| 594 |
<r>255</r> |
| 595 |
<g>255</g> |
| 596 |
<b>255</b> |
| 597 |
</bgcolor> |
| 598 |
<bordermode>noborder</bordermode> |
| 599 |
<borderradius>1</borderradius> |
| 600 |
<borderwidth>1</borderwidth> |
| 601 |
</bsbObject> |
| 602 |
<bsbObject version="2" type="BSBLabel"> |
| 603 |
<objectName/> |
| 604 |
<x>10</x> |
| 605 |
<y>358</y> |
| 606 |
<width>350</width> |
| 607 |
<height>27</height> |
| 608 |
<uuid>{d4cfc01e-ffec-4d69-a5b2-6a958b2f450b}</uuid> |
| 609 |
<visible>true</visible> |
| 610 |
<midichan>0</midichan> |
| 611 |
<midicc>0</midicc> |
| 612 |
<label>i 1 8 4 240 -PLAY PHRASE FOUR TIMES AT 240BPM</label> |
| 613 |
<alignment>left</alignment> |
| 614 |
<font>Liberation Sans</font> |
| 615 |
<fontsize>10</fontsize> |
| 616 |
<precision>3</precision> |
| 617 |
<color> |
| 618 |
<r>0</r> |
| 619 |
<g>0</g> |
| 620 |
<b>0</b> |
| 621 |
</color> |
| 622 |
<bgcolor mode="nobackground"> |
| 623 |
<r>255</r> |
| 624 |
<g>255</g> |
| 625 |
<b>255</b> |
| 626 |
</bgcolor> |
| 627 |
<bordermode>noborder</bordermode> |
| 628 |
<borderradius>1</borderradius> |
| 629 |
<borderwidth>1</borderwidth> |
| 630 |
</bsbObject> |
| 631 |
<bsbObject version="2" type="BSBLabel"> |
| 632 |
<objectName/> |
| 633 |
<x>326</x> |
| 634 |
<y>2</y> |
| 635 |
<width>414</width> |
| 636 |
<height>385</height> |
| 637 |
<uuid>{a24198fc-f5a8-4a47-ae97-7ab1f2d3d9fa}</uuid> |
| 638 |
<visible>true</visible> |
| 639 |
<midichan>0</midichan> |
| 640 |
<midicc>0</midicc> |
| 641 |
<label>timedseq</label> |
| 642 |
<alignment>center</alignment> |
| 643 |
<font>Liberation Sans</font> |
| 644 |
<fontsize>18</fontsize> |
| 645 |
<precision>3</precision> |
| 646 |
<color> |
| 647 |
<r>0</r> |
| 648 |
<g>0</g> |
| 649 |
<b>0</b> |
| 650 |
</color> |
| 651 |
<bgcolor mode="background"> |
| 652 |
<r>244</r> |
| 653 |
<g>248</g> |
| 654 |
<b>200</b> |
| 655 |
</bgcolor> |
| 656 |
<bordermode>border</bordermode> |
| 657 |
<borderradius>5</borderradius> |
| 658 |
<borderwidth>2</borderwidth> |
| 659 |
</bsbObject> |
| 660 |
<bsbObject version="2" type="BSBLabel"> |
| 661 |
<objectName/> |
| 662 |
<x>327</x> |
| 663 |
<y>27</y> |
| 664 |
<width>411</width> |
| 665 |
<height>356</height> |
| 666 |
<uuid>{6cc4030e-c32b-4214-a04a-f321aa473d3b}</uuid> |
| 667 |
<visible>true</visible> |
| 668 |
<midichan>0</midichan> |
| 669 |
<midicc>0</midicc> |
| 670 |
<label>-------------------------------------------------------------------------------------------------------------------------- |
| 671 |
The 'timedseq' opcode used in conjunction with the 'schedkwhen' opcode allows us create and trigger sequences of note events that are stored in either function tables or in separate text files. The advantage of this over using a .sco file is that we can have random access to multiple scores from a single Csound performance, we can warp the tempo of these score fragments in realtime, we can start from any point from within the score fragment, we can loop phrases etc. |
| 672 |
Score fragments are read by timedseq using a pointer which in this example is created using a 'phasor' opcode. The sequence file used by this example is 'scale.txt'. It is also printed out on the adjacent panel. The Csound score used by this example is also printed out. There is a hierarchy of scores in that the Csound score is triggering the sequence stored as 'scale.txt' which in turn triggers individual notes. Time warping of the sequence is determined by the p4 value of Csound score events. Looping is determined by the duration of Csound score event with respect to the tempo dictated by that event. An GUI number box informs the user of the current time/beat location as the Csound score progresses.</label> |
| 673 |
<alignment>left</alignment> |
| 674 |
<font>Liberation Sans</font> |
| 675 |
<fontsize>14</fontsize> |
| 676 |
<precision>3</precision> |
| 677 |
<color> |
| 678 |
<r>0</r> |
| 679 |
<g>0</g> |
| 680 |
<b>0</b> |
| 681 |
</color> |
| 682 |
<bgcolor mode="nobackground"> |
| 683 |
<r>255</r> |
| 684 |
<g>255</g> |
| 685 |
<b>255</b> |
| 686 |
</bgcolor> |
| 687 |
<bordermode>noborder</bordermode> |
| 688 |
<borderradius>1</borderradius> |
| 689 |
<borderwidth>1</borderwidth> |
| 690 |
</bsbObject> |
| 691 |
<bsbObject version="2" type="BSBDisplay"> |
| 692 |
<objectName>Time</objectName> |
| 693 |
<x>126</x> |
| 694 |
<y>264</y> |
| 695 |
<width>50</width> |
| 696 |
<height>23</height> |
| 697 |
<uuid>{a68b7266-dd37-40c1-a97e-c2839a5610a7}</uuid> |
| 698 |
<visible>true</visible> |
| 699 |
<midichan>0</midichan> |
| 700 |
<midicc>0</midicc> |
| 701 |
<label>5.000</label> |
| 702 |
<alignment>right</alignment> |
| 703 |
<font>Liberation Sans</font> |
| 704 |
<fontsize>12</fontsize> |
| 705 |
<precision>3</precision> |
| 706 |
<color> |
| 707 |
<r>0</r> |
| 708 |
<g>0</g> |
| 709 |
<b>0</b> |
| 710 |
</color> |
| 711 |
<bgcolor mode="nobackground"> |
| 712 |
<r>255</r> |
| 713 |
<g>255</g> |
| 714 |
<b>255</b> |
| 715 |
</bgcolor> |
| 716 |
<bordermode>border</bordermode> |
| 717 |
<borderradius>6</borderradius> |
| 718 |
<borderwidth>1</borderwidth> |
| 719 |
</bsbObject> |
| 720 |
<bsbObject version="2" type="BSBLabel"> |
| 721 |
<objectName/> |
| 722 |
<x>64</x> |
| 723 |
<y>264</y> |
| 724 |
<width>60</width> |
| 725 |
<height>26</height> |
| 726 |
<uuid>{c4e48e22-8843-4a3b-b39a-2c0e7bb497c3}</uuid> |
| 727 |
<visible>true</visible> |
| 728 |
<midichan>0</midichan> |
| 729 |
<midicc>0</midicc> |
| 730 |
<label>Time</label> |
| 731 |
<alignment>right</alignment> |
| 732 |
<font>Liberation Sans</font> |
| 733 |
<fontsize>10</fontsize> |
| 734 |
<precision>3</precision> |
| 735 |
<color> |
| 736 |
<r>0</r> |
| 737 |
<g>0</g> |
| 738 |
<b>0</b> |
| 739 |
</color> |
| 740 |
<bgcolor mode="nobackground"> |
| 741 |
<r>255</r> |
| 742 |
<g>255</g> |
| 743 |
<b>255</b> |
| 744 |
</bgcolor> |
| 745 |
<bordermode>noborder</bordermode> |
| 746 |
<borderradius>1</borderradius> |
| 747 |
<borderwidth>1</borderwidth> |
| 748 |
</bsbObject> |
| 749 |
</bsbPanel> |
| 750 |
<bsbPresets> |
| 751 |
</bsbPresets> |
| 752 |
<EventPanel name="" tempo="60.00000000" loop="8.00000000" x="913" y="162" width="655" height="346" visible="false" loopStart="0" loopEnd="0"> </EventPanel> |