<CsoundSynthesizer>
<CsOptions>
-odac --midi-key=4
</CsOptions>
<CsInstruments>

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


gaL init 0
gaR init 0 

section@global:k init 0

; roots (basenotes)
F2@global:i = cpspch(6.05)
baseNotes@global:i[] = [ F2*27/8, F2*9/4, F2*3/2, F2, F2*4/3, F2*16/9, F2*64/27 ]

printarray baseNotes

#define D4 #62#

ratios@global:i[][] init 127, 7

ratios setrow [1, 3/2, 0, 0, 5/4, 15/8, 0], 62 ; D4

ratios setrow [3/2, 0, 0, 0, 0, 0, 0], 69 ; A4 

ratios setrow [2 * 5/4 , 2* 28/15, 4*7/5, 8*21/20, 4*63/40, 0, 0], 78 ; F#5

ratios setrow [2 * 7/6, 2*7/4, 0, 0,  4 * 3/2, 4* 9/8, 0 ], 77 ; F5

ratios setrow [5/3, 2*5/4, 2*28/15, 4*7/5, 21/20*4, 63/40*2, 0 ], 71 ; B4

; Section 2

ratios setrow [0, 1, 3/2, 0, 0, 0, 0  ], 55 ; G3
ratios setrow [0, 2 * 7/6, 2 * 7/4, 0, 0, 0, 0 ], 70 ;Bb4
ratios setrow [0, 5/3, 5/4*2, 0, 0 ,0, 0  ], 64 ; E4 

; Section 3
ratios setrow [0, 0, 1, 3/2, 0, 0, 0 ], 48 ; C3
ratios setrow [0, 0, 2*7/6, 2*7/4, 2*21/16, 0, 0 ], 63 ; Eb4
ratios setrow [0, 0, 5/3, 2*5/4, 0, 0, 0 ], 57 ; A3

;Section 4
ratios setrow [0, 0, 0, 1, 3/4, 0, 0 ], 41 ; F2 

; Section 5
ratios setrow [0, 0, 0, 0, 1, 3/4, 0 ], 58 ; Bb3
ratios setrow [0, 0, 0, 0, 7/4, 0, 1 ], 56 ; Ab3

; Section 6
ratios setrow [0, 0, 0, 0, 0, 1, 3/4 ], 51 ; Eb3
ratios setrow [0, 0, 0, 0, 0, 2 *21/16, 0 ], 68 ; Ab4
ratios setrow [0, 0, 0, 0, 0, 7/4, 0 ], 61 ; Db4
ratios setrow [0, 0, 0, 0, 0, 4*21/20, 4* 21*3/(20*4) ], 76 ; E5
ratios setrow [0, 0, 0, 0, 0,  3/2 * 4, 9/8 *4 ], 82 ; Bb5
ratios setrow [0, 0, 0, 0, 0, 5/4*2, 15/8 ], 67 ; G4

;Section 7
; Ab3 defined above
ratios setrow [0, 0, 0, 0, 0, 0, 21/16 * 2 ], 73 ; Db5 
ratios setrow [0, 0, 0, 0, 0, 0, 7/4 ], 66 ; Gb4
ratios setrow [0, 0, 0, 0, 0, 0, 21/20 * 4 ], 81 ; A5


; p4 -  freq. ratio from base note of the section
; p5 -  player number
; p6 -  panning (notebased) if negative, read the panning slider

