| 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 FLsetVal.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
sr = 44100 |
| 12 |
kr = 441 |
| 13 |
ksmps = 100 |
| 14 |
nchnls = 1 |
| 15 |
|
| 16 |
; By Andres Cabrera 2007 |
| 17 |
|
| 18 |
FLpanel "Frequency Slider", 340, 100, 50, 50 |
| 19 |
gkvalue1, gihandle1 FLslider "Slider A", 200, 5000, -1, 1, -1, 320, 20, 10, 10 |
| 20 |
gkvalue2, gihandle2 FLslider "Slider B", 200, 5000, -1, 1, -1, 320, 20, 10, 50 |
| 21 |
; End of panel contents |
| 22 |
FLpanelEnd |
| 23 |
; Run the widget thread! |
| 24 |
FLrun |
| 25 |
|
| 26 |
;Set the widget's initial value |
| 27 |
FLsetVal_i 300, gihandle1 |
| 28 |
|
| 29 |
instr 1 |
| 30 |
|
| 31 |
endin |
| 32 |
|
| 33 |
|
| 34 |
</CsInstruments> |
| 35 |
<CsScore> |
| 36 |
|
| 37 |
; Function table that defines a single cycle |
| 38 |
; of a sine wave. |
| 39 |
f 0 3600 |
| 40 |
e |
| 41 |
|
| 42 |
|
| 43 |
</CsScore> |
| 44 |
</CsoundSynthesizer> |