<effect>
  <name>JSFX Peak-1 Limiter</name>
  <enabled>true</enabled>
  <numIns>2</numIns>
  <numOuts>2</numOuts>
  <code>if (&lt;JSFX Peak1 LimiterON&gt; == 1) then

    ihandle jsfx_new &quot;&lt;JSFX Peak1 Limiter_jsfx&gt;&quot;
    jsfx_setslider ihandle, 1,&lt;JSFX Peak1 Limiter_Treshold&gt;
    aout1, aout2 jsfx_play ihandle, ain1, ain2

else

    aout1   =   ain1
    aout2   =   ain2

endif</code>
  <comments>The opcode jsfx is not part of the official Csound ditribution but can be found here: https://github.com/csound-plugins/csound-plugins
(The Blue effect is grey to reflect the status)
Please build the plugins yourself in order to use this effect!

This plugin uses an effect from LOSER, that can be found in the REAPER effects library (SP1LimiterJS). Load this effect in order to use the limiter.

DESCRIPTION:

simple limiter


CONTROLLERS:

ON/OFF                      -       bypass
File Selector               -       select loser/SP1LimiterJS effect from Reaper directory
Treshold                    -       treshold in dB, -20 to 0

---

version 1.02, July 2020
- added BSB information comments

version 1.01, May 2020
- added comments on controllers

version 1.0, Octobre 2019
- initial version by Menno Knevel</comments>
  <opcodeList/>
  <graphicInterface editEnabled='false'>
    <gridSettings>
      <width>10</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>JSFX Peak1 LimiterON</objectName>
        <x>0</x>
        <y>0</y>
        <comment>bypass</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>0x666666ff</backgroundColor>
        <borderColor>0x000000ff</borderColor>
        <labelTextColor>0xffffffff</labelTextColor>
        <titleEnabled>false</titleEnabled>
        <width>20</width>
        <height>20</height>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>220</x>
          <y>55</y>
          <label>Threshold (dB)</label>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
          <objectName>JSFX Peak1 Limiter_Treshold</objectName>
          <x>10</x>
          <y>45</y>
          <comment>treshold in dB, -20 to 0</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>-20.0</minimum>
          <maximum>0.0</maximum>
          <bdresolution>0.1</bdresolution>
          <value>-2.8999999999999986</value>
          <sliderWidth>150</sliderWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBFileSelector'>
          <objectName>JSFX Peak1 Limiter_jsfx</objectName>
          <x>10</x>
          <y>10</y>
          <comment>select loser/SP1LimiterJS effect from Reaper directory</comment>
          <fileName>/home/menno/.config/REAPER/Effects/loser/SP1LimiterJS</fileName>
          <textFieldWidth>360</textFieldWidth>
          <stringChannelEnabled>false</stringChannelEnabled>
        </bsbObject>
      </bsbObject>
    </bsbObject>
  </graphicInterface>
  <parameterList>
    <parameter uniqueId='-1767320680' name='JSFX Peak1 Limiter_Treshold' label='' min='-20.0' max='0.0' bdresolution='0.1' automationEnabled='false' value='-2.8999999999999986'>
      <line name='' version='2' max='0.0' min='-20.0' bdresolution='0.1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='-2.8999999999999986'/>
      </line>
    </parameter>
    <parameter uniqueId='-1767320678' name='JSFX Peak1 LimiterON' 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>
  </parameterList>
</effect>