Class EqualizerEffect


public class EqualizerEffect extends OALEffect
Equalizer effect for sound sources.
Author:
Matthew Tropiano
  • Field Details

    • lowGain

      protected float lowGain
      Equalizer low gain.
    • lowCutoff

      protected float lowCutoff
      Equalizer low cutoff in Hertz.
    • mid1Gain

      protected float mid1Gain
      Equalizer first mid gain.
    • mid1Center

      protected float mid1Center
      Equalizer first mid center in Hertz.
    • mid1Width

      protected float mid1Width
      Equalizer first mid width.
    • mid2Gain

      protected float mid2Gain
      Equalizer second mid gain.
    • mid2Center

      protected float mid2Center
      Equalizer second mid center in Hertz.
    • mid2Width

      protected float mid2Width
      Equalizer second mid width.
    • highGain

      protected float highGain
      Equalizer high gain.
    • highCutoff

      protected float highCutoff
      Equalizer high cutoff in Hertz.
  • Constructor Details

    • EqualizerEffect

      public EqualizerEffect(OALContext context)
  • Method Details

    • getHighCutoff

      public final float getHighCutoff()
      Returns:
      the current equalizer high cutoff in Hertz.
    • setHighCutoff

      public final void setHighCutoff(float highCutoff)
      Set equalizer high cutoff in Hertz (4000.0 to 16000.0).
      Parameters:
      highCutoff - the new value.
    • getHighGain

      public final float getHighGain()
      Returns:
      the current equalizer high gain.
    • setHighGain

      public final void setHighGain(float highGain)
      Set equalizer high gain (0.126 to 7.943).
      Parameters:
      highGain - the new value.
    • getLowCutoff

      public final float getLowCutoff()
      Returns:
      the current equalizer low cutoff in Hertz.
    • setLowCutoff

      public final void setLowCutoff(float lowCutoff)
      Set equalizer low cutoff in Hertz (50.0 to 800.0).
      Parameters:
      lowCutoff - the new value.
    • getLowGain

      public final float getLowGain()
      Returns:
      the current equalizer low gain.
    • setLowGain

      public final void setLowGain(float lowGain)
      Set equalizer low gain (0.126 to 7.943).
      Parameters:
      lowGain - the new value.
    • getMid1Center

      public final float getMid1Center()
      Returns:
      the current equalizer first mid center in Hertz.
    • setMid1Center

      public final void setMid1Center(float mid1Center)
      Set equalizer first mid center in Hertz (200.0 to 3000.0).
      Parameters:
      mid1Center - the new value.
    • getMid1Gain

      public final float getMid1Gain()
      Returns:
      the current equalizer first mid gain.
    • setMid1Gain

      public final void setMid1Gain(float mid1Gain)
      Set equalizer first mid gain (0.126 to 7.943).
      Parameters:
      mid1Gain - the new value.
    • getMid1Width

      public final float getMid1Width()
      Returns:
      the current equalizer first mid width.
    • setMid1Width

      public final void setMid1Width(float mid1Width)
      Set equalizer first mid width (0.01 to 1.0).
      Parameters:
      mid1Width - the new value.
    • getMid2Center

      public final float getMid2Center()
      Returns:
      the current equalizer second mid center in Hertz.
    • setMid2Center

      public final void setMid2Center(float mid2Center)
      Set equalizer second mid center in Hertz (1000.0 to 8000.0).
      Parameters:
      mid2Center - the new value.
    • getMid2Gain

      public final float getMid2Gain()
      Returns:
      the current equalizer second mid gain.
    • setMid2Gain

      public final void setMid2Gain(float mid2Gain)
      Set equalizer second mid gain (0.126 to 7.943).
      Parameters:
      mid2Gain - the new value.
    • getMid2Width

      public final float getMid2Width()
      Returns:
      the current equalizer second mid width.
    • setMid2Width

      public final void setMid2Width(float mid2Width)
      Set equalizer second mid width (0.01 to 1.0).
      Parameters:
      mid2Width - the new value.