<effect>
  <name>Waveshape Distortion</name>
  <enabled>true</enabled>
  <numIns>2</numIns>
  <numOuts>2</numOuts>
  <code>ifn	ftgentmp	0, 0, 1024, 7, &lt;wav_WaveShape&gt;
ihp	=	&lt;hpA&gt; + &lt;hpB&gt;
kdist	=	&lt;amt&gt;
kdry	=	&lt;dry&gt;

ad1	distort	ain1, kdist, ifn, ihp
ad2	distort	ain2, kdist, ifn, ihp
aoutA	dcblock	ad1
aoutB	dcblock	ad2

aout1	=	(ain1*kdry)+(aoutA*(1-kdry))
aout2	=	(ain2*kdry)+(aoutB*(1-kdry))
</code>
  <comments>Distortion via the distort opcode, with user-drawable waveshape function.</comments>
  <opcodeList/>
  <graphicInterface editEnabled='true'>
    <uniqueNameManager nameIndex='-1' defaultPrefix='bsbObj'/>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider'>
      <objectName>hpA</objectName>
      <x>78</x>
      <y>16</y>
      <minimum>0.0</minimum>
      <maximum>100.0</maximum>
      <resolution>1.0</resolution>
      <value>10.0</value>
      <sliderWidth>150</sliderWidth>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider'>
      <objectName>hpB</objectName>
      <x>78</x>
      <y>53</y>
      <minimum>0.0</minimum>
      <maximum>10000.0</maximum>
      <resolution>100.0</resolution>
      <value>0.0</value>
      <sliderWidth>150</sliderWidth>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel'>
      <objectName></objectName>
      <x>103</x>
      <y>91</y>
      <label>Half-power point (in hz)</label>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
      <objectName>amt</objectName>
      <x>7</x>
      <y>8</y>
      <minimum>0.0</minimum>
      <maximum>1.0</maximum>
      <value>0.21943465</value>
      <knobWidth>60</knobWidth>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel'>
      <objectName></objectName>
      <x>16</x>
      <y>86</y>
      <label>Amount</label>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLineObject'>
      <objectName>wav</objectName>
      <x>29</x>
      <y>119</y>
      <canvasWidth>200</canvasWidth>
      <canvasHeight>160</canvasHeight>
      <xMax>1024.0</xMax>
      <relativeXValues>true</relativeXValues>
      <separatorType>Comma</separatorType>
      <leadingZero>false</leadingZero>
      <locked>false</locked>
      <lines>
        <line name='WaveShape' version='2' max='1.0' min='-1.0' resolution='-1.0' color='-14623488' rightBound='true'>
          <linePoint x='0.0' y='-1.0'/>
          <linePoint x='0.21276596' y='0.1891892'/>
          <linePoint x='0.39361703' y='-0.3783784'/>
          <linePoint x='0.7712766' y='0.3108108'/>
          <linePoint x='0.80851066' y='-0.5405406'/>
          <linePoint x='1.0' y='1.0'/>
        </line>
      </lines>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel'>
      <objectName></objectName>
      <x>72</x>
      <y>306</y>
      <label>Wave-shape Function</label>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
      <objectName>dry</objectName>
      <x>252</x>
      <y>119</y>
      <minimum>0.0</minimum>
      <maximum>1.0</maximum>
      <value>0.0</value>
      <knobWidth>60</knobWidth>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel'>
      <objectName></objectName>
      <x>266</x>
      <y>199</y>
      <label>Dry Mix</label>
    </bsbObject>
  </graphicInterface>
  <bsbParameterList>
    <parameter uniqueId='690543579' name='amt' 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.21943465'/>
      </line>
    </parameter>
    <parameter uniqueId='1313495537' name='dry' 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.0'/>
      </line>
    </parameter>
    <parameter uniqueId='690543537' name='hpA' label='' min='0.0' max='100.0' resolution='1.0' automationEnabled='false'>
      <line name='' version='2' max='100.0' min='0.0' resolution='1.0' color='-8355712' rightBound='false'>
        <linePoint x='0.0' y='10.0'/>
      </line>
    </parameter>
    <parameter uniqueId='690543539' name='hpB' label='' min='0.0' max='10000.0' resolution='100.0' automationEnabled='false'>
      <line name='' version='2' max='10000.0' min='0.0' resolution='100.0' color='-8355712' rightBound='false'>
        <linePoint x='0.0' y='0.0'/>
      </line>
    </parameter>
  </bsbParameterList>
</effect>