Debian Codegraph @

examples/FLslidBnk.csd

raw
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 FLslidBnk.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 gitypetable ftgen 0, 0, 8, -2, 1, 1, 3, 3, 5, 5, 7, 7
17 giouttable ftgen 0, 0, 8, -2, 0, 0.2, 0.3, 0.4, 0.5, 0.6, 0.8, 1
18
19 FLpanel "Slider Bank", 400, 380, 50, 50
20 ;Number of sliders
21 inum = 8
22 ; Table to store output
23 iouttable = giouttable
24 ; Width of the slider bank in pixels
25 iwidth = 350
26 ; Height of the slider in pixels
27 iheight = 160
28 ; Distance of the left edge of the slider
29 ; from the left edge of the panel
30 ix = 30
31 ; Distance of the top edge of the slider
32 ; from the top edge of the panel
33 iy = 10
34 ; Table containing fader types
35 itypetable = gitypetable
36 FLslidBnk "1@2@3@4@5@6@7@8", inum , iouttable , iwidth , iheight , ix \
37 , iy , itypetable
38 FLslidBnk "1@2@3@4@5@6@7@8", inum , iouttable , iwidth , iheight , ix \
39 , iy + 200 , -23
40 ; End of panel contents
41 FLpanelEnd
42 ; Run the widget thread!
43 FLrun
44
45
46 instr 1
47 ;Dummy instrument
48 endin
49
50
51 </CsInstruments>
52 <CsScore>
53
54 ; Instrument 1 will play a note for 1 hour.
55 i 1 0 3600
56 e
57
58
59 </CsScore>
60 </CsoundSynthesizer>