| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
</CsOptions> |
| 4 |
<CsInstruments> |
| 5 |
; Adapted from Richard Boulanger's toots |
| 6 |
sr = 44100 |
| 7 |
ksmps = 128 |
| 8 |
nchnls = 2 |
| 9 |
0dbfs = 1 |
| 10 |
|
| 11 |
instr 1 |
| 12 |
; amp,freq,f-table |
| 13 |
a1 oscil 0.2, 440, 1 |
| 14 |
outs a1, a1 |
| 15 |
endin |
| 16 |
|
| 17 |
</CsInstruments> |
| 18 |
<CsScore> |
| 19 |
; number time size GEN p1 |
| 20 |
f 1 0 4096 10 1 ; use GEN10 to compute a sine wave |
| 21 |
|
| 22 |
;ins strt dur |
| 23 |
i 1 0 4 |
| 24 |
e ; indicates the end of the score |
| 25 |
</CsScore> |
| 26 |
</CsoundSynthesizer> |
| 27 |
<bsbPanel> |
| 28 |
<label>Widgets</label> |
| 29 |
<objectName/> |
| 30 |
<x>0</x> |
| 31 |
<y>22</y> |
| 32 |
<width>200</width> |
| 33 |
<height>140</height> |
| 34 |
<visible>true</visible> |
| 35 |
<uuid/> |
| 36 |
<bgcolor mode="background"> |
| 37 |
<r>7</r> |
| 38 |
<g>95</g> |
| 39 |
<b>162</b> |
| 40 |
</bgcolor> |
| 41 |
<bsbObject version="2" type="BSBLabel"> |
| 42 |
<objectName/> |
| 43 |
<x>14</x> |
| 44 |
<y>12</y> |
| 45 |
<width>100</width> |
| 46 |
<height>29</height> |
| 47 |
<uuid>{476955f4-2b70-446b-8c67-254c2f5eeeda}</uuid> |
| 48 |
<visible>true</visible> |
| 49 |
<midichan>0</midichan> |
| 50 |
<midicc>-3</midicc> |
| 51 |
<label>Toot 1</label> |
| 52 |
<alignment>left</alignment> |
| 53 |
<font>DejaVu Sans</font> |
| 54 |
<fontsize>18</fontsize> |
| 55 |
<precision>3</precision> |
| 56 |
<color> |
| 57 |
<r>241</r> |
| 58 |
<g>241</g> |
| 59 |
<b>241</b> |
| 60 |
</color> |
| 61 |
<bgcolor mode="nobackground"> |
| 62 |
<r>255</r> |
| 63 |
<g>255</g> |
| 64 |
<b>255</b> |
| 65 |
</bgcolor> |
| 66 |
<bordermode>noborder</bordermode> |
| 67 |
<borderradius>1</borderradius> |
| 68 |
<borderwidth>1</borderwidth> |
| 69 |
</bsbObject> |
| 70 |
<bsbObject version="2" type="BSBLabel"> |
| 71 |
<objectName/> |
| 72 |
<x>14</x> |
| 73 |
<y>43</y> |
| 74 |
<width>346</width> |
| 75 |
<height>63</height> |
| 76 |
<uuid>{c083c99f-496c-4251-a505-7aef4543b698}</uuid> |
| 77 |
<visible>true</visible> |
| 78 |
<midichan>0</midichan> |
| 79 |
<midicc>-3</midicc> |
| 80 |
<label>This first toot, contains a single instrument which uses an oscil unit to play a 440Hz sine wave (defined by f1 in the score) at an amplitude of 0.2.</label> |
| 81 |
<alignment>left</alignment> |
| 82 |
<font>DejaVu Sans</font> |
| 83 |
<fontsize>12</fontsize> |
| 84 |
<precision>3</precision> |
| 85 |
<color> |
| 86 |
<r>241</r> |
| 87 |
<g>241</g> |
| 88 |
<b>241</b> |
| 89 |
</color> |
| 90 |
<bgcolor mode="nobackground"> |
| 91 |
<r>255</r> |
| 92 |
<g>255</g> |
| 93 |
<b>255</b> |
| 94 |
</bgcolor> |
| 95 |
<bordermode>noborder</bordermode> |
| 96 |
<borderradius>1</borderradius> |
| 97 |
<borderwidth>1</borderwidth> |
| 98 |
</bsbObject> |
| 99 |
<bsbObject version="2" type="BSBScope"> |
| 100 |
<objectName/> |
| 101 |
<x>14</x> |
| 102 |
<y>114</y> |
| 103 |
<width>346</width> |
| 104 |
<height>141</height> |
| 105 |
<uuid>{3893bcf5-3ea5-49a3-8281-34a28e8ca72c}</uuid> |
| 106 |
<visible>true</visible> |
| 107 |
<midichan>0</midichan> |
| 108 |
<midicc>-3</midicc> |
| 109 |
<value>-255.00000000</value> |
| 110 |
<type>scope</type> |
| 111 |
<zoomx>2.00000000</zoomx> |
| 112 |
<zoomy>1.00000000</zoomy> |
| 113 |
<dispx>1.00000000</dispx> |
| 114 |
<dispy>1.00000000</dispy> |
| 115 |
<mode>0.00000000</mode> |
| 116 |
</bsbObject> |
| 117 |
</bsbPanel> |
| 118 |
<bsbPresets> |
| 119 |
</bsbPresets> |