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

    ihandle dssiinit &quot;&lt;ladspa_LEETchorus_ladspa&gt;&quot;, 0, 0

    dssiactivate ihandle, 1
	
    dssictls ihandle, 4, &lt;ladspa_LEETchorus_Delay&gt;, 1                           ; (0 to 30)
    dssictls ihandle, 5, &lt;ladspa_LEETchorus_Mod Frequency 1&gt;, 1                 ; (0.003 to 10)
    dssictls ihandle, 6, &lt;ladspa_LEETchorus_Mod Amplitude 1&gt;, 1                 ; (0 to 10)
    dssictls ihandle, 7, &lt;ladspa_LEETchorus_Mod Frequency 2&gt;, 1                 ; (0.01 to 30)
    dssictls ihandle, 8, &lt;ladspa_LEETchorus_Mod Amplitude 2&gt;, 1                 ; (0 to 3)

    aout1, aout2   dssiaudio ihandle, ain1, ain2                                ; stereo in, stereo out

else
    aout1   =   ain1
    aout2   =   ain2
endif

</code>
  <comments>a wrapper of ladspa plugin 313371 called LEET chorus1, created by Dan Lyons - Based on MCP Chorus by F. Adriaensen. Licensed under GPL v2+.
plugin has stereo input and stereo output.

The DSSI opcodes are wrapping the ladspa plugin so it can be used as an effect in Blue.
The PATH for the ladspa plugins on my Linux systemm is /usr/lib/ladspa. Be sure to set the right PATH if you run OSX or Windows.

DESCRIPTION:

These two plugins are based on a CSound orchestra file by Sean Costello. There are two low frequency oscillators, each having three outputs that are 120 degrees apart in phase. 
The summed outputs modulate three delay lines.


CONTROLLERS:

ON/OFF              -       bypass
File Selector       -       set path for LEET_chorus.so
Delay               -       delay in ms
Mod Frequency 1/2   -       set frequencies for LFOs
Mod Amplitude 1/2   -       set amplitude(= depth) for LFOs

---

version 1.02, July 2020
- added BSB information comments

version 1.01, May 2020
- added comments on controllers

version 1.0, June 2019
- 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.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.BSBHSlider' version='2'>
          <objectName>ladspa_LEETchorus_Mod Frequency 1</objectName>
          <x>10</x>
          <y>80</y>
          <comment>set frequencies for LFO 1</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>0.003</minimum>
          <maximum>10.0</maximum>
          <bdresolution>0.001</bdresolution>
          <value>3.103</value>
          <sliderWidth>150</sliderWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>215</x>
          <y>150</y>
          <label>Mod Frequency 2</label>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>215</x>
          <y>90</y>
          <label>Mod Frequency 1</label>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
          <objectName>ladspa_LEETchorus_Mod Frequency 2</objectName>
          <x>10</x>
          <y>140</y>
          <comment>set frequencies for LFO 2</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>0.01</minimum>
          <maximum>30.0</maximum>
          <bdresolution>0.01</bdresolution>
          <value>15.11</value>
          <sliderWidth>150</sliderWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>215</x>
          <y>120</y>
          <label>Mod Amplitude 1</label>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>215</x>
          <y>180</y>
          <label>Mod Amplitude 2</label>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
          <objectName>ladspa_LEETchorus_Mod Amplitude 1</objectName>
          <x>10</x>
          <y>110</y>
          <comment>set amplitude(= depth) for LFO 1</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>0.0</minimum>
          <maximum>10.0</maximum>
          <bdresolution>0.01</bdresolution>
          <value>5.0</value>
          <sliderWidth>150</sliderWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
          <objectName></objectName>
          <x>215</x>
          <y>60</y>
          <label>Delay</label>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
          <objectName>ladspa_LEETchorus_Mod Amplitude 2</objectName>
          <x>10</x>
          <y>170</y>
          <comment>set amplitude(= depth) for LFO 2</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>0.0</minimum>
          <maximum>3.0</maximum>
          <bdresolution>0.01</bdresolution>
          <value>1.5</value>
          <sliderWidth>150</sliderWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
          <objectName>ladspa_LEETchorus_Delay</objectName>
          <x>10</x>
          <y>50</y>
          <comment>delay in ms</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>0.0</minimum>
          <maximum>30.0</maximum>
          <bdresolution>0.01</bdresolution>
          <value>11.25</value>
          <sliderWidth>150</sliderWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBFileSelector'>
          <objectName>ladspa_LEETchorus_ladspa</objectName>
          <x>10</x>
          <y>10</y>
          <comment>set path for LEET_chorus.so</comment>
          <fileName>/usr/lib/ladspa/LEET_chorus.so</fileName>
          <textFieldWidth>280</textFieldWidth>
          <stringChannelEnabled>false</stringChannelEnabled>
        </bsbObject>
      </bsbObject>
      <bsbObject type='blue.orchestra.blueSynthBuilder.BSBCheckBox'>
        <objectName>ladspa_LEETchorusON</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='-2056868956' name='ladspa_LEETchorusON' 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='-2056868954' name='ladspa_LEETchorus_Mod Amplitude 2' label='' min='0.0' max='3.0' bdresolution='0.01' automationEnabled='false' value='1.5'>
      <line name='' version='2' max='3.0' min='0.0' bdresolution='0.01' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='1.5'/>
      </line>
    </parameter>
    <parameter uniqueId='-2056868952' name='ladspa_LEETchorus_Mod Amplitude 1' label='' min='0.0' max='10.0' bdresolution='0.01' automationEnabled='false' value='5.0'>
      <line name='' version='2' max='10.0' min='0.0' bdresolution='0.01' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='5.0'/>
      </line>
    </parameter>
    <parameter uniqueId='-2056868950' name='ladspa_LEETchorus_Mod Frequency 1' label='' min='0.003' max='10.0' bdresolution='0.001' automationEnabled='false' value='3.103'>
      <line name='' version='2' max='10.0' min='0.003' bdresolution='0.001' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='3.103'/>
      </line>
    </parameter>
    <parameter uniqueId='-2056868948' name='ladspa_LEETchorus_Mod Frequency 2' label='' min='0.01' max='30.0' bdresolution='0.01' automationEnabled='false' value='15.11'>
      <line name='' version='2' max='30.0' min='0.01' bdresolution='0.01' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='15.11'/>
      </line>
    </parameter>
    <parameter uniqueId='-2056868946' name='ladspa_LEETchorus_Delay' label='' min='0.0' max='30.0' bdresolution='0.01' automationEnabled='false' value='11.25'>
      <line name='' version='2' max='30.0' min='0.0' bdresolution='0.01' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='11.25'/>
      </line>
    </parameter>
  </parameterList>
</effect>