| 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 FLsetcolor.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
; Using the opcode flsetcolor to change from the |
| 12 |
; default colours for widgets |
| 13 |
sr = 44100 |
| 14 |
kr = 441 |
| 15 |
ksmps = 100 |
| 16 |
nchnls = 1 |
| 17 |
|
| 18 |
FLpanel "Coloured Sliders", 900, 360, 50, 50 |
| 19 |
gkfreq, ihandle FLslider "A Red Slider", 200, 5000, -1, 5, -1, 750, 30, 85, 50 |
| 20 |
ired1 = 255 |
| 21 |
igreen1 = 0 |
| 22 |
iblue1 = 0 |
| 23 |
FLsetColor ired1, igreen1, iblue1, ihandle |
| 24 |
|
| 25 |
gkfreq, ihandle FLslider "A Green Slider", 200, 5000, -1, 5, -1, 750, 30, 85, 150 |
| 26 |
ired1 = 0 |
| 27 |
igreen1 = 255 |
| 28 |
iblue1 = 0 |
| 29 |
FLsetColor ired1, igreen1, iblue1, ihandle |
| 30 |
|
| 31 |
gkfreq, ihandle FLslider "A Blue Slider", 200, 5000, -1, 5, -1, 750, 30, 85, 250 |
| 32 |
ired1 = 0 |
| 33 |
igreen1 = 0 |
| 34 |
iblue1 = 255 |
| 35 |
FLsetColor ired1, igreen1, iblue1, ihandle |
| 36 |
; End of panel contents |
| 37 |
FLpanelEnd |
| 38 |
; Run the widget thread! |
| 39 |
FLrun |
| 40 |
|
| 41 |
instr 1 |
| 42 |
endin |
| 43 |
|
| 44 |
|
| 45 |
</CsInstruments> |
| 46 |
<CsScore> |
| 47 |
|
| 48 |
; 'Dummy' score event for 1 hour. |
| 49 |
f 0 3600 |
| 50 |
e |
| 51 |
|
| 52 |
|
| 53 |
</CsScore> |
| 54 |
</CsoundSynthesizer> |