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
|
<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 128
nchnls = 2
0dbfs = 1
instr 1 ;turned on by button event
asig oscils 0.1, 440, 0
outs asig, asig
endin
instr 2 ;turned on in the score
kvalue invalue "value" ;changes between 0 and 1000
asig oscil 0.1, kvalue, 1
outs asig,asig
endin
</CsInstruments>
<CsScore>
f 1 0 1024 10 1
i 2 0 3600
</CsScore>
</CsoundSynthesizer><bsbPanel>
<label>Widgets</label>
<objectName/>
<x>383</x>
<y>118</y>
<width>401</width>
<height>606</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>87</x>
<y>5</y>
<width>218</width>
<height>41</height>
<uuid>{2cb4b857-9f1f-4eff-8058-11ce0a604257}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<label>Button Widget</label>
<alignment>center</alignment>
<font>Helvetica</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>4</x>
<y>44</y>
<width>375</width>
<height>69</height>
<uuid>{a9056c84-91e8-4a49-9e7d-666460fb2b8a}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<label>Buttons in CsoundQt can have two purposes. They can transmit a value when they are pressed and they can generate score events in realtime when they are pressed. Their exact function depends on the type of button.</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>4</x>
<y>528</y>
<width>377</width>
<height>64</height>
<uuid>{a7da460d-cfe1-487c-8ec1-6fc05692d212}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<label>There are three other type of buttons for buttons with images. Pictevent and Pictvalue are equivalent to Event and Value buttons but display a picture. The Pict button is simply a decoration.</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>200</x>
<y>118</y>
<width>179</width>
<height>266</height>
<uuid>{f43311a3-c5f0-4368-925a-3ab5324658ac}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<label>Event buttons apart from transmitiing a different value while they are pressed can also send score events to Csound. Any valid score event can be triggered by a button but preprocessor symbols like carry are not accepted. The event generated by this button is 'i 1 0 3'. It turns on instrument 1 immediately for 3 seconds.</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>5</x>
<y>118</y>
<width>188</width>
<height>266</height>
<uuid>{16f25933-2318-4091-ab37-b57f1a656ab9}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<label>Value type buttons transmit always 0 on their channels when they are not pressed. When they are pressed they transmit the value set in the preferences. The button above transmits a value of 1000 which is used to control the frequency of instrument 2.
Buttons can be set to "latch".</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>12</x>
<y>499</y>
<width>167</width>
<height>29</height>
<uuid>{3e9f4268-b2f7-496f-94ea-a22e8f68736c}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<label>Pict buttons</label>
<alignment>left</alignment>
<font>Arial</font>
<fontsize>20</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>4</x>
<y>388</y>
<width>375</width>
<height>109</height>
<uuid>{2767b528-7849-4306-85be-7b0aeeffccef}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<label>There are some reserved channels which can send information to CsoundQt instead of Csound. The channel '_Play' can start and stop Csound. The channel '_Stop' can start and stop Csound. The button must be of type value or pictvalue.</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="BSBButton">
<objectName>value</objectName>
<x>49</x>
<y>279</y>
<width>100</width>
<height>30</height>
<uuid>{03723e12-b763-4641-b1ab-3ffdee02428d}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<type>value</type>
<pressedValue>1000.00000000</pressedValue>
<stringvalue/>
<text>Value</text>
<image>/</image>
<eventLine>i1 0 10</eventLine>
<latch>false</latch>
<latched>true</latched>
</bsbObject>
<bsbObject version="2" type="BSBButton">
<objectName>button1</objectName>
<x>243</x>
<y>292</y>
<width>100</width>
<height>30</height>
<uuid>{e2702106-c0b8-47b9-8754-d87a2480b056}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<type>event</type>
<pressedValue>1.00000000</pressedValue>
<stringvalue/>
<text>Event</text>
<image>/</image>
<eventLine>i 1 0 3</eventLine>
<latch>false</latch>
<latched>false</latched>
</bsbObject>
<bsbObject version="2" type="BSBButton">
<objectName>_Play</objectName>
<x>256</x>
<y>456</y>
<width>100</width>
<height>30</height>
<uuid>{9a1f4b9d-3757-4fb5-b522-0b6981bb9b4d}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<type>value</type>
<pressedValue>1.00000000</pressedValue>
<stringvalue/>
<text>Play</text>
<image>/</image>
<eventLine>i1 0 10</eventLine>
<latch>false</latch>
<latched>true</latched>
</bsbObject>
<bsbObject version="2" type="BSBButton">
<objectName>value</objectName>
<x>23</x>
<y>315</y>
<width>150</width>
<height>30</height>
<uuid>{7df9afbe-0376-4602-8cb8-40a1877c4be3}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<type>value</type>
<pressedValue>1000.00000000</pressedValue>
<stringvalue/>
<text>Value Latched</text>
<image>/</image>
<eventLine>i1 0 10</eventLine>
<latch>true</latch>
<latched>true</latched>
</bsbObject>
<bsbObject version="2" type="BSBButton">
<objectName/>
<x>23</x>
<y>350</y>
<width>150</width>
<height>30</height>
<uuid>{56eae0d9-14f8-40b9-9378-b80e731b8b41}</uuid>
<visible>true</visible>
<midichan>0</midichan>
<midicc>-3</midicc>
<type>event</type>
<pressedValue>1000.00000000</pressedValue>
<stringvalue/>
<text>Event Latched</text>
<image>/</image>
<eventLine>i1 0 -10</eventLine>
<latch>true</latch>
<latched>true</latched>
</bsbObject>
</bsbPanel>
<bsbPresets>
</bsbPresets>
<MacGUI>
ioView background {35466, 38293, 40092}
ioText {87, 5} {218, 41} label 0.000000 0.00100 "" center "Helvetica" 24 {0, 0, 0} {63232, 62720, 61952} nobackground noborder Button Widget
ioText {4, 44} {375, 69} label 0.000000 0.00100 "" left "Arial" 12 {0, 0, 0} {48896, 52224, 59904} nobackground noborder Buttons in CsoundQt can have two purposes. They can transmit a value when they are pressed and they can generate score events in realtime when they are pressed. Their exact function depends on the type of button.
ioText {4, 528} {377, 64} label 0.000000 0.00100 "" left "Arial" 12 {0, 0, 0} {48896, 52224, 59904} nobackground noborder There are three other type of buttons for buttons with images. Pictevent and Pictvalue are equivalent to Event and Value buttons but display a picture. The Pict button is simply a decoration.
ioText {200, 118} {179, 266} label 0.000000 0.00100 "" left "Arial" 12 {0, 0, 0} {48896, 52224, 59904} nobackground noborder Event buttons apart from transmitiing a different value while they are pressed can also send score events to Csound. Any valid score event can be triggered by a button but preprocessor symbols like carry are not accepted. The event generated by this button is 'i 1 0 3'. It turns on instrument 1 immediately for 3 seconds.
ioText {5, 118} {188, 266} label 0.000000 0.00100 "" left "Arial" 12 {0, 0, 0} {48896, 52224, 59904} nobackground noborder Value type buttons transmit always 0 on their channels when they are not pressed. When they are pressed they transmit the value set in the preferences. The button above transmits a value of 1000 which is used to control the frequency of instrument 2.¬Buttons can be set to "latch".
ioText {12, 499} {167, 29} label 0.000000 0.00100 "" left "Arial" 20 {0, 0, 0} {63232, 62720, 61952} nobackground noborder Pict buttons
ioText {4, 388} {375, 109} label 0.000000 0.00100 "" left "Arial" 12 {0, 0, 0} {48896, 52224, 59904} nobackground noborder There are some reserved channels which can send information to CsoundQt instead of Csound. The channel '_Play' can start and stop Csound. The channel '_Stop' can start and stop Csound. The button must be of type value or pictvalue.
ioButton {49, 279} {100, 30} value 1000.000000 "value" "Value" "/" i1 0 10
ioButton {243, 292} {100, 30} event 1.000000 "button1" "Event" "/" i 1 0 3
ioButton {256, 456} {100, 30} value 1.000000 "_Play" "Play" "/" i1 0 10
ioButton {23, 315} {150, 30} value 1000.000000 "value" "Value Latched" "/" i1 0 10
ioButton {23, 350} {150, 30} event 1000.000000 "" "Event Latched" "/" i1 0 -10
</MacGUI>
|