instr Sound1
	note:i = p4
	player:i = p5==0 ? 1 : p5
		
	volumeChannel:S = sprintf("volume%d", player)
	timbreChannel:S = sprintf("timbre%d", player)
	filterChannel:S = sprintf("filter%d", player)
	panningChannel:S = sprintf("panning%d", player)	
	
		
	section:i = chnget:i("section")
	frequency:i = baseNotes[section-1] * ratios[note][section-1]
	print section, baseNotes[section-1],  ratios[note][section-1], frequency, cpsmidinn(note)
	
	
	if frequency>0 then
		
		kTimbre port chnget:k(timbreChannel), 0.02, chnget:i(timbreChannel)
		; Clip . squareness; Skew - symmetry (1=saw)
		; timbre: 0 -  sine, 0.5 -  saw, 1 -  square
		if kTimbre<=0.5 then		  
			kClip = 0
			kSkew = kTimbre * 2
		elseif kTimbre>0.5 && kTimbre<=1.0 then
			kClip = (kTimbre-0.5) * 2
			kSkew = 1-kClip
		else 
			kClip = 0
			kSkew = 0
		endif
	  signal:a squinewave a(frequency), a(kClip), a(kSkew) 
	  cutoff:k = frequency * lag(1+chnget:k(filterChannel)*10, 0.1)
	  signal = butterlp(signal, a(cutoff))
	  
	  signal *= a(lag(chnget:k(volumeChannel), 0.05))
	  
	  signal *= madsr(2, 0,1,2) * 0.4
	   	
		panning:k = lag( chnget:k(panningChannel), 0.1)
		aL, aR = pan2(signal, panning)
		out aL, aR
		gaL += aL
		gaR += aR
		
  else
  	printf_i "Frequncy is 0 for note %d, section %d \n", 1, note, section
  endif	
endin


alwayson("Reverb")
instr Reverb
	wet:i = 0.15
	size:i = 0.8
	rvbL:a, rvbR:a reverbsc gaL*wet, gaR*wet, size, 5000
  
  out rvbL, rvbR ; wet only
  clear gaL, gaR
endin


</CsInstruments>
<CsScore>

</CsScore>
</CsoundSynthesizer>






