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

    kcf1 =   &lt;Equal_center1&gt;                                                    ; first section
    kbw1 =   &lt;Equal_width1&gt;
    kgain1 =  &lt;Equal_gain1&gt;
    kcf2 =   &lt;Equal_center2&gt;                                                    ; second section
    kbw2 =   &lt;Equal_width2&gt;
    kgain2 =  &lt;Equal_gain2&gt;
    kcf3 =   &lt;Equal_center3&gt;                                                    ; third section
    kbw3 =   &lt;Equal_width3&gt;
    kgain3 =  &lt;Equal_gain3&gt;
    kcf4 =   &lt;Equal_center4&gt;                                                    ; fouth section
    kbw4 =   &lt;Equal_width4&gt;
    kgain4 =  &lt;Equal_gain4&gt;


    asigL1 eqfil ain1, kcf1, kbw1, kgain1                                       ; Left channnel
    asigR1 eqfil ain2, kcf1, kbw1, kgain1                                       ; Right channel

    asigL2 eqfil asigL1, kcf2, kbw2, kgain2
    asigR2 eqfil asigR1, kcf2, kbw2, kgain2

    asigL3 eqfil asigL2, kcf3, kbw3, kgain3
    asigR3 eqfil asigR2, kcf3, kbw3, kgain3

    asigL4 eqfil asigL3, kcf4, kbw4, kgain4
    asigR4 eqfil asigR3, kcf4, kbw4, kgain4

    aout1   =   asigL4 * &lt;Equal_totalgain&gt;                                   
    aout2   =   asigR4 * &lt;Equal_totalgain&gt; 

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

4 simple equalizer sections, each with their own frequency range. Uses the opcode eqfil, a 2nd order 
tunable equalisation filter based on Regalia and Mitra design.
The amplitude response for this filter will be flat (=1) for kgain=1. With kgain bigger than 1, there will be a peak at the centre frequency.

CONTROLLERS:

please check the help balloons, that can be viewed when hoovering overthe BSB elements.

---

