<effect>
  <name>ladspa G2reverb</name>
  <enabled>true</enabled>
  <numIns>2</numIns>
  <numOuts>2</numOuts>
  <code>if (&lt;ladspa_G2reverbON&gt; == 1) then
    ihandle dssiinit &quot;&lt;ladspa_G2reverb_ladspa&gt;&quot;, 0, 0

    dssiactivate ihandle, 1
	
    dssictls ihandle, 4,  &lt;ladspa_G2reverb_room&gt;,        1                      ; 10 to 150 
    dssictls ihandle, 5,  &lt;ladspa_G2reverb_reverb time&gt;, 1                      ; 1 to 20
    dssictls ihandle, 6,  &lt;ladspa_G2reverb_input BW&gt;,    1                      ; 0 to 1
    dssictls ihandle, 7,  &lt;ladspa_G2reverb_damping&gt;,     1                      ; 0 to 1
    dssictls ihandle, 8,  &lt;ladspa_G2reverb_dry sound&gt;,   1                      ; -80 to 0
    dssictls ihandle, 9,  &lt;ladspa_G2reverb_reflections&gt;, 1                      ; -80 to 0
    dssictls ihandle, 10, &lt;ladspa_G2reverb_tail&gt;,        1                      ; -80 to 0

    aout1, aout2 dssiaudio ihandle, ain1, ain2                                  ; stereo in, stereo out
else
    aout1   =   ain1
    aout2   =   ain2
endif

</code>
  <comments>a wrapper of ladspa plugin 1950, called Stereo Reverb, created by Fons Adriaensen. Copyright: GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. &lt;http://fsf.org/&gt;
plugin has stereo inputs, stereo outputs.

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:

stereo reverberation


CONTROLLERS:

ON/OFF          -       bypass
File Selector   -       set path for g2reverb.so
room            -       set dimension for room
reverb time     -       reverb time in seconds
input BW        -       filter the incoming signal
dry sound       -       direct signal
damping         -       cutoff frequency
reflections     -       number of reflections in dB
tail            -       gain of reflections in dB

