Class DistortionEffect


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

    • edge

      protected float edge
      Distortion edge.
    • gain

      protected float gain
      Distortion gain.
    • lowPassCutoff

      protected float lowPassCutoff
      Distortion low-pass cutoff in Hertz.
    • eqCenter

      protected float eqCenter
      Distortion equalizer centering in Hertz.
    • eqBandwidth

      protected float eqBandwidth
      Distortion equalizer bandwidth in Hertz.
  • Constructor Details

    • DistortionEffect

      public DistortionEffect(OALContext context)
  • Method Details

    • getGain

      public final float getGain()
      Returns:
      the current distortion gain.
    • setGain

      public final void setGain(float gain)
      Set distortion gain (0.01 to 1.0).
      Parameters:
      gain - the new value.
    • getEdge

      public final float getEdge()
      Returns:
      the current distortion edge.
    • setEdge

      public final void setEdge(float edge)
      Set distortion edge (0.0 to 1.0).
      Parameters:
      edge - the new value.
    • getEqualizerBandwidth

      public final float getEqualizerBandwidth()
      Returns:
      the current distortion equalizer bandwidth in Hertz.
    • setEqualizerBandwidth

      public final void setEqualizerBandwidth(float eqBandwidth)
      Set distortion equalizer bandwidth in Hertz (80.0 to 24000.0).
      Parameters:
      eqBandwidth - the new value.
    • getEqualizerCenter

      public final float getEqualizerCenter()
      Returns:
      the current distortion equalizer centering in Hertz.
    • setEqualizerCenter

      public final void setEqualizerCenter(float eqCenter)
      Set distortion equalizer centering in Hertz (80.0 to 24000.0).
      Parameters:
      eqCenter - the new value.
    • getLowPassCutoff

      public final float getLowPassCutoff()
      Returns:
      the current distortion low-pass cutoff in Hertz.
    • setLowPassCutoff

      public final void setLowPassCutoff(float lowPassCutoff)
      Set distortion low-pass cutoff in Hertz (80.0 to 24000.0).
      Parameters:
      lowPassCutoff - the new value.