<CsoundSynthesizer>
<CsOptions>
-odac -d
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1

;;channels
chn_k "volume",3
chn_k "frequency",3

instr Tone
 chnset 300, "frequency"
	kFrequency chnget "frequency"
	kFrequency lag kFrequency, 0.1
	kAmplitude chnget "volume"
	kAmplitude lag kAmplitude, 0.05
	aSignal oscil kAmplitude, kFrequency
	
	aEnvelope linenr 1, 0.5, 0.5, 0.001
	
	aOut = aSignal * aEnvelope
	
	outall aOut
	
endin

</CsInstruments>
<CsScore>

</CsScore>
</CsoundSynthesizer>
<bsbPanel>
 <label>Widgets</label>
 <objectName/>
 <x>100</x>
 <y>100</y>
 <width>320</width>
 <height>240</height>
 <visible>true</visible>
 <uuid/>
 <bgcolor mode="background">
  <r>240</r>
  <g>240</g>
  <b>240</b>
 </bgcolor>
 <bsbObject type="BSBButton" version="2">
  <objectName>button0</objectName>
  <x>51</x>
  <y>75</y>
  <width>111</width>
  <height>102</height>
  <uuid>{31935ede-b509-4590-ae49-19469974e8c0}</uuid>
  <visible>true</visible>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>PLAY</text>
  <image>/</image>
  <eventLine>i "Tone" 0 -1</eventLine>
  <latch>true</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
 </bsbObject>
 <bsbObject type="BSBVSlider" version="2">
  <objectName>frequency</objectName>
  <x>212</x>
  <y>70</y>
  <width>34</width>
  <height>289</height>
  <uuid>{3856904e-db03-4a7c-a036-69838cf7b0d5}</uuid>
  <visible>true</visible>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <minimum>200.00000000</minimum>
  <maximum>1000.00000000</maximum>
  <value>706.57439446</value>
  <mode>lin</mode>
  <mouseControl act="jump">continuous</mouseControl>
  <resolution>-1.00000000</resolution>
  <randomizable group="0">false</randomizable>
 </bsbObject>
 <bsbObject type="BSBKnob" version="2">
  <objectName>volume</objectName>
  <x>57</x>
  <y>213</y>
  <width>119</width>
  <height>119</height>
  <uuid>{7511d61a-0ebf-4f73-90c4-dc1bc59b425a}</uuid>
  <visible>true</visible>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <minimum>0.00000000</minimum>
  <maximum>1.00000000</maximum>
  <value>0.08390000</value>
  <mode>lin</mode>
  <mouseControl act="">continuous</mouseControl>
  <resolution>0.01000000</resolution>
  <randomizable group="0">false</randomizable>
  <color>
   <r>245</r>
   <g>124</g>
   <b>0</b>
  </color>
  <textcolor>#512900</textcolor>
  <border>0</border>
  <borderColor>#512900</borderColor>
  <showvalue>true</showvalue>
  <flatstyle>true</flatstyle>
  <integerMode>false</integerMode>
 </bsbObject>
</bsbPanel>
<bsbPresets>
</bsbPresets>
