| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
</CsOptions> |
| 4 |
<CsInstruments> |
| 5 |
|
| 6 |
sr = 44100 |
| 7 |
ksmps = 128 |
| 8 |
nchnls = 2 |
| 9 |
0dbfs = 1 |
| 10 |
|
| 11 |
|
| 12 |
instr 1 |
| 13 |
ioffx = 100 |
| 14 |
ioffy = 0 |
| 15 |
iscalex = 3 |
| 16 |
iscaley = 200 |
| 17 |
|
| 18 |
krelx invalue "_MouseRelX" |
| 19 |
krely invalue "_MouseRelY" |
| 20 |
|
| 21 |
kcps = (krelx /iscalex) + ioffx |
| 22 |
kcps portk kcps, 0.04 ;smooth signal |
| 23 |
|
| 24 |
kamp = (krely/iscaley) + ioffy |
| 25 |
kamp portk kamp, 0.04 ;smooth signal |
| 26 |
|
| 27 |
aout oscil3 kamp, kcps, 1 |
| 28 |
outs aout, aout |
| 29 |
endin |
| 30 |
|
| 31 |
</CsInstruments> |
| 32 |
<CsScore> |
| 33 |
f 1 0 1024 10 1 |
| 34 |
i 1 0 200 |
| 35 |
e |
| 36 |
</CsScore> |
| 37 |
</CsoundSynthesizer> |
| 38 |
<bsbPanel> |
| 39 |
<label>Widgets</label> |
| 40 |
<objectName/> |
| 41 |
<x>166</x> |
| 42 |
<y>212</y> |
| 43 |
<width>661</width> |
| 44 |
<height>315</height> |
| 45 |
<visible>true</visible> |
| 46 |
<uuid/> |
| 47 |
<bgcolor mode="background"> |
| 48 |
<r>187</r> |
| 49 |
<g>255</g> |
| 50 |
<b>166</b> |
| 51 |
</bgcolor> |
| 52 |
<bsbObject version="2" type="BSBDisplay"> |
| 53 |
<objectName>_MouseX</objectName> |
| 54 |
<x>70</x> |
| 55 |
<y>43</y> |
| 56 |
<width>59</width> |
| 57 |
<height>25</height> |
| 58 |
<uuid>{7772e70f-3b40-4ccb-bad8-890272f5eca1}</uuid> |
| 59 |
<visible>true</visible> |
| 60 |
<midichan>0</midichan> |
| 61 |
<midicc>0</midicc> |
| 62 |
<description/> |
| 63 |
<label>966.000</label> |
| 64 |
<alignment>left</alignment> |
| 65 |
<valignment>top</valignment> |
| 66 |
<font>DejaVu Sans</font> |
| 67 |
<fontsize>10</fontsize> |
| 68 |
<precision>3</precision> |
| 69 |
<color> |
| 70 |
<r>0</r> |
| 71 |
<g>0</g> |
| 72 |
<b>0</b> |
| 73 |
</color> |
| 74 |
<bgcolor mode="background"> |
| 75 |
<r>255</r> |
| 76 |
<g>255</g> |
| 77 |
<b>255</b> |
| 78 |
</bgcolor> |
| 79 |
<bordermode>border</bordermode> |
| 80 |
<borderradius>3</borderradius> |
| 81 |
<borderwidth>1</borderwidth> |
| 82 |
</bsbObject> |
| 83 |
<bsbObject version="2" type="BSBDisplay"> |
| 84 |
<objectName>_MouseY</objectName> |
| 85 |
<x>70</x> |
| 86 |
<y>71</y> |
| 87 |
<width>59</width> |
| 88 |
<height>25</height> |
| 89 |
<uuid>{1b005161-106a-4dee-b690-394f2ca0d542}</uuid> |
| 90 |
<visible>true</visible> |
| 91 |
<midichan>0</midichan> |
| 92 |
<midicc>0</midicc> |
| 93 |
<description/> |
| 94 |
<label>133.000</label> |
| 95 |
<alignment>left</alignment> |
| 96 |
<valignment>top</valignment> |
| 97 |
<font>DejaVu Sans</font> |
| 98 |
<fontsize>10</fontsize> |
| 99 |
<precision>3</precision> |
| 100 |
<color> |
| 101 |
<r>0</r> |
| 102 |
<g>0</g> |
| 103 |
<b>0</b> |
| 104 |
</color> |
| 105 |
<bgcolor mode="background"> |
| 106 |
<r>255</r> |
| 107 |
<g>255</g> |
| 108 |
<b>255</b> |
| 109 |
</bgcolor> |
| 110 |
<bordermode>border</bordermode> |
| 111 |
<borderradius>3</borderradius> |
| 112 |
<borderwidth>1</borderwidth> |
| 113 |
</bsbObject> |
| 114 |
<bsbObject version="2" type="BSBDisplay"> |
| 115 |
<objectName>_MouseRelX</objectName> |
| 116 |
<x>71</x> |
| 117 |
<y>100</y> |
| 118 |
<width>59</width> |
| 119 |
<height>25</height> |
| 120 |
<uuid>{c0b4e6d9-ae0f-43ff-bd6c-5d5cc1f4069a}</uuid> |
| 121 |
<visible>true</visible> |
| 122 |
<midichan>0</midichan> |
| 123 |
<midicc>0</midicc> |
| 124 |
<description/> |
| 125 |
<label>0.000</label> |
| 126 |
<alignment>left</alignment> |
| 127 |
<valignment>top</valignment> |
| 128 |
<font>DejaVu Sans</font> |
| 129 |
<fontsize>10</fontsize> |
| 130 |
<precision>3</precision> |
| 131 |
<color> |
| 132 |
<r>0</r> |
| 133 |
<g>0</g> |
| 134 |
<b>0</b> |
| 135 |
</color> |
| 136 |
<bgcolor mode="background"> |
| 137 |
<r>255</r> |
| 138 |
<g>255</g> |
| 139 |
<b>255</b> |
| 140 |
</bgcolor> |
| 141 |
<bordermode>border</bordermode> |
| 142 |
<borderradius>3</borderradius> |
| 143 |
<borderwidth>1</borderwidth> |
| 144 |
</bsbObject> |
| 145 |
<bsbObject version="2" type="BSBDisplay"> |
| 146 |
<objectName>_MouseRelY</objectName> |
| 147 |
<x>71</x> |
| 148 |
<y>128</y> |
| 149 |
<width>59</width> |
| 150 |
<height>25</height> |
| 151 |
<uuid>{42b32b09-6dd2-4fb1-8937-f9a98dcd0fd3}</uuid> |
| 152 |
<visible>true</visible> |
| 153 |
<midichan>0</midichan> |
| 154 |
<midicc>0</midicc> |
| 155 |
<description/> |
| 156 |
<label>35.000</label> |
| 157 |
<alignment>left</alignment> |
| 158 |
<valignment>top</valignment> |
| 159 |
<font>DejaVu Sans</font> |
| 160 |
<fontsize>10</fontsize> |
| 161 |
<precision>3</precision> |
| 162 |
<color> |
| 163 |
<r>0</r> |
| 164 |
<g>0</g> |
| 165 |
<b>0</b> |
| 166 |
</color> |
| 167 |
<bgcolor mode="background"> |
| 168 |
<r>255</r> |
| 169 |
<g>255</g> |
| 170 |
<b>255</b> |
| 171 |
</bgcolor> |
| 172 |
<bordermode>border</bordermode> |
| 173 |
<borderradius>3</borderradius> |
| 174 |
<borderwidth>1</borderwidth> |
| 175 |
</bsbObject> |
| 176 |
<bsbObject version="2" type="BSBLabel"> |
| 177 |
<objectName/> |
| 178 |
<x>7</x> |
| 179 |
<y>43</y> |
| 180 |
<width>64</width> |
| 181 |
<height>25</height> |
| 182 |
<uuid>{661a920f-1940-42c5-a3a9-805e987cdaa5}</uuid> |
| 183 |
<visible>true</visible> |
| 184 |
<midichan>0</midichan> |
| 185 |
<midicc>-3</midicc> |
| 186 |
<description/> |
| 187 |
<label>_MouseX</label> |
| 188 |
<alignment>right</alignment> |
| 189 |
<valignment>top</valignment> |
| 190 |
<font>Lucida Grande</font> |
| 191 |
<fontsize>10</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>0</borderwidth> |
| 206 |
</bsbObject> |
| 207 |
<bsbObject version="2" type="BSBLabel"> |
| 208 |
<objectName/> |
| 209 |
<x>7</x> |
| 210 |
<y>71</y> |
| 211 |
<width>64</width> |
| 212 |
<height>25</height> |
| 213 |
<uuid>{22a18513-ee55-4776-9d7a-810f17c896df}</uuid> |
| 214 |
<visible>true</visible> |
| 215 |
<midichan>0</midichan> |
| 216 |
<midicc>-3</midicc> |
| 217 |
<description/> |
| 218 |
<label>_MouseY</label> |
| 219 |
<alignment>right</alignment> |
| 220 |
<valignment>top</valignment> |
| 221 |
<font>Lucida Grande</font> |
| 222 |
<fontsize>10</fontsize> |
| 223 |
<precision>3</precision> |
| 224 |
<color> |
| 225 |
<r>0</r> |
| 226 |
<g>0</g> |
| 227 |
<b>0</b> |
| 228 |
</color> |
| 229 |
<bgcolor mode="nobackground"> |
| 230 |
<r>255</r> |
| 231 |
<g>255</g> |
| 232 |
<b>255</b> |
| 233 |
</bgcolor> |
| 234 |
<bordermode>noborder</bordermode> |
| 235 |
<borderradius>1</borderradius> |
| 236 |
<borderwidth>0</borderwidth> |
| 237 |
</bsbObject> |
| 238 |
<bsbObject version="2" type="BSBLabel"> |
| 239 |
<objectName/> |
| 240 |
<x>7</x> |
| 241 |
<y>100</y> |
| 242 |
<width>64</width> |
| 243 |
<height>25</height> |
| 244 |
<uuid>{eadf5acb-93f6-48e7-963d-1d89e9eae369}</uuid> |
| 245 |
<visible>true</visible> |
| 246 |
<midichan>0</midichan> |
| 247 |
<midicc>-3</midicc> |
| 248 |
<description/> |
| 249 |
<label>_MouseRelX</label> |
| 250 |
<alignment>right</alignment> |
| 251 |
<valignment>top</valignment> |
| 252 |
<font>Lucida Grande</font> |
| 253 |
<fontsize>10</fontsize> |
| 254 |
<precision>3</precision> |
| 255 |
<color> |
| 256 |
<r>0</r> |
| 257 |
<g>0</g> |
| 258 |
<b>0</b> |
| 259 |
</color> |
| 260 |
<bgcolor mode="nobackground"> |
| 261 |
<r>255</r> |
| 262 |
<g>255</g> |
| 263 |
<b>255</b> |
| 264 |
</bgcolor> |
| 265 |
<bordermode>noborder</bordermode> |
| 266 |
<borderradius>1</borderradius> |
| 267 |
<borderwidth>0</borderwidth> |
| 268 |
</bsbObject> |
| 269 |
<bsbObject version="2" type="BSBLabel"> |
| 270 |
<objectName/> |
| 271 |
<x>7</x> |
| 272 |
<y>128</y> |
| 273 |
<width>64</width> |
| 274 |
<height>25</height> |
| 275 |
<uuid>{f3e65bf7-2675-4ac6-ba8c-13161b753ad3}</uuid> |
| 276 |
<visible>true</visible> |
| 277 |
<midichan>0</midichan> |
| 278 |
<midicc>-3</midicc> |
| 279 |
<description/> |
| 280 |
<label>_MouseRelY</label> |
| 281 |
<alignment>right</alignment> |
| 282 |
<valignment>top</valignment> |
| 283 |
<font>Lucida Grande</font> |
| 284 |
<fontsize>10</fontsize> |
| 285 |
<precision>3</precision> |
| 286 |
<color> |
| 287 |
<r>0</r> |
| 288 |
<g>0</g> |
| 289 |
<b>0</b> |
| 290 |
</color> |
| 291 |
<bgcolor mode="nobackground"> |
| 292 |
<r>255</r> |
| 293 |
<g>255</g> |
| 294 |
<b>255</b> |
| 295 |
</bgcolor> |
| 296 |
<bordermode>noborder</bordermode> |
| 297 |
<borderradius>1</borderradius> |
| 298 |
<borderwidth>0</borderwidth> |
| 299 |
</bsbObject> |
| 300 |
<bsbObject version="2" type="BSBLabel"> |
| 301 |
<objectName/> |
| 302 |
<x>7</x> |
| 303 |
<y>18</y> |
| 304 |
<width>126</width> |
| 305 |
<height>26</height> |
| 306 |
<uuid>{7dedb7e5-2c10-41ca-80e3-2bc86484b6d6}</uuid> |
| 307 |
<visible>true</visible> |
| 308 |
<midichan>0</midichan> |
| 309 |
<midicc>0</midicc> |
| 310 |
<description/> |
| 311 |
<label>Chan. name</label> |
| 312 |
<alignment>center</alignment> |
| 313 |
<valignment>top</valignment> |
| 314 |
<font>DejaVu Sans</font> |
| 315 |
<fontsize>14</fontsize> |
| 316 |
<precision>3</precision> |
| 317 |
<color> |
| 318 |
<r>0</r> |
| 319 |
<g>0</g> |
| 320 |
<b>0</b> |
| 321 |
</color> |
| 322 |
<bgcolor mode="nobackground"> |
| 323 |
<r>255</r> |
| 324 |
<g>255</g> |
| 325 |
<b>255</b> |
| 326 |
</bgcolor> |
| 327 |
<bordermode>noborder</bordermode> |
| 328 |
<borderradius>1</borderradius> |
| 329 |
<borderwidth>0</borderwidth> |
| 330 |
</bsbObject> |
| 331 |
<bsbObject version="2" type="BSBDisplay"> |
| 332 |
<objectName>_MouseBut1</objectName> |
| 333 |
<x>71</x> |
| 334 |
<y>157</y> |
| 335 |
<width>59</width> |
| 336 |
<height>25</height> |
| 337 |
<uuid>{1b8b98ee-a972-4b2d-aaa8-afbfaa9c61e4}</uuid> |
| 338 |
<visible>true</visible> |
| 339 |
<midichan>0</midichan> |
| 340 |
<midicc>0</midicc> |
| 341 |
<description/> |
| 342 |
<label>0.000</label> |
| 343 |
<alignment>left</alignment> |
| 344 |
<valignment>top</valignment> |
| 345 |
<font>DejaVu Sans</font> |
| 346 |
<fontsize>10</fontsize> |
| 347 |
<precision>3</precision> |
| 348 |
<color> |
| 349 |
<r>0</r> |
| 350 |
<g>0</g> |
| 351 |
<b>0</b> |
| 352 |
</color> |
| 353 |
<bgcolor mode="background"> |
| 354 |
<r>255</r> |
| 355 |
<g>255</g> |
| 356 |
<b>255</b> |
| 357 |
</bgcolor> |
| 358 |
<bordermode>border</bordermode> |
| 359 |
<borderradius>3</borderradius> |
| 360 |
<borderwidth>1</borderwidth> |
| 361 |
</bsbObject> |
| 362 |
<bsbObject version="2" type="BSBDisplay"> |
| 363 |
<objectName>_MouseBut2</objectName> |
| 364 |
<x>71</x> |
| 365 |
<y>185</y> |
| 366 |
<width>59</width> |
| 367 |
<height>25</height> |
| 368 |
<uuid>{7a5f18f6-fe30-4506-8946-b4f37bacec28}</uuid> |
| 369 |
<visible>true</visible> |
| 370 |
<midichan>0</midichan> |
| 371 |
<midicc>0</midicc> |
| 372 |
<description/> |
| 373 |
<label>0.000</label> |
| 374 |
<alignment>left</alignment> |
| 375 |
<valignment>top</valignment> |
| 376 |
<font>DejaVu Sans</font> |
| 377 |
<fontsize>10</fontsize> |
| 378 |
<precision>3</precision> |
| 379 |
<color> |
| 380 |
<r>0</r> |
| 381 |
<g>0</g> |
| 382 |
<b>0</b> |
| 383 |
</color> |
| 384 |
<bgcolor mode="background"> |
| 385 |
<r>255</r> |
| 386 |
<g>255</g> |
| 387 |
<b>255</b> |
| 388 |
</bgcolor> |
| 389 |
<bordermode>border</bordermode> |
| 390 |
<borderradius>3</borderradius> |
| 391 |
<borderwidth>1</borderwidth> |
| 392 |
</bsbObject> |
| 393 |
<bsbObject version="2" type="BSBLabel"> |
| 394 |
<objectName/> |
| 395 |
<x>7</x> |
| 396 |
<y>157</y> |
| 397 |
<width>64</width> |
| 398 |
<height>25</height> |
| 399 |
<uuid>{aa9a39f0-0d4d-4633-b603-35fa9519ba95}</uuid> |
| 400 |
<visible>true</visible> |
| 401 |
<midichan>0</midichan> |
| 402 |
<midicc>-3</midicc> |
| 403 |
<description/> |
| 404 |
<label>_MouseBut1</label> |
| 405 |
<alignment>right</alignment> |
| 406 |
<valignment>top</valignment> |
| 407 |
<font>Lucida Grande</font> |
| 408 |
<fontsize>10</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>noborder</bordermode> |
| 421 |
<borderradius>1</borderradius> |
| 422 |
<borderwidth>0</borderwidth> |
| 423 |
</bsbObject> |
| 424 |
<bsbObject version="2" type="BSBLabel"> |
| 425 |
<objectName/> |
| 426 |
<x>7</x> |
| 427 |
<y>185</y> |
| 428 |
<width>64</width> |
| 429 |
<height>25</height> |
| 430 |
<uuid>{e74bf658-19b7-463f-9a1c-dd4f5fb507e9}</uuid> |
| 431 |
<visible>true</visible> |
| 432 |
<midichan>0</midichan> |
| 433 |
<midicc>-3</midicc> |
| 434 |
<description/> |
| 435 |
<label>_MouseBut2</label> |
| 436 |
<alignment>right</alignment> |
| 437 |
<valignment>top</valignment> |
| 438 |
<font>Lucida Grande</font> |
| 439 |
<fontsize>10</fontsize> |
| 440 |
<precision>3</precision> |
| 441 |
<color> |
| 442 |
<r>0</r> |
| 443 |
<g>0</g> |
| 444 |
<b>0</b> |
| 445 |
</color> |
| 446 |
<bgcolor mode="nobackground"> |
| 447 |
<r>255</r> |
| 448 |
<g>255</g> |
| 449 |
<b>255</b> |
| 450 |
</bgcolor> |
| 451 |
<bordermode>noborder</bordermode> |
| 452 |
<borderradius>1</borderradius> |
| 453 |
<borderwidth>0</borderwidth> |
| 454 |
</bsbObject> |
| 455 |
<bsbObject version="2" type="BSBDisplay"> |
| 456 |
<objectName/> |
| 457 |
<x>621</x> |
| 458 |
<y>295</y> |
| 459 |
<width>40</width> |
| 460 |
<height>20</height> |
| 461 |
<uuid>{de2a31b8-e6c8-4572-a6c9-e11f6dbdc8b5}</uuid> |
| 462 |
<visible>true</visible> |
| 463 |
<midichan>0</midichan> |
| 464 |
<midicc>0</midicc> |
| 465 |
<description/> |
| 466 |
<label/> |
| 467 |
<alignment>left</alignment> |
| 468 |
<valignment>top</valignment> |
| 469 |
<font>Arial</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>0</borderwidth> |
| 485 |
</bsbObject> |
| 486 |
<bsbObject version="2" type="BSBLabel"> |
| 487 |
<objectName/> |
| 488 |
<x>140</x> |
| 489 |
<y>68</y> |
| 490 |
<width>251</width> |
| 491 |
<height>86</height> |
| 492 |
<uuid>{74a96012-3452-49c8-9647-03aee70f32ec}</uuid> |
| 493 |
<visible>true</visible> |
| 494 |
<midichan>0</midichan> |
| 495 |
<midicc>0</midicc> |
| 496 |
<description/> |
| 497 |
<label>The reserved mouse channels receive the mouse position and button state within the widget panel, even while Csound is not running.</label> |
| 498 |
<alignment>left</alignment> |
| 499 |
<valignment>top</valignment> |
| 500 |
<font>Arial</font> |
| 501 |
<fontsize>14</fontsize> |
| 502 |
<precision>3</precision> |
| 503 |
<color> |
| 504 |
<r>0</r> |
| 505 |
<g>0</g> |
| 506 |
<b>0</b> |
| 507 |
</color> |
| 508 |
<bgcolor mode="background"> |
| 509 |
<r>170</r> |
| 510 |
<g>255</g> |
| 511 |
<b>127</b> |
| 512 |
</bgcolor> |
| 513 |
<bordermode>border</bordermode> |
| 514 |
<borderradius>10</borderradius> |
| 515 |
<borderwidth>5</borderwidth> |
| 516 |
</bsbObject> |
| 517 |
</bsbPanel> |
| 518 |
<bsbPresets> |
| 519 |
</bsbPresets> |