| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
; Audio out Audio in No messages |
| 5 |
-odac -iadc -d ;;;RT audio I/O |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o FLscroll.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
; Demonstration of the flscroll opcode which enables |
| 12 |
; the use of widget sizes and placings beyond the |
| 13 |
; dimensions of the containing panel |
| 14 |
sr = 44100 |
| 15 |
kr = 441 |
| 16 |
ksmps = 100 |
| 17 |
nchnls = 1 |
| 18 |
|
| 19 |
FLpanel "Text Box", 420, 200, 50, 50 |
| 20 |
iwidth = 420 |
| 21 |
iheight = 200 |
| 22 |
ix = 0 |
| 23 |
iy = 0 |
| 24 |
FLscroll iwidth, iheight, ix, iy |
| 25 |
ih3 FLbox "DRAG THE SCROLL BAR TO THE RIGHT IN ORDER TO READ THE REST OF THIS TEXT!", 1, 10, 20, 870, 30, 10, 100 |
| 26 |
FLscrollEnd |
| 27 |
; End of panel contents |
| 28 |
FLpanelEnd |
| 29 |
; Run the widget thread! |
| 30 |
FLrun |
| 31 |
|
| 32 |
instr 1 |
| 33 |
endin |
| 34 |
|
| 35 |
|
| 36 |
</CsInstruments> |
| 37 |
<CsScore> |
| 38 |
|
| 39 |
; 'Dummy' score event of 1 hour. |
| 40 |
f 0 3600 |
| 41 |
e |
| 42 |
|
| 43 |
|
| 44 |
</CsScore> |
| 45 |
</CsoundSynthesizer> |