<instrument type='blue.orchestra.BlueSynthBuilder' editEnabled='false'>
  <name>ResonantRhythm v1.1</name>
  <comment>Author: Atte AndrÃ© Jensen (atte.dk), 2007

Animated, resonant pad/drone/bass instrument with tempo sync.

Changelog:
1.1
* Syncs to tempo using miditempo
* Added more subdivisions

1.0
* Initial release
</comment>
  <globalOrc>;git_sqr	ftgen	0, 0, 8192,	7,	1, 4096, 1, 0, -1, 4096, -1
</globalOrc>
  <globalSco/>
  <instrumentText>ifreq	=	p4
; optional
ivol	=	p5
kdetune	=	p6
kbright	=	p7
kres	=	p8
khpfreq	=	p9

; setup
iamp	=	10000

; defaults
ifreq	=	(p4 &gt;= 20) ? ifreq : cpspch(ifreq)
ivol		= (ivol == 0) ? &lt;volume&gt; : ivol
kdetune		= (kdetune == 0) ? &lt;detune&gt; : kdetune
kbright		= (kbright == 0) ? &lt;brightness&gt; : kbright
kres		= (kres == 0) ? &lt;resonance&gt; : kres
khpfreq		= (khpfreq == 0) ? &lt;hipassfreq&gt; : khpfreq

; calculate iamp
iamp	=	iamp * ivol

; seed
	seed	0
iseed	random	0, 1	

; envelope
aampenv linsegr	0, &lt;attack&gt;, 1, &lt;release&gt;, 0

; sqr random
kbpm	miditempo
ksqrfreq	=	kbpm * &lt;subdiv&gt; / 240
kfreq	randh	.5, ksqrfreq, iseed

kfreq	=		(kfreq + .5) * kbright


; oscillators
aosc1	vco2	iamp, ifreq, &lt;waveform&gt;, &lt;pulsewidth&gt;
aosc2	vco2	iamp, ifreq * (1 + kdetune), &lt;waveform&gt;, &lt;pulsewidth&gt;
aosc3	vco2	iamp, ifreq * (1 - kdetune), &lt;waveform&gt;, &lt;pulsewidth&gt;
aosc4	vco2	iamp, ifreq * (1 + kdetune*.5), &lt;waveform&gt;, &lt;pulsewidth&gt;
aosc5	vco2	iamp, ifreq * (1 - kdetune*.5), &lt;waveform&gt;, &lt;pulsewidth&gt;

; mix
aoutl	=	(aosc1 + aosc2 + aosc5) * aampenv
aoutr	=	(aosc1 + aosc3 + aosc4) * aampenv

; filter
aoutl	moogvcf2	aoutl, kfreq * ifreq, kres
aoutr	moogvcf2	aoutr, kfreq * ifreq, kres
aoutl	atone		aoutl, khpfreq
aoutr	atone		aoutr, khpfreq


; output
	blueMixerOut aoutl, aoutr
