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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366
|
<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 128
nchnls = 2
0dbfs = 1
instr 1
khipass invalue "hipass"
klowpass invalue "lowpass"
kbandpass invalue "bandpass"
asig noise 1, 0
if (khipass == 1) then
asig atone asig, 3000
asig atone asig, 3000
asig atone asig, 3000
endif
if (klowpass == 1) then
asig tone asig, 8000
asig tone asig, 8000
asig tone asig, 8000
endif
dispfft asig*20, 0.25, 1024
outs asig*0.1, asig*0.1
endin
instr 2 ; set checkbox values
kstate init 0
ktrig metro 1
if (ktrig == 1) then
kstate = (kstate == 0 ? 1 : 0)
endif
kenable invalue "enable"
if (kenable == 1) then
outvalue "checkbox", kstate
endif
endin
</CsInstruments>
<CsScore>
i 1 0 1000
i 2 0 1000
</CsScore>
</CsoundSynthesizer><bsbPanel>
<label>Widgets</label>
<objectName/>
<x>691</x>
<y>154</y>
<width>412</width>
<height>491</height>
<visible>true</visible>
<uuid/>
<bgcolor mode="background" >
<r>138</r>
<g>149</g>
<b>156</b>
</bgcolor>
<bsbObject version="2" type="BSBLabel" >
<objectName/>
<x>74</x>
<y>6</y>
<width>247</width>
<height>44</height>
<uuid>{ad8c5fad-d76a-425a-a10e-4b87d3142e8b}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<label>Checkbox Widget</label>
<alignment>left</alignment>
<font>Arial</font>
<fontsize>24</fontsize>
<precision>3</precision>
<color>
<r>0</r>
<g>0</g>
<b>0</b>
</color>
<bgcolor mode="nobackground" >
<r>191</r>
<g>204</g>
<b>234</b>
</bgcolor>
<bordermode>noborder</bordermode>
<borderradius>1</borderradius>
<borderwidth>1</borderwidth>
</bsbObject>
<bsbObject version="2" type="BSBLabel" >
<objectName/>
<x>7</x>
<y>45</y>
<width>377</width>
<height>56</height>
<uuid>{35d4a9c6-98b9-4783-aed1-9ad640324b68}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<label>The checkbox widget is a simple widget which sends a value of 1 on its channel when its checked and a 0 when not. It's value can also be set using a channel.</label>
<alignment>left</alignment>
<font>Arial</font>
<fontsize>12</fontsize>
<precision>3</precision>
<color>
<r>0</r>
<g>0</g>
<b>0</b>
</color>
<bgcolor mode="background" >
<r>191</r>
<g>204</g>
<b>234</b>
</bgcolor>
<bordermode>noborder</bordermode>
<borderradius>5</borderradius>
<borderwidth>1</borderwidth>
</bsbObject>
<bsbObject version="2" type="BSBLabel" >
<objectName/>
<x>35</x>
<y>111</y>
<width>80</width>
<height>25</height>
<uuid>{c9d833b8-a125-42dc-bddd-fe01cedac125}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<label>Hi Pass filter</label>
<alignment>left</alignment>
<font>Arial</font>
<fontsize>10</fontsize>
<precision>3</precision>
<color>
<r>0</r>
<g>0</g>
<b>0</b>
</color>
<bgcolor mode="nobackground" >
<r>255</r>
<g>255</g>
<b>255</b>
</bgcolor>
<bordermode>noborder</bordermode>
<borderradius>1</borderradius>
<borderwidth>1</borderwidth>
</bsbObject>
<bsbObject version="2" type="BSBLabel" >
<objectName/>
<x>35</x>
<y>138</y>
<width>80</width>
<height>25</height>
<uuid>{660ba30b-432e-4ba9-aa47-1fc6de0c1e14}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<label>Low Pass filter</label>
<alignment>left</alignment>
<font>Arial</font>
<fontsize>10</fontsize>
<precision>3</precision>
<color>
<r>0</r>
<g>0</g>
<b>0</b>
</color>
<bgcolor mode="nobackground" >
<r>255</r>
<g>255</g>
<b>255</b>
</bgcolor>
<bordermode>noborder</bordermode>
<borderradius>1</borderradius>
<borderwidth>1</borderwidth>
</bsbObject>
<bsbObject version="2" type="BSBGraph" >
<objectName/>
<x>12</x>
<y>167</y>
<width>373</width>
<height>172</height>
<uuid>{d4ba5f84-006d-44f5-8ad1-4959acf47abb}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<value>0</value>
<zoomx>1.00000000</zoomx>
<zoomy>1.00000000</zoomy>
<dispx>1.00000000</dispx>
<dispy>1.00000000</dispy>
<modex>lin</modex>
<modey>lin</modey>
<all>true</all>
</bsbObject>
<bsbObject version="2" type="BSBLabel" >
<objectName/>
<x>12</x>
<y>343</y>
<width>372</width>
<height>96</height>
<uuid>{95f875a7-941b-45b5-b4f9-d353d1f2e483}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<label>Setting the value of a checkbox</label>
<alignment>center</alignment>
<font>Arial</font>
<fontsize>12</fontsize>
<precision>3</precision>
<color>
<r>0</r>
<g>0</g>
<b>0</b>
</color>
<bgcolor mode="nobackground" >
<r>255</r>
<g>255</g>
<b>255</b>
</bgcolor>
<bordermode>border</bordermode>
<borderradius>5</borderradius>
<borderwidth>1</borderwidth>
</bsbObject>
<bsbObject version="2" type="BSBCheckBox" >
<objectName>checkbox</objectName>
<x>19</x>
<y>403</y>
<width>22</width>
<height>20</height>
<uuid>{4784a930-dd88-408c-b5eb-9c17c28e0b5d}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<selected>false</selected>
<label/>
<pressedValue>1</pressedValue>
<randomizable group="0" >false</randomizable>
</bsbObject>
<bsbObject version="2" type="BSBLabel" >
<objectName/>
<x>38</x>
<y>402</y>
<width>313</width>
<height>28</height>
<uuid>{0cea6f98-f6a5-4bba-9a75-2fb84e817366}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<label>This Checkbox's value is set from Csound</label>
<alignment>left</alignment>
<font>Arial</font>
<fontsize>10</fontsize>
<precision>3</precision>
<color>
<r>0</r>
<g>0</g>
<b>0</b>
</color>
<bgcolor mode="nobackground" >
<r>255</r>
<g>255</g>
<b>255</b>
</bgcolor>
<bordermode>noborder</bordermode>
<borderradius>1</borderradius>
<borderwidth>1</borderwidth>
</bsbObject>
<bsbObject version="2" type="BSBCheckBox" >
<objectName>enable</objectName>
<x>19</x>
<y>372</y>
<width>21</width>
<height>22</height>
<uuid>{f773da97-1a7b-4950-aa2b-146323c34897}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<selected>false</selected>
<label/>
<pressedValue>1</pressedValue>
<randomizable group="0" >false</randomizable>
</bsbObject>
<bsbObject version="2" type="BSBLabel" >
<objectName/>
<x>36</x>
<y>372</y>
<width>336</width>
<height>27</height>
<uuid>{6e3bc69c-c7b1-4f5e-a83c-73474a679066}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<label>Tick this checkbox to enable changing the one below</label>
<alignment>left</alignment>
<font>Arial</font>
<fontsize>10</fontsize>
<precision>3</precision>
<color>
<r>0</r>
<g>0</g>
<b>0</b>
</color>
<bgcolor mode="nobackground" >
<r>255</r>
<g>255</g>
<b>255</b>
</bgcolor>
<bordermode>noborder</bordermode>
<borderradius>1</borderradius>
<borderwidth>1</borderwidth>
</bsbObject>
<bsbObject version="2" type="BSBCheckBox" >
<objectName>hipass</objectName>
<x>19</x>
<y>112</y>
<width>23</width>
<height>20</height>
<uuid>{95ffad56-9b0a-4f4d-9698-26fea6b90a73}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<selected>true</selected>
<label/>
<pressedValue>1</pressedValue>
<randomizable group="0" >false</randomizable>
</bsbObject>
<bsbObject version="2" type="BSBCheckBox" >
<objectName>lowpass</objectName>
<x>19</x>
<y>139</y>
<width>22</width>
<height>19</height>
<uuid>{b931c42f-6de4-4e79-add7-eb71793915ab}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<selected>false</selected>
<label/>
<pressedValue>1</pressedValue>
<randomizable group="0" >false</randomizable>
</bsbObject>
<objectName/>
<x>691</x>
<y>154</y>
<width>412</width>
<height>491</height>
<visible>true</visible>
</bsbPanel>
<bsbPresets>
</bsbPresets>
<MacGUI>
ioView background {35466, 38293, 40092}
ioText {74, 6} {247, 44} display 0.000000 0.00100 "" left "Arial" 24 {0, 0, 0} {58880, 56576, 54528} nobackground noborder Checkbox Widget
ioText {7, 45} {377, 56} display 0.000000 0.00100 "" left "Arial" 12 {0, 0, 0} {48896, 52224, 59904} nobackground noborder The checkbox widget is a simple widget which sends a value of 1 on its channel when its checked and a 0 when not. It's value can also be set using a channel.
ioText {35, 111} {80, 25} display 0.000000 0.00100 "" left "Arial" 10 {0, 0, 0} {58880, 56576, 54528} nobackground noborder Hi Pass filter
ioText {35, 138} {80, 25} display 0.000000 0.00100 "" left "Arial" 10 {0, 0, 0} {58880, 56576, 54528} nobackground noborder Low Pass filter
ioGraph {12, 167} {373, 172} table 0.000000 1.000000
ioText {12, 343} {372, 96} display 0.000000 0.00100 "" center "Arial" 12 {0, 0, 0} {58880, 56576, 54528} nobackground noborder Setting the value of a checkbox
ioCheckbox {19, 403} {22, 20} off checkbox
ioText {38, 402} {313, 28} display 0.000000 0.00100 "" left "Arial" 10 {0, 0, 0} {58880, 56576, 54528} nobackground noborder This Checkbox's value is set from Csound
ioCheckbox {19, 372} {21, 22} off enable
ioText {36, 372} {336, 27} display 0.000000 0.00100 "" left "Arial" 10 {0, 0, 0} {58880, 56576, 54528} nobackground noborder Tick this checkbox to enable changing the one below
ioCheckbox {19, 112} {23, 20} on hipass
ioCheckbox {19, 139} {22, 19} off lowpass
</MacGUI>
|