| 1 |
;Written by Iain McCurdy, 2008 |
| 2 |
|
| 3 |
;Modified for QuteCsound by René, February 2011 |
| 4 |
;Tested on Ubuntu 10.04 with csound-float 5.13.0 and QuteCsound svn rev 817 |
| 5 |
|
| 6 |
|
| 7 |
;Notes on modifications from original csd: |
| 8 |
|
| 9 |
|
| 10 |
;my flags on Ubuntu: -odac -b1024 -B2048 -+rtaudio=alsa -+rtmidi=null -m0 |
| 11 |
<CsoundSynthesizer> |
| 12 |
<CsOptions> |
| 13 |
|
| 14 |
</CsOptions> |
| 15 |
<CsInstruments> |
| 16 |
sr = 44100 ;SAMPLE RATE |
| 17 |
ksmps = 16 ;NUMBER OF AUDIO SAMPLES IN EACH CONTROL CYCLE |
| 18 |
nchnls = 2 ;NUMBER OF CHANNELS (2=STEREO) |
| 19 |
|
| 20 |
|
| 21 |
instr 1 |
| 22 |
ktime timeinsts |
| 23 |
outvalue "CLOCK", ktime |
| 24 |
endin |
| 25 |
</CsInstruments> |
| 26 |
<CsScore> |
| 27 |
f 0 3600 |
| 28 |
</CsScore> |
| 29 |
</CsoundSynthesizer> |
| 30 |
<bsbPanel> |
| 31 |
<label>Widgets</label> |
| 32 |
<objectName/> |
| 33 |
<x>999</x> |
| 34 |
<y>222</y> |
| 35 |
<width>495</width> |
| 36 |
<height>169</height> |
| 37 |
<visible>true</visible> |
| 38 |
<uuid/> |
| 39 |
<bgcolor mode="background"> |
| 40 |
<r>241</r> |
| 41 |
<g>226</g> |
| 42 |
<b>185</b> |
| 43 |
</bgcolor> |
| 44 |
<bsbObject version="2" type="BSBLabel"> |
| 45 |
<objectName/> |
| 46 |
<x>2</x> |
| 47 |
<y>2</y> |
| 48 |
<width>491</width> |
| 49 |
<height>164</height> |
| 50 |
<uuid>{aa607456-d368-4d59-8497-d16d608404c3}</uuid> |
| 51 |
<visible>true</visible> |
| 52 |
<midichan>0</midichan> |
| 53 |
<midicc>0</midicc> |
| 54 |
<label>timeinsts</label> |
| 55 |
<alignment>center</alignment> |
| 56 |
<font>Liberation Sans</font> |
| 57 |
<fontsize>18</fontsize> |
| 58 |
<precision>3</precision> |
| 59 |
<color> |
| 60 |
<r>255</r> |
| 61 |
<g>255</g> |
| 62 |
<b>255</b> |
| 63 |
</color> |
| 64 |
<bgcolor mode="background"> |
| 65 |
<r>5</r> |
| 66 |
<g>27</g> |
| 67 |
<b>150</b> |
| 68 |
</bgcolor> |
| 69 |
<bordermode>border</bordermode> |
| 70 |
<borderradius>5</borderradius> |
| 71 |
<borderwidth>2</borderwidth> |
| 72 |
</bsbObject> |
| 73 |
<bsbObject version="2" type="BSBLabel"> |
| 74 |
<objectName/> |
| 75 |
<x>6</x> |
| 76 |
<y>80</y> |
| 77 |
<width>484</width> |
| 78 |
<height>81</height> |
| 79 |
<uuid>{e41f02b8-6ad4-46dc-805c-0b2eeafbd476}</uuid> |
| 80 |
<visible>true</visible> |
| 81 |
<midichan>0</midichan> |
| 82 |
<midicc>0</midicc> |
| 83 |
<label>---------------------------------------------------------------------------------------------------------------------- |
| 84 |
The timeinsts opcode outputs the time elapsed since the beginning of the note event for the instrument containing the opcode.</label> |
| 85 |
<alignment>left</alignment> |
| 86 |
<font>Liberation Sans</font> |
| 87 |
<fontsize>14</fontsize> |
| 88 |
<precision>3</precision> |
| 89 |
<color> |
| 90 |
<r>255</r> |
| 91 |
<g>255</g> |
| 92 |
<b>255</b> |
| 93 |
</color> |
| 94 |
<bgcolor mode="nobackground"> |
| 95 |
<r>255</r> |
| 96 |
<g>255</g> |
| 97 |
<b>255</b> |
| 98 |
</bgcolor> |
| 99 |
<bordermode>noborder</bordermode> |
| 100 |
<borderradius>1</borderradius> |
| 101 |
<borderwidth>1</borderwidth> |
| 102 |
</bsbObject> |
| 103 |
<bsbObject version="2" type="BSBButton"> |
| 104 |
<objectName/> |
| 105 |
<x>15</x> |
| 106 |
<y>43</y> |
| 107 |
<width>100</width> |
| 108 |
<height>30</height> |
| 109 |
<uuid>{4e4e20c5-d5a2-471f-8322-323282a5651c}</uuid> |
| 110 |
<visible>true</visible> |
| 111 |
<midichan>0</midichan> |
| 112 |
<midicc>0</midicc> |
| 113 |
<type>event</type> |
| 114 |
<pressedValue>1.00000000</pressedValue> |
| 115 |
<stringvalue/> |
| 116 |
<text> On / Off</text> |
| 117 |
<image>/</image> |
| 118 |
<eventLine>i 1 0 -1</eventLine> |
| 119 |
<latch>true</latch> |
| 120 |
<latched>false</latched> |
| 121 |
</bsbObject> |
| 122 |
<bsbObject version="2" type="BSBLabel"> |
| 123 |
<objectName/> |
| 124 |
<x>144</x> |
| 125 |
<y>45</y> |
| 126 |
<width>80</width> |
| 127 |
<height>25</height> |
| 128 |
<uuid>{fa906a98-8efd-4449-b7a9-719e70220682}</uuid> |
| 129 |
<visible>true</visible> |
| 130 |
<midichan>0</midichan> |
| 131 |
<midicc>0</midicc> |
| 132 |
<label>CLOCK:</label> |
| 133 |
<alignment>right</alignment> |
| 134 |
<font>Liberation Sans</font> |
| 135 |
<fontsize>10</fontsize> |
| 136 |
<precision>3</precision> |
| 137 |
<color> |
| 138 |
<r>255</r> |
| 139 |
<g>255</g> |
| 140 |
<b>255</b> |
| 141 |
</color> |
| 142 |
<bgcolor mode="nobackground"> |
| 143 |
<r>255</r> |
| 144 |
<g>255</g> |
| 145 |
<b>255</b> |
| 146 |
</bgcolor> |
| 147 |
<bordermode>noborder</bordermode> |
| 148 |
<borderradius>1</borderradius> |
| 149 |
<borderwidth>1</borderwidth> |
| 150 |
</bsbObject> |
| 151 |
<bsbObject version="2" type="BSBDisplay"> |
| 152 |
<objectName>CLOCK</objectName> |
| 153 |
<x>228</x> |
| 154 |
<y>45</y> |
| 155 |
<width>80</width> |
| 156 |
<height>28</height> |
| 157 |
<uuid>{2a686a57-e646-4353-a8b8-9d32d48997dc}</uuid> |
| 158 |
<visible>true</visible> |
| 159 |
<midichan>0</midichan> |
| 160 |
<midicc>0</midicc> |
| 161 |
<label>2.229</label> |
| 162 |
<alignment>right</alignment> |
| 163 |
<font>Liberation Sans</font> |
| 164 |
<fontsize>12</fontsize> |
| 165 |
<precision>3</precision> |
| 166 |
<color> |
| 167 |
<r>255</r> |
| 168 |
<g>255</g> |
| 169 |
<b>255</b> |
| 170 |
</color> |
| 171 |
<bgcolor mode="nobackground"> |
| 172 |
<r>255</r> |
| 173 |
<g>255</g> |
| 174 |
<b>255</b> |
| 175 |
</bgcolor> |
| 176 |
<bordermode>border</bordermode> |
| 177 |
<borderradius>1</borderradius> |
| 178 |
<borderwidth>1</borderwidth> |
| 179 |
</bsbObject> |
| 180 |
</bsbPanel> |
| 181 |
<bsbPresets> |
| 182 |
</bsbPresets> |
| 183 |
<EventPanel name="" tempo="60.00000000" loop="8.00000000" x="913" y="162" width="655" height="346" visible="true" loopStart="0" loopEnd="0"> </EventPanel> |