Debian Codegraph @

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