Class Flanger


public class Flanger extends SoundEffectData
The flanger effect creates a “tearing” or “whooshing” sound (like a jet flying overhead). It works by sampling a portion of the input signal, delaying it by a period modulated between 0 and 4ms by a low-frequency oscillator, and then mixing it with the source signal.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    float
    Range: 0.0 - 0.004, Default: 0.002
    The average amount of time the sample is delayed before it is played back; with feedback, the amount of time between iterations of the sample.
    float
    Range: 0.0 - 1.0, Default: 1.0
    The ratio by which the delay time is modulated by the LFO.
    float
    Range: -1.0 - 1.0, Default: -0.5
    This is the amount of the output signal level fed back into the effect’s input.
    int
    Range: -180 - 180, Default: 0
    This changes the phase difference between the left and right LFO’s.
    float
    Range: 0.0 - 10.0, Default: 0.27
    The number of times per second the LFO controlling the amount of delay repeats.
    int
    0 = sinusoid, 1 = triangle
    Selects the shape of the LFO waveform that controls the amount of the delay of the sampled signal.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    apply(int effectId)
     
    boolean
     
    int
     
    static Flanger
     
    static Flanger
     
    static Flanger
     
     

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • waveform

      public int waveform
      0 = sinusoid, 1 = triangle
      Selects the shape of the LFO waveform that controls the amount of the delay of the sampled signal. Zero is a sinusoid and one is a triangle.
    • phase

      public int phase
      Range: -180 - 180, Default: 0
      This changes the phase difference between the left and right LFO’s. At zero degrees the two LFOs are synchronized.
    • rate

      public float rate
      Range: 0.0 - 10.0, Default: 0.27
      The number of times per second the LFO controlling the amount of delay repeats. Higher values increase the pitch modulation.
    • depth

      public float depth
      Range: 0.0 - 1.0, Default: 1.0
      The ratio by which the delay time is modulated by the LFO. Use this parameter to increase the pitch modulation.
    • feedback

      public float feedback
      Range: -1.0 - 1.0, Default: -0.5
      This is the amount of the output signal level fed back into the effect’s input. A negative value will reverse the phase of the feedback signal. Use this parameter to create an “intense metallic” effect. At full magnitude, the identical sample will repeat endlessly. At less than full magnitude, the sample will repeat and fade out over time.
    • delay

      public float delay
      Range: 0.0 - 0.004, Default: 0.002
      The average amount of time the sample is delayed before it is played back; with feedback, the amount of time between iterations of the sample.
  • Constructor Details

    • Flanger

      public Flanger()
  • Method Details