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

Metronome click. Could be played with a repeating
soundObject containing (supposed the click instrument
has an instance named &quot;click&quot;):

i&quot;click&quot; 0 1 1
i&quot;click&quot; + . 2
i&quot;click&quot; + . 2
i&quot;click&quot; + . 2

Changelog:
1.0
* Initial release
</comment>
  <globalOrc/>
  <globalSco/>
  <instrumentText>ifreq	=	p4

; setup
iamp	=	10000

; defaults
ifreq	=	(ifreq == 0) ? 1 : ifreq

; calc frequency
ifreq	=	(ifreq == 1) ? &lt;freq1&gt; : &lt;freq2&gt;

; amplitude + envelope
kamp	=	iamp * &lt;vol&gt;
aamp	linseg	0, .0001, 1, &lt;length&gt;, 0

; oscillator
aout	oscils	1, ifreq, 0

; apply envelope
aout	=	aout * kamp * aamp

; output
	blueMixerOut aout, aout</instrumentText>
  <graphicInterface editEnabled='false'>
    <uniqueNameManager nameIndex='-1' defaultPrefix='bsbObj'/>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
      <objectName>vol</objectName>
      <x>237</x>
      <y>68</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>246</x>
      <y>144</y>
      <label>Volume</label>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
      <objectName>freq1</objectName>
      <x>24</x>
      <y>68</y>
      <automationAllowed>true</automationAllowed>
      <minimum>20.0</minimum>
      <maximum>1000.0</maximum>
      <value>952.61475</value>
      <knobWidth>60</knobWidth>
      <randomizable>true</randomizable>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
      <objectName>freq2</objectName>
      <x>87</x>
      <y>68</y>
      <automationAllowed>true</automationAllowed>
      <minimum>20.0</minimum>
      <maximum>1000.0</maximum>
      <value>620.33997</value>
      <knobWidth>60</knobWidth>
      <randomizable>true</randomizable>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel'>
      <objectName></objectName>
      <x>36</x>
      <y>144</y>
      <label>Freq 1</label>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel'>
      <objectName></objectName>
      <x>99</x>
      <y>144</y>
      <label>Freq 2</label>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
      <objectName>length</objectName>
      <x>161</x>
      <y>68</y>
      <automationAllowed>true</automationAllowed>
      <minimum>0.01</minimum>
      <maximum>0.1</maximum>
      <value>0.05235955</value>
      <knobWidth>60</knobWidth>
      <randomizable>true</randomizable>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel'>
      <objectName></objectName>
      <x>172</x>
      <y>144</y>
      <label>Length</label>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel'>
      <objectName></objectName>
      <x>100</x>
      <y>14</y>
      <label>&lt;html&gt;&lt;font size=&quot;6&quot;&gt;&lt;b&gt;MetroClick&lt;/b&gt;&lt;/font&gt;&lt;/html&gt;</label>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel'>
      <objectName></objectName>
      <x>154</x>
      <y>39</y>
      <label>v 1.0</label>
    </bsbObject>
  </graphicInterface>
  <bsbParameterList>
    <parameter uniqueId='1578547239' name='freq1' label='' min='20.0' max='1000.0' resolution='-1.0' automationEnabled='false'>
      <line name='' version='2' max='1000.0' min='20.0' resolution='-1.0' color='-8355712' rightBound='false'>
        <linePoint x='0.0' y='952.61475'/>
      </line>
    </parameter>
    <parameter uniqueId='1578547241' name='freq2' label='' min='20.0' max='1000.0' resolution='-1.0' automationEnabled='false'>
      <line name='' version='2' max='1000.0' min='20.0' resolution='-1.0' color='-8355712' rightBound='false'>
        <linePoint x='0.0' y='620.33997'/>
      </line>
    </parameter>
    <parameter uniqueId='1578547243' name='length' label='' min='0.01' max='0.1' resolution='-1.0' automationEnabled='false'>
      <line name='' version='2' max='0.1' min='0.01' resolution='-1.0' color='-8355712' rightBound='false'>
        <linePoint x='0.0' y='0.05235955'/>
      </line>
    </parameter>
    <parameter uniqueId='1578547237' name='vol' 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>