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