<effect>
  <name>spectral filter</name>
  <enabled>true</enabled>
  <numIns>2</numIns>
  <numOuts>2</numOuts>
  <code>
itablel	ftgen 0, 0, 513, -7, &lt;filter_freqL&gt;
itabler	ftgen 0, 0, 513, -7, &lt;filter_freqR&gt;

if (&lt;swap&gt; == 1) then
	itableL = itablel
	itableR = itabler
	else 
	itableL = itabler
	itableR = itablel
endif


fsig1    pvsanal   ain1, 1024, 256, 1024, 1
fsig2    pvsanal   ain2, 1024, 256, 1024, 1

ffilt1  pvsmaska fsig1,itableL,1  
ffilt2  pvsmaska fsig2,itableR,1

aout1  pvsynth  ffilt1
aout2  pvsynth  ffilt2



</code>
  <comments>Spectral filtering using Victor Lazzarini&apos;s pvsmaska.</comments>
  <opcodeList/>
  <graphicInterface editEnabled='false'>
    <uniqueNameManager nameIndex='-1' defaultPrefix='bsbObj'/>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBLineObject'>
      <objectName>filter</objectName>
      <x>8</x>
      <y>16</y>
      <canvasWidth>500</canvasWidth>
      <canvasHeight>200</canvasHeight>
      <xMax>513.0</xMax>
      <relativeXValues>true</relativeXValues>
      <separatorType>Comma</separatorType>
      <leadingZero>false</leadingZero>
      <locked>false</locked>
      <lines>
        <line name='freqL' version='2' max='1.0' min='0.0' resolution='-1.0' color='-14623488' rightBound='true'>
          <linePoint x='0.0' y='0.0'/>
          <linePoint x='0.045081966' y='1.0'/>
          <linePoint x='0.352459' y='0.8244681'/>
          <linePoint x='0.48565573' y='0.0'/>
          <linePoint x='1.0' y='0.0'/>
        </line>
        <line name='freqR' version='2' max='1.0' min='0.0' resolution='-1.0' color='-16776961' rightBound='true'>
          <linePoint x='0.0' y='0.0'/>
          <linePoint x='0.045081966' y='0.12765956'/>
          <linePoint x='0.10655738' y='1.0'/>
          <linePoint x='1.0' y='1.0'/>
        </line>
      </lines>
    </bsbObject>
    <bsbObject type='blue.orchestra.blueSynthBuilder.BSBCheckBox'>
      <objectName>swap</objectName>
      <x>455</x>
      <y>237</y>
      <label>swap</label>
      <selected>false</selected>
      <randomizable>true</randomizable>
    </bsbObject>
  </graphicInterface>
  <bsbParameterList/>
</effect>