<bsbPanel>
 <label/>
 <objectName/>
 <x>0</x>
 <y>0</y>
 <width>436</width>
 <height>209</height>
 <visible>true</visible>
 <uuid/>
 <bgcolor mode="background">
  <r>67</r>
  <g>67</g>
  <b>67</b>
 </bgcolor>
 <bsbObject type="BSBLabel" version="2">
  <objectName/>
  <x>75</x>
  <y>12</y>
  <width>280</width>
  <height>37</height>
  <uuid>{cbf06616-ec4c-4eb6-aa70-fd71a51722e1}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>-3</midicc>
  <description/>
  <label>James Tenney -  Harmonium #7</label>
  <alignment>left</alignment>
  <valignment>top</valignment>
  <font>Liberation Sans</font>
  <fontsize>17</fontsize>
  <precision>3</precision>
  <padding>5</padding>
  <locked>false</locked>
  <color>
   <r>252</r>
   <g>252</g>
   <b>252</b>
  </color>
  <bgcolor mode="nobackground">
   <r>32</r>
   <g>35</g>
   <b>38</b>
  </bgcolor>
  <bordercolor>
   <r>0</r>
   <g>0</g>
   <b>0</b>
  </bordercolor>
  <bordermode>false</bordermode>
  <borderradius>1</borderradius>
  <borderwidth>0</borderwidth>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>D4</objectName>
  <x>19</x>
  <y>202</y>
  <width>53</width>
  <height>37</height>
  <uuid>{b8129a75-27fe-466a-b4d6-9a214048b5b5}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>D4</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1 62 1 </eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>0</r>
   <g>85</g>
   <b>0</b>
  </color>
  <pressedColor>#00cb00</pressedColor>
  <borderColor>#007800</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>A4</objectName>
  <x>88</x>
  <y>202</y>
  <width>53</width>
  <height>37</height>
  <uuid>{621aa809-aba4-46a0-9e5e-042e6540a322}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>A4</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1  69  1 </eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>0</r>
   <g>85</g>
   <b>0</b>
  </color>
  <pressedColor>#00cb00</pressedColor>
  <borderColor>#007800</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBKnob" version="2">
  <objectName>volume1</objectName>
  <x>107</x>
  <y>71</y>
  <width>80</width>
  <height>80</height>
  <uuid>{9995162c-4035-401b-aa28-4bb6e5f8f501}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <minimum>0.00000000</minimum>
  <maximum>1.00000000</maximum>
  <exponent>1.00000000</exponent>
  <value>0.67500000</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>#f57c00</textcolor>
  <border>0</border>
  <borderColor>#512900</borderColor>
  <showvalue>true</showvalue>
  <flatstyle>true</flatstyle>
  <integerMode>false</integerMode>
 </bsbObject>
 <bsbObject type="BSBLabel" version="2">
  <objectName/>
  <x>123</x>
  <y>152</y>
  <width>56</width>
  <height>22</height>
  <uuid>{1ac2795d-b0c8-493c-8646-bc54f7f460fb}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>-3</midicc>
  <description/>
  <label>Volume</label>
  <alignment>left</alignment>
  <valignment>top</valignment>
  <font>Liberation Sans</font>
  <fontsize>10</fontsize>
  <precision>3</precision>
  <padding>5</padding>
  <locked>false</locked>
  <color>
   <r>252</r>
   <g>252</g>
   <b>252</b>
  </color>
  <bgcolor mode="nobackground">
   <r>32</r>
   <g>35</g>
   <b>38</b>
  </bgcolor>
  <bordercolor>
   <r>0</r>
   <g>0</g>
   <b>0</b>
  </bordercolor>
  <bordermode>false</bordermode>
  <borderradius>1</borderradius>
  <borderwidth>0</borderwidth>
 </bsbObject>
 <bsbObject type="BSBHSlider" version="2">
  <objectName>panning1</objectName>
  <x>340</x>
  <y>64</y>
  <width>66</width>
  <height>22</height>
  <uuid>{725307cd-1140-4f51-9ef9-25a534822d26}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <minimum>0.00000000</minimum>
  <maximum>1.00000000</maximum>
  <value>0.19696970</value>
  <mode>lin</mode>
  <mouseControl act="jump">continuous</mouseControl>
  <resolution>-1.00000000</resolution>
  <randomizable group="0">false</randomizable>
 </bsbObject>
 <bsbObject type="BSBLabel" version="2">
  <objectName/>
  <x>308</x>
  <y>62</y>
  <width>31</width>
  <height>24</height>
  <uuid>{0cc786f0-1afe-4763-838b-ce9faa001e0d}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>-3</midicc>
  <description/>
  <label>L</label>
  <alignment>left</alignment>
  <valignment>top</valignment>
  <font>Liberation Sans</font>
  <fontsize>10</fontsize>
  <precision>3</precision>
  <padding>5</padding>
  <locked>false</locked>
  <color>
   <r>252</r>
   <g>252</g>
   <b>252</b>
  </color>
  <bgcolor mode="nobackground">
   <r>32</r>
   <g>35</g>
   <b>38</b>
  </bgcolor>
  <bordercolor>
   <r>0</r>
   <g>0</g>
   <b>0</b>
  </bordercolor>
  <bordermode>false</bordermode>
  <borderradius>1</borderradius>
  <borderwidth>0</borderwidth>
 </bsbObject>
 <bsbObject type="BSBLabel" version="2">
  <objectName/>
  <x>407</x>
  <y>63</y>
  <width>31</width>
  <height>24</height>
  <uuid>{950b8666-1d9c-4878-b888-abab2980aa08}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>-3</midicc>
  <description/>
  <label>R</label>
  <alignment>left</alignment>
  <valignment>top</valignment>
  <font>Liberation Sans</font>
  <fontsize>10</fontsize>
  <precision>3</precision>
  <padding>5</padding>
  <locked>false</locked>
  <color>
   <r>252</r>
   <g>252</g>
   <b>252</b>
  </color>
  <bgcolor mode="nobackground">
   <r>32</r>
   <g>35</g>
   <b>38</b>
  </bgcolor>
  <bordercolor>
   <r>0</r>
   <g>0</g>
   <b>0</b>
  </bordercolor>
  <bordermode>false</bordermode>
  <borderradius>1</borderradius>
  <borderwidth>0</borderwidth>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>F#5</objectName>
  <x>157</x>
  <y>202</y>
  <width>53</width>
  <height>37</height>
  <uuid>{3668b472-dc97-49c6-9d62-7b1a53b45ce6}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>F#5</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1  78  1</eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>0</r>
   <g>85</g>
   <b>0</b>
  </color>
  <pressedColor>#00cb00</pressedColor>
  <borderColor>#007800</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>F5</objectName>
  <x>226</x>
  <y>202</y>
  <width>53</width>
  <height>37</height>
  <uuid>{c7b77473-981a-4108-a689-9c1972f3613f}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>F5</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1  77  1</eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>0</r>
   <g>85</g>
   <b>0</b>
  </color>
  <pressedColor>#00cb00</pressedColor>
  <borderColor>#007800</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBLabel" version="2">
  <objectName/>
  <x>308</x>
  <y>165</y>
  <width>42</width>
  <height>27</height>
  <uuid>{9983ebee-7d6c-4271-89f3-117eed43f52a}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>-3</midicc>
  <description/>
  <label>Sine</label>
  <alignment>left</alignment>
  <valignment>top</valignment>
  <font>Liberation Sans</font>
  <fontsize>10</fontsize>
  <precision>3</precision>
  <padding>5</padding>
  <locked>false</locked>
  <color>
   <r>252</r>
   <g>252</g>
   <b>252</b>
  </color>
  <bgcolor mode="nobackground">
   <r>32</r>
   <g>35</g>
   <b>38</b>
  </bgcolor>
  <bordercolor>
   <r>0</r>
   <g>0</g>
   <b>0</b>
  </bordercolor>
  <bordermode>false</bordermode>
  <borderradius>1</borderradius>
  <borderwidth>0</borderwidth>
 </bsbObject>
 <bsbObject type="BSBLabel" version="2">
  <objectName/>
  <x>353</x>
  <y>164</y>
  <width>42</width>
  <height>27</height>
  <uuid>{a99067ed-d2a2-479f-ab97-ab6862809169}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>-3</midicc>
  <description/>
  <label>Saw</label>
  <alignment>left</alignment>
  <valignment>top</valignment>
  <font>Liberation Sans</font>
  <fontsize>10</fontsize>
  <precision>3</precision>
  <padding>5</padding>
  <locked>false</locked>
  <color>
   <r>252</r>
   <g>252</g>
   <b>252</b>
  </color>
  <bgcolor mode="nobackground">
   <r>32</r>
   <g>35</g>
   <b>38</b>
  </bgcolor>
  <bordercolor>
   <r>0</r>
   <g>0</g>
   <b>0</b>
  </bordercolor>
  <bordermode>false</bordermode>
  <borderradius>1</borderradius>
  <borderwidth>0</borderwidth>
 </bsbObject>
 <bsbObject type="BSBLabel" version="2">
  <objectName/>
  <x>401</x>
  <y>164</y>
  <width>46</width>
  <height>27</height>
  <uuid>{08c4bf89-7da7-4f23-991b-07c1c39eb9e3}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>-3</midicc>
  <description/>
  <label>Square</label>
  <alignment>left</alignment>
  <valignment>top</valignment>
  <font>Liberation Sans</font>
  <fontsize>10</fontsize>
  <precision>3</precision>
  <padding>5</padding>
  <locked>false</locked>
  <color>
   <r>252</r>
   <g>252</g>
   <b>252</b>
  </color>
  <bgcolor mode="nobackground">
   <r>32</r>
   <g>35</g>
   <b>38</b>
  </bgcolor>
  <bordercolor>
   <r>0</r>
   <g>0</g>
   <b>0</b>
  </bordercolor>
  <bordermode>false</bordermode>
  <borderradius>1</borderradius>
  <borderwidth>0</borderwidth>
 </bsbObject>
 <bsbObject type="BSBVSlider" version="2">
  <objectName>filter1</objectName>
  <x>220</x>
  <y>70</y>
  <width>18</width>
  <height>80</height>
  <uuid>{40fdb138-d188-43fc-aed6-25c039658d36}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <minimum>0.00000000</minimum>
  <maximum>1.00000000</maximum>
  <value>0.26250000</value>
  <mode>lin</mode>
  <mouseControl act="jump">continuous</mouseControl>
  <resolution>-1.00000000</resolution>
  <randomizable group="0">false</randomizable>
 </bsbObject>
 <bsbObject type="BSBLabel" version="2">
  <objectName/>
  <x>203</x>
  <y>157</y>
  <width>65</width>
  <height>24</height>
  <uuid>{6f2d6c7b-27ae-451e-808d-27ac8209fa6c}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>-3</midicc>
  <description/>
  <label>Filter cutoff</label>
  <alignment>left</alignment>
  <valignment>top</valignment>
  <font>Liberation Sans</font>
  <fontsize>10</fontsize>
  <precision>3</precision>
  <padding>5</padding>
  <locked>false</locked>
  <color>
   <r>252</r>
   <g>252</g>
   <b>252</b>
  </color>
  <bgcolor mode="nobackground">
   <r>32</r>
   <g>35</g>
   <b>38</b>
  </bgcolor>
  <bordercolor>
   <r>0</r>
   <g>0</g>
   <b>0</b>
  </bordercolor>
  <bordermode>false</bordermode>
  <borderradius>1</borderradius>
  <borderwidth>0</borderwidth>
 </bsbObject>
 <bsbObject type="BSBHSlider" version="2">
  <objectName>timbre1</objectName>
  <x>310</x>
  <y>132</y>
  <width>126</width>
  <height>30</height>
  <uuid>{dea7df2d-c781-4e54-978d-bfdd15780727}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <minimum>0.00000000</minimum>
  <maximum>1.00000000</maximum>
  <value>0.00000000</value>
  <mode>lin</mode>
  <mouseControl act="jump">continuous</mouseControl>
  <resolution>-1.00000000</resolution>
  <randomizable group="0">false</randomizable>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>G3</objectName>
  <x>19</x>
  <y>257</y>
  <width>53</width>
  <height>37</height>
  <uuid>{19ef87be-d313-421c-ab0e-ff69761163f3}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>G3</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1 55 1 </eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>0</r>
   <g>85</g>
   <b>127</b>
  </color>
  <pressedColor>#008bcb</pressedColor>
  <borderColor>#007cb1</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>Bb4</objectName>
  <x>88</x>
  <y>257</y>
  <width>53</width>
  <height>37</height>
  <uuid>{08679b4f-87e7-4c44-8159-2b3a46f9a4cb}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>Bb4</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1 70 1 </eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>0</r>
   <g>85</g>
   <b>127</b>
  </color>
  <pressedColor>#008bcb</pressedColor>
  <borderColor>#007cb1</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>E4</objectName>
  <x>157</x>
  <y>257</y>
  <width>53</width>
  <height>37</height>
  <uuid>{563bc97f-d730-47c3-af83-de66209a0230}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>E4</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1 64  1</eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>0</r>
   <g>85</g>
   <b>127</b>
  </color>
  <pressedColor>#008bcb</pressedColor>
  <borderColor>#007cb1</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>B4</objectName>
  <x>296</x>
  <y>202</y>
  <width>53</width>
  <height>37</height>
  <uuid>{2b1aca03-bbd2-40bb-8576-efef9d52298f}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>B4</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1  71 1 </eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>0</r>
   <g>85</g>
   <b>0</b>
  </color>
  <pressedColor>#00cb00</pressedColor>
  <borderColor>#007800</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBLabel" version="2">
  <objectName/>
  <x>8</x>
  <y>64</y>
  <width>80</width>
  <height>25</height>
  <uuid>{a5a9b003-ba34-45fc-896f-25960a54cefb}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>-3</midicc>
  <description/>
  <label>Section: </label>
  <alignment>left</alignment>
  <valignment>top</valignment>
  <font>Liberation Sans</font>
  <fontsize>10</fontsize>
  <precision>3</precision>
  <padding>5</padding>
  <locked>false</locked>
  <color>
   <r>252</r>
   <g>252</g>
   <b>252</b>
  </color>
  <bgcolor mode="nobackground">
   <r>32</r>
   <g>35</g>
   <b>38</b>
  </bgcolor>
  <bordercolor>
   <r>0</r>
   <g>0</g>
   <b>0</b>
  </bordercolor>
  <bordermode>false</bordermode>
  <borderradius>1</borderradius>
  <borderwidth>0</borderwidth>
 </bsbObject>
 <bsbObject type="BSBSpinBox" version="2">
  <objectName>section</objectName>
  <x>9</x>
  <y>91</y>
  <width>80</width>
  <height>75</height>
  <uuid>{0ba621f5-717c-44ce-b82d-6d8ed251123c}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <alignment>center</alignment>
  <font>JetBrains Mono</font>
  <fontsize>36</fontsize>
  <color>
   <r>252</r>
   <g>252</g>
   <b>252</b>
  </color>
  <bgcolor mode="nobackground">
   <r>32</r>
   <g>35</g>
   <b>38</b>
  </bgcolor>
  <resolution>1.00000000</resolution>
  <minimum>1</minimum>
  <maximum>7</maximum>
  <randomizable group="0">false</randomizable>
  <value>1</value>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>C3</objectName>
  <x>19</x>
  <y>312</y>
  <width>53</width>
  <height>37</height>
  <uuid>{1aa1133c-5c96-45eb-a444-f47c745646b1}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>C3</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1 48 1</eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>135</r>
   <g>0</g>
   <b>0</b>
  </color>
  <pressedColor>#f90000</pressedColor>
  <borderColor>#d00000</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>Eb4</objectName>
  <x>88</x>
  <y>312</y>
  <width>53</width>
  <height>37</height>
  <uuid>{30cfd1cb-ca56-4669-9b02-6c40fef69c8a}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>Eb4</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1 63 1</eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>135</r>
   <g>0</g>
   <b>0</b>
  </color>
  <pressedColor>#f90000</pressedColor>
  <borderColor>#d00000</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>A3</objectName>
  <x>157</x>
  <y>312</y>
  <width>53</width>
  <height>37</height>
  <uuid>{da416049-32d9-4a6f-956a-67d396f0d7b5}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>A3</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1 57 1</eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>135</r>
   <g>0</g>
   <b>0</b>
  </color>
  <pressedColor>#f90000</pressedColor>
  <borderColor>#d00000</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>F2</objectName>
  <x>296</x>
  <y>312</y>
  <width>53</width>
  <height>37</height>
  <uuid>{db28c4e6-fa00-4621-aca5-3670099e9c51}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>F2</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1 41 1</eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>49</r>
   <g>140</g>
   <b>0</b>
  </color>
  <pressedColor>#00ff00</pressedColor>
  <borderColor>#2a7e3e</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>Bb3</objectName>
  <x>19</x>
  <y>359</y>
  <width>53</width>
  <height>37</height>
  <uuid>{4e4a9e74-544f-417a-b380-37ff041d8ed4}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>Bb3</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1 58 1</eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>85</r>
   <g>0</g>
   <b>127</b>
  </color>
  <pressedColor>#8400c6</pressedColor>
  <borderColor>#8100c1</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>Ab3</objectName>
  <x>88</x>
  <y>359</y>
  <width>53</width>
  <height>37</height>
  <uuid>{b4f87577-15fa-4820-8fe6-23c0b535145a}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>Ab3</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1 56 1</eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>85</r>
   <g>0</g>
   <b>127</b>
  </color>
  <pressedColor>#8400c6</pressedColor>
  <borderColor>#8100c1</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>Eb3</objectName>
  <x>19</x>
  <y>411</y>
  <width>53</width>
  <height>37</height>
  <uuid>{031f68e7-de7a-4c18-8f45-f969ac385121}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>Eb3</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1 51 1</eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>85</r>
   <g>85</g>
   <b>0</b>
  </color>
  <pressedColor>#999900</pressedColor>
  <borderColor>#8c8c00</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>Ab4</objectName>
  <x>88</x>
  <y>411</y>
  <width>53</width>
  <height>37</height>
  <uuid>{ae5d72a5-4591-4890-ad23-737682852105}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>Ab4</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1 68 1</eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>85</r>
   <g>85</g>
   <b>0</b>
  </color>
  <pressedColor>#999900</pressedColor>
  <borderColor>#8c8c00</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>Db4</objectName>
  <x>157</x>
  <y>411</y>
  <width>53</width>
  <height>37</height>
  <uuid>{1c2b69c1-5ca8-433f-acdf-732570bace4a}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>Db4</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1 61 1</eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>85</r>
   <g>85</g>
   <b>0</b>
  </color>
  <pressedColor>#999900</pressedColor>
  <borderColor>#8c8c00</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>E5</objectName>
  <x>226</x>
  <y>411</y>
  <width>53</width>
  <height>37</height>
  <uuid>{456f16b1-fdcb-4978-b53b-99acc8f43248}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>E5</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1 76 1</eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>85</r>
   <g>85</g>
   <b>0</b>
  </color>
  <pressedColor>#999900</pressedColor>
  <borderColor>#8c8c00</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>Bb5</objectName>
  <x>296</x>
  <y>411</y>
  <width>53</width>
  <height>37</height>
  <uuid>{fec409ba-a54b-4b98-a148-ffa18babfe8d}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>Bb5</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1 82 1</eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>85</r>
   <g>85</g>
   <b>0</b>
  </color>
  <pressedColor>#999900</pressedColor>
  <borderColor>#8c8c00</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>Ab3</objectName>
  <x>19</x>
  <y>461</y>
  <width>53</width>
  <height>37</height>
  <uuid>{a5116fbe-9e2d-426b-b060-be08bad5093c}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>Ab3</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1 56 1</eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>170</r>
   <g>85</g>
   <b>127</b>
  </color>
  <pressedColor>#d46a9f</pressedColor>
  <borderColor>#ce679a</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>Db5</objectName>
  <x>88</x>
  <y>461</y>
  <width>53</width>
  <height>37</height>
  <uuid>{95cf67a2-d106-4cfe-b671-c0ce6846532a}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>Db5</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1 73 1</eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>170</r>
   <g>85</g>
   <b>127</b>
  </color>
  <pressedColor>#d46a9f</pressedColor>
  <borderColor>#ce679a</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>Gb4</objectName>
  <x>157</x>
  <y>461</y>
  <width>53</width>
  <height>37</height>
  <uuid>{d95d2842-82e6-43c3-a877-555f39374ab0}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>Gb4</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1 66 1</eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>170</r>
   <g>85</g>
   <b>127</b>
  </color>
  <pressedColor>#d46a9f</pressedColor>
  <borderColor>#ce679a</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>A5</objectName>
  <x>226</x>
  <y>461</y>
  <width>53</width>
  <height>37</height>
  <uuid>{49d30368-4c29-4bf2-9431-ce53201217f2}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>A5</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1 81 1</eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>170</r>
   <g>85</g>
   <b>127</b>
  </color>
  <pressedColor>#d46a9f</pressedColor>
  <borderColor>#ce679a</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
 <bsbObject type="BSBButton" version="2">
  <objectName>Bb5</objectName>
  <x>365</x>
  <y>411</y>
  <width>53</width>
  <height>37</height>
  <uuid>{334d7929-d553-4ced-9d80-e30abba314cd}</uuid>
  <widgetName/>
  <visible>true</visible>
  <enabled>true</enabled>
  <midichan>0</midichan>
  <midicc>0</midicc>
  <description/>
  <type>event</type>
  <pressedValue>1.00000000</pressedValue>
  <stringvalue/>
  <text>G4</text>
  <image>/</image>
  <eventLine>i "Sound1"  0  -1 67 1</eventLine>
  <latch>false</latch>
  <momentaryMidiButton>false</momentaryMidiButton>
  <latched>false</latched>
  <fontsize>10</fontsize>
  <flatStyle>true</flatStyle>
  <color>
   <r>85</r>
   <g>85</g>
   <b>0</b>
  </color>
  <pressedColor>#999900</pressedColor>
  <borderColor>#8c8c00</borderColor>
  <textColor>#ffffff</textColor>
  <pressedTextColor/>
  <borderWidth>2</borderWidth>
  <borderRadius>3</borderRadius>
 </bsbObject>
</bsbPanel>
<bsbPresets>
</bsbPresets>
