1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
<CsoundSynthesizer>
<CsOptions>
; Select audio/midi flags here according to platform
; Audio out Audio in No messages
-odac -iadc -d ;;;RT audio I/O
; For Non-realtime ouput leave only the line below:
; -o FLsetVal.wav -W ;;; for file output any platform
</CsOptions>
<CsInstruments>
sr = 44100
kr = 441
ksmps = 100
nchnls = 1
; By Andres Cabrera 2007
FLpanel "Frequency Slider", 340, 100, 50, 50
gkvalue1, gihandle1 FLslider "Slider A", 200, 5000, -1, 1, -1, 320, 20, 10, 10
gkvalue2, gihandle2 FLslider "Slider B", 200, 5000, -1, 1, -1, 320, 20, 10, 50
; End of panel contents
FLpanelEnd
; Run the widget thread!
FLrun
;Set the widget's initial value
FLsetVal_i 300, gihandle1
instr 1
endin
</CsInstruments>
<CsScore>
; Function table that defines a single cycle
; of a sine wave.
f 0 3600
e
</CsScore>
</CsoundSynthesizer>
|