| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
</CsOptions> |
| 4 |
<CsInstruments> |
| 5 |
|
| 6 |
sr = 44100 |
| 7 |
ksmps = 128 |
| 8 |
nchnls = 2 |
| 9 |
0dbfs = 1 |
| 10 |
|
| 11 |
; This file introduces the Live Event Panels of CsoundQt |
| 12 |
; First Run this file! |
| 13 |
; Then open the Live Event Controller window from the View Menu |
| 14 |
; (If it's not currently at the front, you may need to hide it first and then show it) |
| 15 |
; You can play the contents of the panels by clicking on the play buttons |
| 16 |
; Alternatively, you can show the panels, to control events individually |
| 17 |
; Right click there on the cells to see actions. |
| 18 |
; Try the "Send events" action when standing over one of the event lines |
| 19 |
|
| 20 |
instr 1 ;simple sine wave |
| 21 |
ifreq = p4 ; in cps |
| 22 |
iamp = p5 ; in relation to 0dbfs |
| 23 |
iatt = p6 ; in seconds |
| 24 |
idec = p7 ; in seconds |
| 25 |
aenv linenr iamp, iatt, idec, 0.01 |
| 26 |
aout oscil aenv, ifreq, 1 |
| 27 |
outs aout, aout |
| 28 |
endin |
| 29 |
|
| 30 |
instr 2 ;saw wave |
| 31 |
ifreq = p4 ; in cps |
| 32 |
iamp = p5 ; in relation to 0dbfs |
| 33 |
iatt = p6 ; in seconds |
| 34 |
idec = p7 ; in seconds |
| 35 |
aenv linenr iamp, iatt, idec, 0.01 |
| 36 |
aout vco2 1, ifreq |
| 37 |
outs aout*aenv, aout*aenv |
| 38 |
endin |
| 39 |
|
| 40 |
</CsInstruments> |
| 41 |
<CsScore> |
| 42 |
f 1 0 4096 10 1 |
| 43 |
e 3600 |
| 44 |
</CsScore> |
| 45 |
</CsoundSynthesizer> |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
<bsbPanel> |
| 56 |
<label>Widgets</label> |
| 57 |
<objectName/> |
| 58 |
<x>517</x> |
| 59 |
<y>130</y> |
| 60 |
<width>535</width> |
| 61 |
<height>418</height> |
| 62 |
<visible>true</visible> |
| 63 |
<uuid/> |
| 64 |
<bgcolor mode="nobackground"> |
| 65 |
<r>230</r> |
| 66 |
<g>221</g> |
| 67 |
<b>213</b> |
| 68 |
</bgcolor> |
| 69 |
<bsbObject version="2" type="BSBLabel"> |
| 70 |
<objectName/> |
| 71 |
<x>17</x> |
| 72 |
<y>62</y> |
| 73 |
<width>500</width> |
| 74 |
<height>207</height> |
| 75 |
<uuid>{723c1401-6b94-4801-8d2c-3e08afd5745d}</uuid> |
| 76 |
<visible>true</visible> |
| 77 |
<midichan>0</midichan> |
| 78 |
<midicc>-3</midicc> |
| 79 |
<label>This file introduces the Live Event Panel of CsoundQt |
| 80 |
|
| 81 |
1. Run this file! |
| 82 |
2. Open the Live Event Controller window from the View Menu (If it's not currently at the front, you may need to hide it first and then show it) |
| 83 |
3. You can play the contents of the panels by clicking on the play buttons. Alternatively, you can show the panels, to control events individually. Right click there on the cells to see actions. |
| 84 |
4. Try the "Send events" action when standing over one of the event lines |
| 85 |
</label> |
| 86 |
<alignment>left</alignment> |
| 87 |
<font>Helvetica</font> |
| 88 |
<fontsize>14</fontsize> |
| 89 |
<precision>3</precision> |
| 90 |
<color> |
| 91 |
<r>0</r> |
| 92 |
<g>0</g> |
| 93 |
<b>0</b> |
| 94 |
</color> |
| 95 |
<bgcolor mode="background"> |
| 96 |
<r>255</r> |
| 97 |
<g>255</g> |
| 98 |
<b>255</b> |
| 99 |
</bgcolor> |
| 100 |
<bordermode>border</bordermode> |
| 101 |
<borderradius>5</borderradius> |
| 102 |
<borderwidth>1</borderwidth> |
| 103 |
</bsbObject> |
| 104 |
<bsbObject version="2" type="BSBButton"> |
| 105 |
<objectName>_Play</objectName> |
| 106 |
<x>105</x> |
| 107 |
<y>361</y> |
| 108 |
<width>318</width> |
| 109 |
<height>29</height> |
| 110 |
<uuid>{8e38fdf7-2bf5-4ff2-9c18-d280d0bb4925}</uuid> |
| 111 |
<visible>true</visible> |
| 112 |
<midichan>0</midichan> |
| 113 |
<midicc>-3</midicc> |
| 114 |
<type>value</type> |
| 115 |
<pressedValue>1.00000000</pressedValue> |
| 116 |
<stringvalue/> |
| 117 |
<text>Run</text> |
| 118 |
<image>/</image> |
| 119 |
<eventLine/> |
| 120 |
<latch>false</latch> |
| 121 |
<latched>false</latched> |
| 122 |
</bsbObject> |
| 123 |
<bsbObject version="2" type="BSBLabel"> |
| 124 |
<objectName/> |
| 125 |
<x>17</x> |
| 126 |
<y>8</y> |
| 127 |
<width>500</width> |
| 128 |
<height>47</height> |
| 129 |
<uuid>{66aa869b-be3d-4a31-8c24-9c44edff9877}</uuid> |
| 130 |
<visible>true</visible> |
| 131 |
<midichan>0</midichan> |
| 132 |
<midicc>-3</midicc> |
| 133 |
<label>Event Panels</label> |
| 134 |
<alignment>center</alignment> |
| 135 |
<font>Helvetica</font> |
| 136 |
<fontsize>22</fontsize> |
| 137 |
<precision>3</precision> |
| 138 |
<color> |
| 139 |
<r>0</r> |
| 140 |
<g>0</g> |
| 141 |
<b>0</b> |
| 142 |
</color> |
| 143 |
<bgcolor mode="background"> |
| 144 |
<r>127</r> |
| 145 |
<g>190</g> |
| 146 |
<b>190</b> |
| 147 |
</bgcolor> |
| 148 |
<bordermode>border</bordermode> |
| 149 |
<borderradius>5</borderradius> |
| 150 |
<borderwidth>1</borderwidth> |
| 151 |
</bsbObject> |
| 152 |
<bsbObject version="2" type="BSBLabel"> |
| 153 |
<objectName/> |
| 154 |
<x>17</x> |
| 155 |
<y>276</y> |
| 156 |
<width>500</width> |
| 157 |
<height>78</height> |
| 158 |
<uuid>{aedbddec-77b7-4279-9427-89c3b74288c7}</uuid> |
| 159 |
<visible>true</visible> |
| 160 |
<midichan>0</midichan> |
| 161 |
<midicc>-3</midicc> |
| 162 |
<label>Note that you can send individual events, setting independent tempos for each panel. |
| 163 |
You can also set a loop range for each panel, and loop each panel independently.</label> |
| 164 |
<alignment>left</alignment> |
| 165 |
<font>Helvetica</font> |
| 166 |
<fontsize>14</fontsize> |
| 167 |
<precision>3</precision> |
| 168 |
<color> |
| 169 |
<r>0</r> |
| 170 |
<g>0</g> |
| 171 |
<b>0</b> |
| 172 |
</color> |
| 173 |
<bgcolor mode="background"> |
| 174 |
<r>255</r> |
| 175 |
<g>255</g> |
| 176 |
<b>255</b> |
| 177 |
</bgcolor> |
| 178 |
<bordermode>border</bordermode> |
| 179 |
<borderradius>5</borderradius> |
| 180 |
<borderwidth>1</borderwidth> |
| 181 |
</bsbObject> |
| 182 |
</bsbPanel> |
| 183 |
<bsbPresets> |
| 184 |
</bsbPresets> |
| 185 |
<MacOptions> |
| 186 |
Version: 3 |
| 187 |
Render: Real |
| 188 |
Ask: Yes |
| 189 |
Functions: ioObject |
| 190 |
Listing: Window |
| 191 |
WindowBounds: 517 130 535 418 |
| 192 |
CurrentView: io |
| 193 |
IOViewEdit: On |
| 194 |
Options: -b128 -A -s -m167 -R |
| 195 |
</MacOptions> |
| 196 |
<MacGUI> |
| 197 |
ioView nobackground {59110, 56797, 54741} |
| 198 |
ioText {17, 62} {500, 207} label 0.000000 0.00100 "" left "Helvetica" 14 {0, 0, 0} {65280, 65280, 65280} nobackground noborder This file introduces the Live Event Panel of CsoundQt¬¬1. Run this file!¬2. Open the Live Event Controller window from the View Menu (If it's not currently at the front, you may need to hide it first and then show it)¬3. You can play the contents of the panels by clicking on the play buttons. Alternatively, you can show the panels, to control events individually. Right click there on the cells to see actions.¬4. Try the "Send events" action when standing over one of the event lines¬ |
| 199 |
ioButton {105, 361} {318, 29} value 1.000000 "_Play" "Run" "/" |
| 200 |
ioText {17, 9} {500, 47} label 0.000000 0.00100 "" center "Helvetica" 22 {0, 0, 0} {32512, 48640, 48640} nobackground noborder Event Panels |
| 201 |
ioText {15, 275} {500, 78} label 0.000000 0.00100 "" left "Helvetica" 14 {0, 0, 0} {65280, 65280, 65280} nobackground noborder Note that you can send individual events, setting independent tempos for each panel.¬You can also set a loop range for each panel, and loop each panel independently. |
| 202 |
</MacGUI> |
| 203 |
<EventPanel name="Demo 1" tempo="60.00000000" loop="8.00000000" x="616" y="297" width="603" height="374" visible="false" loopStart="0" loopEnd="7"> |
| 204 |
i 1 0 1 440 0.2 0.3 1 |
| 205 |
i 1 0 1 880 0.2 0.3 1 |
| 206 |
i 1 0 1 220 0.2 0.3 1 |
| 207 |
; You ;can ;label ;columns |
| 208 |
i 1 0 1 220 0.2 0.3 1 |
| 209 |
i 1 1 1 220 0.2 0.3 1 |
| 210 |
i 1 2 1 220 0.2 0.3 1 |
| 211 |
; Have ;a ;look ;at the ;text ;view |
| 212 |
</EventPanel> |
| 213 |
<EventPanel name="Demo 2" tempo="60.00000000" loop="8.00000000" x="380" y="178" width="762" height="583" visible="false" loopStart="0" loopEnd="0"> |
| 214 |
i 1 0 1 440 0.2 0.3 1 |
| 215 |
i 1 0 1 880 0.2 0.3 1 |
| 216 |
i 1 0 1 220 0.2 0.3 1 |
| 217 |
|
| 218 |
i 2 0 1 220 0.2 0.3 1 |
| 219 |
i 2 1 1 440 0.2 0.3 1 |
| 220 |
i 2 2 1 880 0.2 0.3 1 |
| 221 |
|
| 222 |
i 2 0 5 440 0.2 0.3 1 |
| 223 |
;off |
| 224 |
;You ;can use ;negative ;p1 ;to ;turn ;off ;notes |
| 225 |
|
| 226 |
|
| 227 |
</EventPanel> |