</instrumentText>
  <graphicInterface editEnabled='false'>
    <uniqueNameManager nameIndex='-1' defaultPrefix='bsbObj'/>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
      <objectName>detune</objectName>
      <x>262</x>
      <y>171</y>
      <automationAllowed>true</automationAllowed>
      <minimum>0.0</minimum>
      <maximum>0.05</maximum>
      <value>0.016751744</value>
      <knobWidth>60</knobWidth>
      <randomizable>true</randomizable>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBDropdown'>
      <objectName>subdiv</objectName>
      <x>17</x>
      <y>227</y>
      <bsbDropdownItemList>
        <bsbDropdownItem>
          <name>1/1</name>
          <value>1</value>
        </bsbDropdownItem>
        <bsbDropdownItem>
          <name>1/2</name>
          <value>2</value>
        </bsbDropdownItem>
        <bsbDropdownItem>
          <name>1/4</name>
          <value>4</value>
        </bsbDropdownItem>
        <bsbDropdownItem>
          <name>1/8</name>
          <value>8</value>
        </bsbDropdownItem>
        <bsbDropdownItem>
          <name>1/16</name>
          <value>16</value>
        </bsbDropdownItem>
        <bsbDropdownItem>
          <name>1/32</name>
          <value>32</value>
        </bsbDropdownItem>
        <bsbDropdownItem>
          <name>1/64</name>
          <value>64</value>
        </bsbDropdownItem>
        <bsbDropdownItem>
          <name>1/1T</name>
          <value>1.5</value>
        </bsbDropdownItem>
        <bsbDropdownItem>
          <name>1/2T</name>
          <value>3</value>
        </bsbDropdownItem>
        <bsbDropdownItem>
          <name>1/4T</name>
          <value>6</value>
        </bsbDropdownItem>
        <bsbDropdownItem>
          <name>1/8T</name>
          <value>12</value>
        </bsbDropdownItem>
        <bsbDropdownItem>
          <name>1/16T</name>
          <value>24</value>
        </bsbDropdownItem>
        <bsbDropdownItem>
          <name>1/32T</name>
          <value>48</value>
        </bsbDropdownItem>
        <bsbDropdownItem>
          <name>1/1.</name>
          <value>.666666666666666666666666666666666666666666666666666</value>
        </bsbDropdownItem>
        <bsbDropdownItem>
          <name>1/2.</name>
          <value>1.3333333333333333333333333333333333333333333333333</value>
        </bsbDropdownItem>
        <bsbDropdownItem>
          <name>1/4.</name>
          <value>2.6666666666666666666666666666666666666666666666666666666</value>
        </bsbDropdownItem>
        <bsbDropdownItem>
          <name>1/8.</name>
          <value>5.333333333333333333333333333333333333333333333</value>
        </bsbDropdownItem>
        <bsbDropdownItem>
          <name>1/16.</name>
          <value>10.6666666666666666666666666666666666666666666666666666666666</value>
        </bsbDropdownItem>
        <bsbDropdownItem>
          <name>1/32.</name>
          <value>21.3333333333333333333333333333333333333333333333333</value>
        </bsbDropdownItem>
      </bsbDropdownItemList>
      <selectedIndex>4</selectedIndex>
      <randomizable>false</randomizable>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel'>
      <objectName></objectName>
      <x>12</x>
      <y>251</y>
      <label>Sub Division</label>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel'>
      <objectName></objectName>
      <x>272</x>
      <y>247</y>
      <label>Detune</label>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
      <objectName>resonance</objectName>
      <x>260</x>
      <y>57</y>
      <automationAllowed>true</automationAllowed>
      <minimum>0.0</minimum>
      <maximum>1.0</maximum>
      <value>0.33874866</value>
      <knobWidth>60</knobWidth>
      <randomizable>true</randomizable>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
      <objectName>volume</objectName>
      <x>352</x>
      <y>171</y>
      <automationAllowed>true</automationAllowed>
      <minimum>0.0</minimum>
      <maximum>1.0</maximum>
      <value>1.0</value>
      <knobWidth>60</knobWidth>
      <randomizable>false</randomizable>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel'>
      <objectName></objectName>
      <x>361</x>
      <y>247</y>
      <label>Volume</label>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel'>
      <objectName></objectName>
      <x>259</x>
      <y>133</y>
      <label>Resonance</label>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
      <objectName>brightness</objectName>
      <x>195</x>
      <y>57</y>
      <automationAllowed>true</automationAllowed>
      <minimum>1.0</minimum>
      <maximum>20.0</maximum>
      <value>6.3619614</value>
      <knobWidth>60</knobWidth>
      <randomizable>true</randomizable>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel'>
      <objectName></objectName>
      <x>195</x>
      <y>133</y>
      <label>Brightness</label>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
      <objectName>hipassfreq</objectName>
      <x>353</x>
      <y>57</y>
      <automationAllowed>true</automationAllowed>
      <minimum>0.0</minimum>
      <maximum>4000.0</maximum>
      <value>798.64484</value>
      <knobWidth>60</knobWidth>
      <randomizable>true</randomizable>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel'>
      <objectName></objectName>
      <x>347</x>
      <y>133</y>
      <label>Hi Pass Freq</label>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
      <objectName>attack</objectName>
      <x>110</x>
      <y>171</y>
      <automationAllowed>true</automationAllowed>
      <minimum>0.0010</minimum>
      <maximum>1.0</maximum>
      <value>0.004351962</value>
      <knobWidth>60</knobWidth>
      <randomizable>true</randomizable>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
      <objectName>release</objectName>
      <x>175</x>
      <y>171</y>
      <automationAllowed>true</automationAllowed>
      <minimum>0.0010</minimum>
      <maximum>1.0</maximum>
      <value>0.023103733</value>
      <knobWidth>60</knobWidth>
      <randomizable>true</randomizable>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel'>
      <objectName></objectName>
      <x>123</x>
      <y>247</y>
      <label>Attack</label>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel'>
      <objectName></objectName>
      <x>183</x>
      <y>247</y>
      <label>Release</label>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel'>
      <objectName></objectName>
      <x>113</x>
      <y>6</y>
      <label>&lt;html&gt;&lt;font size=&quot;6&quot;&gt;&lt;b&gt;ResonantRhythm&lt;/b&gt;&lt;/font&gt;&lt;/html&gt;</label>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
      <objectName>pulsewidth</objectName>
      <x>97</x>
      <y>57</y>
      <automationAllowed>true</automationAllowed>
      <minimum>0.0010</minimum>
      <maximum>0.5</maximum>
      <value>0.0972609</value>
      <knobWidth>60</knobWidth>
      <randomizable>true</randomizable>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel'>
      <objectName></objectName>
      <x>95</x>
      <y>133</y>
      <label>Pulse Width</label>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBDropdown'>
      <objectName>waveform</objectName>
      <x>11</x>
      <y>109</y>
      <bsbDropdownItemList>
        <bsbDropdownItem>
          <name>Saw/Tri</name>
          <value>4</value>
        </bsbDropdownItem>
        <bsbDropdownItem>
          <name>Sqr/Pulse</name>
          <value>2</value>
        </bsbDropdownItem>
      </bsbDropdownItemList>
      <selectedIndex>1</selectedIndex>
      <randomizable>true</randomizable>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel'>
      <objectName></objectName>
      <x>23</x>
      <y>133</y>
      <label>Waveform</label>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel'>
      <objectName></objectName>
      <x>198</x>
      <y>35</y>
      <label>v 1.1</label>
    </bsbObject>
  </graphicInterface>
  <bsbParameterList>
    <parameter uniqueId='934795767' name='attack' label='' min='0.0010' max='1.0' resolution='-1.0' automationEnabled='false'>
      <line name='' version='2' max='1.0' min='0.0010' resolution='-1.0' color='-8355712' rightBound='false'>
        <linePoint x='0.0' y='0.004351962'/>
      </line>
    </parameter>
    <parameter uniqueId='934795763' name='brightness' label='' min='1.0' max='20.0' resolution='-1.0' automationEnabled='false'>
      <line name='' version='2' max='20.0' min='1.0' resolution='-1.0' color='-8355712' rightBound='false'>
        <linePoint x='0.0' y='6.3619614'/>
      </line>
    </parameter>
    <parameter uniqueId='934795757' name='detune' label='' min='0.0' max='0.05' resolution='-1.0' automationEnabled='false'>
      <line name='' version='2' max='0.05' min='0.0' resolution='-1.0' color='-8355712' rightBound='false'>
        <linePoint x='0.0' y='0.016751744'/>
      </line>
    </parameter>
    <parameter uniqueId='934795765' name='hipassfreq' label='' min='0.0' max='4000.0' resolution='-1.0' automationEnabled='false'>
      <line name='' version='2' max='4000.0' min='0.0' resolution='-1.0' color='-8355712' rightBound='false'>
        <linePoint x='0.0' y='798.64484'/>
      </line>
    </parameter>
    <parameter uniqueId='934795771' name='pulsewidth' label='' min='0.0010' max='0.5' resolution='-1.0' automationEnabled='false'>
      <line name='' version='2' max='0.5' min='0.0010' resolution='-1.0' color='-8355712' rightBound='false'>
        <linePoint x='0.0' y='0.0972609'/>
      </line>
    </parameter>
    <parameter uniqueId='934795769' name='release' label='' min='0.0010' max='1.0' resolution='-1.0' automationEnabled='false'>
      <line name='' version='2' max='1.0' min='0.0010' resolution='-1.0' color='-8355712' rightBound='false'>
        <linePoint x='0.0' y='0.023103733'/>
      </line>
    </parameter>
    <parameter uniqueId='934795759' name='resonance' label='' min='0.0' max='1.0' resolution='-1.0' automationEnabled='false'>
      <line name='' version='2' max='1.0' min='0.0' resolution='-1.0' color='-8355712' rightBound='false'>
        <linePoint x='0.0' y='0.33874866'/>
      </line>
    </parameter>
    <parameter uniqueId='934795761' name='volume' label='' min='0.0' max='1.0' resolution='-1.0' automationEnabled='false'>
      <line name='' version='2' max='1.0' min='0.0' resolution='-1.0' color='-8355712' rightBound='false'>
        <linePoint x='0.0' y='1.0'/>
      </line>
    </parameter>
  </bsbParameterList>
  <presetGroup name='Presets'/>
  <opcodeList/>
</instrument>