---
version 1.01, 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='true'>
    <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>ladspa_G2reverbON</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>215</x>
          <y>120</y>
          <label>input BW</label>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
          <objectName>ladspa_G2reverb_tail</objectName>
          <x>10</x>
          <y>230</y>
          <comment>gain of reflections in dB</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>-80.0</minimum>
          <maximum>0.0</maximum>
          <bdresolution>0.1</bdresolution>
          <value>-36.5</value>
          <sliderWidth>150</sliderWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
          <objectName>ladspa_G2reverb_reverb time</objectName>
          <x>10</x>
          <y>80</y>
          <comment>reverb time in seconds</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>1.0</minimum>
          <maximum>20.0</maximum>
          <bdresolution>0.1</bdresolution>
          <value>6.8</value>
          <sliderWidth>150</sliderWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
          <objectName>ladspa_G2reverb_damping</objectName>
          <x>10</x>
          <y>170</y>
          <comment>cutoff frequency of filter</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>0.0</minimum>
          <maximum>1.0</maximum>
          <bdresolution>0.1</bdresolution>
          <value>0.5</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>210</y>
          <label>reflections</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>150</y>
          <label>dry sound</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>60</y>
          <label>room</label>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
          <objectName>ladspa_G2reverb_dry sound</objectName>
          <x>10</x>
          <y>140</y>
          <comment>direct signal</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>-80.0</minimum>
          <maximum>0.0</maximum>
          <bdresolution>0.1</bdresolution>
          <value>-61.8</value>
          <sliderWidth>150</sliderWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBFileSelector'>
          <objectName>ladspa_G2reverb_ladspa</objectName>
          <x>10</x>
          <y>10</y>
          <comment>set path for g2reverb.so</comment>
          <fileName>/usr/lib/ladspa/g2reverb.so</fileName>
          <textFieldWidth>250</textFieldWidth>
          <stringChannelEnabled>false</stringChannelEnabled>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
          <objectName>ladspa_G2reverb_input BW</objectName>
          <x>10</x>
          <y>110</y>
          <comment>filter the incoming signal</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>0.0</minimum>
          <maximum>1.0</maximum>
          <bdresolution>0.1</bdresolution>
          <value>0.4</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>240</y>
          <label>tail</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>damping</label>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
          <objectName>ladspa_G2reverb_reflections</objectName>
          <x>10</x>
          <y>200</y>
          <comment>number of reflections in dB</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>-80.0</minimum>
          <maximum>0.0</maximum>
          <bdresolution>0.1</bdresolution>
          <value>-21.799999999999997</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>90</y>
          <label>reverb time</label>
          <font>
            <name>System Regular</name>
            <size>12.0</size>
          </font>
        </bsbObject>
        <bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
          <objectName>ladspa_G2reverb_room</objectName>
          <x>10</x>
          <y>50</y>
          <comment>set dimension for room</comment>
          <automationAllowed>true</automationAllowed>
          <minimum>10.0</minimum>
          <maximum>150.0</maximum>
          <bdresolution>0.1</bdresolution>
          <value>59.5</value>
          <sliderWidth>150</sliderWidth>
          <randomizable>true</randomizable>
          <valueDisplayEnabled>true</valueDisplayEnabled>
        </bsbObject>
      </bsbObject>
    </bsbObject>
  </graphicInterface>
  <parameterList>
    <parameter uniqueId='-2056868862' name='ladspa_G2reverbON' 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='-2056868860' name='ladspa_G2reverb_tail' label='' min='-80.0' max='0.0' bdresolution='0.1' automationEnabled='false' value='-36.5'>
      <line name='' version='2' max='0.0' min='-80.0' bdresolution='0.1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='-36.5'/>
      </line>
    </parameter>
    <parameter uniqueId='-2056868858' name='ladspa_G2reverb_damping' label='' min='0.0' max='1.0' bdresolution='0.1' automationEnabled='false' value='0.5'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='0.1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.5'/>
      </line>
    </parameter>
    <parameter uniqueId='-2056868856' name='ladspa_G2reverb_reflections' label='' min='-80.0' max='0.0' bdresolution='0.1' automationEnabled='false' value='-21.799999999999997'>
      <line name='' version='2' max='0.0' min='-80.0' bdresolution='0.1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='-21.799999999999997'/>
      </line>
    </parameter>
    <parameter uniqueId='-2056868854' name='ladspa_G2reverb_dry sound' label='' min='-80.0' max='0.0' bdresolution='0.1' automationEnabled='false' value='-61.8'>
      <line name='' version='2' max='0.0' min='-80.0' bdresolution='0.1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='-61.8'/>
      </line>
    </parameter>
    <parameter uniqueId='-2056868852' name='ladspa_G2reverb_reverb time' label='' min='1.0' max='20.0' bdresolution='0.1' automationEnabled='false' value='6.8'>
      <line name='' version='2' max='20.0' min='1.0' bdresolution='0.1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='6.8'/>
      </line>
    </parameter>
    <parameter uniqueId='-2056868850' name='ladspa_G2reverb_input BW' label='' min='0.0' max='1.0' bdresolution='0.1' automationEnabled='false' value='0.4'>
      <line name='' version='2' max='1.0' min='0.0' bdresolution='0.1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='0.4'/>
      </line>
    </parameter>
    <parameter uniqueId='-2056868848' name='ladspa_G2reverb_room' label='' min='10.0' max='150.0' bdresolution='0.1' automationEnabled='false' value='59.5'>
      <line name='' version='2' max='150.0' min='10.0' bdresolution='0.1' color='-8355712' rightBound='false' endPointsLinked='false'>
        <linePoint x='0.0' y='59.5'/>
      </line>
    </parameter>
  </parameterList>
</effect>