version 1.0, October 2021
- initial version by Menno Knevel</comments>
  <opcodeList/>
  <graphicInterface editEnabled='false'>
    <gridSettings>
      <width>5</width>
      <height>5</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.BSBCheckBox'>
        <objectName>EqualON</objectName>
        <x>0</x>
        <y>0</y>
        <comment>switch effect ON/OFF</comment>
        <automationAllowed>true</automationAllowed>
        <label/>
        <selected>true</selected>
        <randomizable>true</randomizable>
      </bsbObject>
      <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.BSBKnob' version='2'>
          <objectName>Equal_width3</objectName>
          <x>390</x>
          <y>40</y>
          <comment>set bandwidth in Hz for section 3</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>1.0</minimum>
          <maximum>500.0</maximum>
          <value>275.45000000000005</value>
          <knobWidth>40</knobWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
          <label>width Hz</label>
          <labelEnabled>true</labelEnabled>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
          <objectName>Equal_width2</objectName>
          <x>200</x>
          <y>40</y>
          <comment>set bandwidth in Hz for section 2</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>1.0</minimum>
          <maximum>500.0</maximum>
          <value>290.41999999999996</value>
          <knobWidth>40</knobWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
          <label>width Hz</label>
          <labelEnabled>true</labelEnabled>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
          <objectName>Equal_gain3</objectName>
          <x>445</x>
          <y>40</y>
          <comment>gain for section 3</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>0.0</minimum>
          <maximum>30.0</maximum>
          <value>1.0</value>
          <knobWidth>40</knobWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
          <label>gain</label>
          <labelEnabled>true</labelEnabled>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
          <objectName>Equal_gain2</objectName>
          <x>255</x>
          <y>40</y>
          <comment>gain for section 3</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>0.0</minimum>
          <maximum>30.0</maximum>
          <value>1.0</value>
          <knobWidth>40</knobWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
          <label>gain</label>
          <labelEnabled>true</labelEnabled>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
          <objectName>Equal_center3</objectName>
          <x>390</x>
          <y>10</y>
          <comment>center frequency of mid-high section</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>2000.0</minimum>
          <maximum>5000.0</maximum>
          <bdresolution>0.1</bdresolution>
          <value>2860.3</value>
          <sliderWidth>150</sliderWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>721</x>
          <y>40</y>
          <label>total gain </label>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
          <objectName>Equal_center4</objectName>
          <x>580</x>
          <y>10</y>
          <comment>center frequency of high section</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>5000.0</minimum>
          <maximum>15000.0</maximum>
          <bdresolution>0.1</bdresolution>
          <value>7132.4</value>
          <sliderWidth>150</sliderWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
          <objectName>Equal_width4</objectName>
          <x>580</x>
          <y>40</y>
          <comment>set bandwidth in Hz for section 4</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>1.0</minimum>
          <maximum>1000.0</maximum>
          <value>710.29</value>
          <knobWidth>40</knobWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
          <label>width Hz</label>
          <labelEnabled>true</labelEnabled>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
          <objectName>Equal_width1</objectName>
          <x>20</x>
          <y>40</y>
          <comment>set bandwidth in Hz for section 1</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>1.0</minimum>
          <maximum>100.0</maximum>
          <value>22.78</value>
          <knobWidth>40</knobWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
          <label>width Hz</label>
          <labelEnabled>true</labelEnabled>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
          <objectName>Equal_center2</objectName>
          <x>200</x>
          <y>10</y>
          <comment>center frequency of mid-low section</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>250.0</minimum>
          <maximum>2000.0</maximum>
          <bdresolution>0.1</bdresolution>
          <value>1163.7</value>
          <sliderWidth>150</sliderWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBVSlider' version='2'>
          <objectName>Equal_totalgain</objectName>
          <x>735</x>
          <y>53</y>
          <comment>gain of total of the filters</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>0.0</minimum>
          <maximum>1.0</maximum>
          <bdresolution>0.1</bdresolution>
          <value>1.0</value>
          <sliderHeight>57</sliderHeight>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>false</valueDisplayEnabled>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
          <objectName>Equal_gain4</objectName>
          <x>640</x>
          <y>40</y>
          <comment>gain for section 3</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>0.0</minimum>
          <maximum>30.0</maximum>
          <value>1.0</value>
          <knobWidth>40</knobWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
          <label>gain</label>
          <labelEnabled>true</labelEnabled>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
          <objectName>Equal_gain1</objectName>
          <x>80</x>
          <y>40</y>
          <comment>gain for section 3</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>0.0</minimum>
          <maximum>30.0</maximum>
          <value>1.0</value>
          <knobWidth>40</knobWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
          <label>gain</label>
          <labelEnabled>true</labelEnabled>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
          <objectName>Equal_center1</objectName>
          <x>10</x>
          <y>10</y>
          <comment>center frequency of low section</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>10.0</minimum>
          <maximum>250.0</maximum>
          <bdresolution>0.1</bdresolution>
          <value>177.6</value>
          <sliderWidth>150</sliderWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
        </bsbObject>
      </bsbObject>
    </bsbObject>
  </graphicInterface>
  <parameterList>
    <parameter uniqueId='-1110243240' name='EqualON' 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='-1110243238' name='Equal_width3' label='' min='1.0' max='500.0' bdresolution='-1' automationEnabled='false' value='275.45000000000005'>
      <line name='' version='2' max='500.0' min='1.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='275.45000000000005'/>
      </line>
    </parameter>
    <parameter uniqueId='-1110243236' name='Equal_width2' label='' min='1.0' max='500.0' bdresolution='-1' automationEnabled='false' value='290.41999999999996'>
      <line name='' version='2' max='500.0' min='1.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='290.41999999999996'/>
      </line>
    </parameter>
    <parameter uniqueId='-1110243234' name='Equal_gain3' label='' min='0.0' max='30.0' bdresolution='-1' automationEnabled='false' value='1.0'>
      <line name='' version='2' max='30.0' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='1.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-1110243232' name='Equal_gain2' label='' min='0.0' max='30.0' bdresolution='-1' automationEnabled='false' value='1.0'>
      <line name='' version='2' max='30.0' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='1.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-1110243230' name='Equal_center3' label='' min='2000.0' max='5000.0' bdresolution='0.1' automationEnabled='false' value='2860.3'>
      <line name='' version='2' max='5000.0' min='2000.0' bdresolution='0.1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='2860.3'/>
      </line>
    </parameter>
    <parameter uniqueId='-1110243228' name='Equal_center4' label='' min='5000.0' max='15000.0' bdresolution='0.1' automationEnabled='false' value='7132.4'>
      <line name='' version='2' max='15000.0' min='5000.0' bdresolution='0.1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='7132.4'/>
      </line>
    </parameter>
    <parameter uniqueId='-1110243226' name='Equal_width4' label='' min='1.0' max='1000.0' bdresolution='-1' automationEnabled='false' value='710.29'>
      <line name='' version='2' max='1000.0' min='1.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='710.29'/>
      </line>
    </parameter>
    <parameter uniqueId='-1110243224' name='Equal_width1' label='' min='1.0' max='100.0' bdresolution='-1' automationEnabled='false' value='22.78'>
      <line name='' version='2' max='100.0' min='1.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='22.78'/>
      </line>
    </parameter>
    <parameter uniqueId='-1110243222' name='Equal_center2' label='' min='250.0' max='2000.0' bdresolution='0.1' automationEnabled='false' value='1163.7'>
      <line name='' version='2' max='2000.0' min='250.0' bdresolution='0.1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='1163.7'/>
      </line>
    </parameter>
    <parameter uniqueId='-1110243220' name='Equal_totalgain' label='' min='0.0' max='1.0' bdresolution='0.1' automationEnabled='false' value='1.0'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='0.1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='1.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-1110243218' name='Equal_gain4' label='' min='0.0' max='30.0' bdresolution='-1' automationEnabled='false' value='1.0'>
      <line name='' version='2' max='30.0' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='1.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-1110243216' name='Equal_gain1' label='' min='0.0' max='30.0' bdresolution='-1' automationEnabled='false' value='1.0'>
      <line name='' version='2' max='30.0' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='1.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-1110243214' name='Equal_center1' label='' min='10.0' max='250.0' bdresolution='0.1' automationEnabled='false' value='177.6'>
      <line name='' version='2' max='250.0' min='10.0' bdresolution='0.1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='177.6'/>
      </line>
    </parameter>
  </parameterList>
</effect>