<effect>
  <name>SharpFilter</name>
  <enabled>true</enabled>
  <numIns>2</numIns>
  <numOuts>2</numOuts>
  <code>if (&lt;SharpFilterON&gt; == 1) then

    aout1 ButtLP ain1, &lt;SharpFilter_frequency&gt;, 4
    aout2 ButtLP ain2, &lt;SharpFilter_frequency&gt;, 4

else
    aout1   =   ain1
    aout2   =   ain2
endif</code>
  <comments>
DESCRIPTION:

This is a simple sharp cutoff filter, that can be used to prevent aliasing produced by the instrument, getting in the final mix


CONTROLLERS:

ON/OFF              -       bypass
cutoff frequency    -       cutoff frequency for filter    

---

version 1.02, July 2020
- added BSB information comments

version 1.01, May 2020
- added comments on controllers
   
version 1.0, September 2019
- initial version by Menno Knevel</comments>
  <opcodeList>
    <udo>
      <opcodeName>ButtLP</opcodeName>
      <outTypes>a</outTypes>
      <inTypes>akio</inTypes>
      <codeBody>asig,kf,iN,icnt xin
if icnt &gt;= iN goto cont
asig ButtLP asig,kf,iN,icnt+1
cont:
xout butterlp(asig,kf)</codeBody>
      <comments></comments>
    </udo>
  </opcodeList>
  <graphicInterface editEnabled='false'>
    <gridSettings>
      <width>10</width>
      <height>10</height>
      <gridStyle>DOT</gridStyle>
      <snapGridEnabled>true</snapGridEnabled>
    </gridSettings>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBGroup'>
      <objectName></objectName>
      <x>0</x>
      <y>0</y>
      <groupName>Group</groupName>
      <backgroundColor>0x00000033</backgroundColor>
      <borderColor>0x000000ff</borderColor>
      <labelTextColor>0xffffffff</labelTextColor>
      <titleEnabled>true</titleEnabled>
      <width>20</width>
      <height>20</height>
      <bsbObject type='blue.orchestra.blueSynthBuilder.BSBGroup'>
        <objectName></objectName>
        <x>10</x>
        <y>10</y>
        <groupName>Group</groupName>
        <backgroundColor>0x4d8080ff</backgroundColor>
        <borderColor>0x000000ff</borderColor>
        <labelTextColor>0xffffffff</labelTextColor>
        <titleEnabled>false</titleEnabled>
        <width>20</width>
        <height>20</height>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
          <objectName>SharpFilter_frequency</objectName>
          <x>10</x>
          <y>10</y>
          <comment>cutoff frequency for filter</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>1000.0</minimum>
          <maximum>20000.0</maximum>
          <bdresolution>1</bdresolution>
          <value>7333.0</value>
          <sliderWidth>150</sliderWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>40</x>
          <y>10</y>
          <label>cutoff frequency</label>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
      </bsbObject>
      <bsbObject type='blue.orchestra.blueSynthBuilder.BSBCheckBox'>
        <objectName>SharpFilterON</objectName>
        <x>0</x>
        <y>0</y>
        <comment>bypass</comment>
        <automationAllowed>true</automationAllowed>
        <label/>
        <selected>true</selected>
        <randomizable>true</randomizable>
      </bsbObject>
    </bsbObject>
  </graphicInterface>
  <parameterList>
    <parameter uniqueId='1663521954' name='SharpFilterON' label='' min='0.0' max='1.0' bdresolution='1' automationEnabled='false' value='1.0'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='1.0'/>
      </line>
    </parameter>
    <parameter uniqueId='1663521956' name='SharpFilter_frequency' label='' min='1000.0' max='20000.0' bdresolution='1' automationEnabled='false' value='7333.0'>
      <line name='' version='2' max='20000.0' min='1000.0' bdresolution='1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='7333.0'/>
      </line>
    </parameter>
  </parameterList>
</effect>