1<CsoundSynthesizer>
2<CsOptions>
3</CsOptions>
4<CsInstruments>
5
6sr = 44100
7ksmps = 128
8nchnls = 2
90dbfs = 1
10
11instr 1
12	kfreq invalue "freq"
13	kamp invalue "amp"
14	asig oscil kamp, kfreq, 1
15	outs asig, asig
16endin
17
18</CsInstruments>
19<CsScore>
20f 1 0 4096 10 1 ;Sine wave
21i 1 0 1000
22</CsScore>
23</CsoundSynthesizer>
24
25
26
27
28
29<bsbPanel>
30 <label>Widgets</label>
31 <objectName/>
32 <x>608</x>
33 <y>211</y>
34 <width>408</width>
35 <height>357</height>
36 <visible>true</visible>
37 <uuid/>
38 <bgcolor mode="background">
39  <r>138</r>
40  <g>149</g>
41  <b>156</b>
42 </bgcolor>
43 <bsbObject version="2" type="BSBLabel">
44  <objectName/>
45  <x>102</x>
46  <y>4</y>
47  <width>202</width>
48  <height>41</height>
49  <uuid>{c5f4063e-4a46-4f9d-96db-839bea9a983f}</uuid>
50  <visible>true</visible>
51  <midichan>0</midichan>
52  <midicc>-3</midicc>
53  <label>Slider Widget</label>
54  <alignment>center</alignment>
55  <font>Arial</font>
56  <fontsize>24</fontsize>
57  <precision>3</precision>
58  <color>
59   <r>0</r>
60   <g>0</g>
61   <b>0</b>
62  </color>
63  <bgcolor mode="nobackground">
64   <r>191</r>
65   <g>204</g>
66   <b>234</b>
67  </bgcolor>
68  <bordermode>noborder</bordermode>
69  <borderradius>1</borderradius>
70  <borderwidth>1</borderwidth>
71 </bsbObject>
72 <bsbObject version="2" type="BSBLabel">
73  <objectName/>
74  <x>7</x>
75  <y>45</y>
76  <width>376</width>
77  <height>66</height>
78  <uuid>{7650f5b0-e83a-46a4-ba7f-45a47f71997e}</uuid>
79  <visible>true</visible>
80  <midichan>0</midichan>
81  <midicc>-3</midicc>
82  <label>Sliders are used to send and receive data from the running Csound using channels. If a slider's width is greater than its height it becomes a horizontal slider. You can set a slider's range in it's properties.</label>
83  <alignment>left</alignment>
84  <font>Arial</font>
85  <fontsize>12</fontsize>
86  <precision>3</precision>
87  <color>
88   <r>0</r>
89   <g>0</g>
90   <b>0</b>
91  </color>
92  <bgcolor mode="background">
93   <r>191</r>
94   <g>204</g>
95   <b>234</b>
96  </bgcolor>
97  <bordermode>noborder</bordermode>
98  <borderradius>5</borderradius>
99  <borderwidth>1</borderwidth>
100 </bsbObject>
101 <bsbObject version="2" type="BSBVSlider">
102  <objectName>amp</objectName>
103  <x>40</x>
104  <y>126</y>
105  <width>20</width>
106  <height>100</height>
107  <uuid>{a99d91b7-f92c-4044-a927-70a2943b968e}</uuid>
108  <visible>true</visible>
109  <midichan>0</midichan>
110  <midicc>-3</midicc>
111  <minimum>0.00000000</minimum>
112  <maximum>0.50000000</maximum>
113  <value>0.23500000</value>
114  <mode>lin</mode>
115  <mouseControl act="jump">continuous</mouseControl>
116  <resolution>-1.00000000</resolution>
117  <randomizable group="0">true</randomizable>
118 </bsbObject>
119 <bsbObject version="2" type="BSBHSlider">
120  <objectName>freq</objectName>
121  <x>66</x>
122  <y>126</y>
123  <width>313</width>
124  <height>23</height>
125  <uuid>{dfc109a0-ff5a-40e4-9a56-bb67e10acb6a}</uuid>
126  <visible>true</visible>
127  <midichan>0</midichan>
128  <midicc>-3</midicc>
129  <minimum>100.00000000</minimum>
130  <maximum>1000.00000000</maximum>
131  <value>689.45686901</value>
132  <mode>lin</mode>
133  <mouseControl act="jump">continuous</mouseControl>
134  <resolution>-1.00000000</resolution>
135  <randomizable group="0">true</randomizable>
136 </bsbObject>
137 <bsbObject version="2" type="BSBLabel">
138  <objectName/>
139  <x>139</x>
140  <y>142</y>
141  <width>198</width>
142  <height>41</height>
143  <uuid>{6b918bc4-f76f-460e-8f7b-5054495f2143}</uuid>
144  <visible>true</visible>
145  <midichan>0</midichan>
146  <midicc>-3</midicc>
147  <label>Frequency (from 100 to 1000 transmitting on channel 'freq'</label>
148  <alignment>left</alignment>
149  <font>Arial</font>
150  <fontsize>12</fontsize>
151  <precision>3</precision>
152  <color>
153   <r>0</r>
154   <g>0</g>
155   <b>0</b>
156  </color>
157  <bgcolor mode="nobackground">
158   <r>255</r>
159   <g>255</g>
160   <b>255</b>
161  </bgcolor>
162  <bordermode>noborder</bordermode>
163  <borderradius>1</borderradius>
164  <borderwidth>1</borderwidth>
165 </bsbObject>
166 <bsbObject version="2" type="BSBLabel">
167  <objectName/>
168  <x>9</x>
169  <y>231</y>
170  <width>86</width>
171  <height>86</height>
172  <uuid>{baae2608-4500-4d99-99f3-941f5e2b5a84}</uuid>
173  <visible>true</visible>
174  <midichan>0</midichan>
175  <midicc>-3</midicc>
176  <label>Amplitude (transmitting from 0 to 0.5 on channel 'amp'</label>
177  <alignment>center</alignment>
178  <font>Arial</font>
179  <fontsize>12</fontsize>
180  <precision>3</precision>
181  <color>
182   <r>0</r>
183   <g>0</g>
184   <b>0</b>
185  </color>
186  <bgcolor mode="nobackground">
187   <r>255</r>
188   <g>255</g>
189   <b>255</b>
190  </bgcolor>
191  <bordermode>noborder</bordermode>
192  <borderradius>1</borderradius>
193  <borderwidth>1</borderwidth>
194 </bsbObject>
195 <bsbObject version="2" type="BSBScope">
196  <objectName/>
197  <x>99</x>
198  <y>186</y>
199  <width>281</width>
200  <height>130</height>
201  <uuid>{9d18e25d-d310-4e60-9109-541fdad0d7df}</uuid>
202  <visible>true</visible>
203  <midichan>0</midichan>
204  <midicc>-3</midicc>
205  <value>-1.00000000</value>
206  <type>scope</type>
207  <zoomx>2.00000000</zoomx>
208  <zoomy>1.00000000</zoomy>
209  <dispx>1.00000000</dispx>
210  <dispy>1.00000000</dispy>
211  <mode>0.00000000</mode>
212 </bsbObject>
213</bsbPanel>
214<bsbPresets>
215</bsbPresets>
216<MacGUI>
217ioView background {35466, 38293, 40092}
218ioText {102, 4} {202, 41} label 0.000000 0.00100 "" center "Arial" 24 {0, 0, 0} {65280, 65280, 65280} nobackground noborder Slider Widget
219ioText {7, 45} {377, 56} label 0.000000 0.00100 "" left "Arial" 12 {0, 0, 0} {48896, 52224, 59904} nobackground noborder Sliders are used to send and receive data from the running Csound using channels. If a slider's width is greater than its height it becomes a horizontal slider. You can set a slider's range in it's properties.
220ioSlider {40, 126} {20, 100} 0.000000 0.500000 0.235000 amp
221ioSlider {66, 126} {313, 23} 100.000000 1000.000000 689.456869 freq
222ioText {140, 125} {198, 41} label 0.000000 0.00100 "" left "Arial" 12 {0, 0, 0} {65280, 65280, 65280} nobackground noborder Frequency (from 100 to 1000 transmitting on channel 'freq'
223ioText {10, 214} {86, 86} label 0.000000 0.00100 "" center "Arial" 12 {0, 0, 0} {65280, 65280, 65280} nobackground noborder Amplitude (transmitting from 0 to 0.5 on channel 'amp'
224ioGraph {99, 186} {281, 130} scope 2.000000 -1
225</MacGUI>
226