Class Chorus


public class Chorus extends SoundEffectData
The chorus effect essentially replays the input audio accompanied by another slightly delayed version of the signal, creating a ‘doubling’ effect. This was originally intended to emulate the effect of several musicians playing the same notes simultaneously, to create a thicker, more satisfying sound. To add some variation to the effect, the delay time of the delayed versions of the input signal is modulated by an adjustable oscillating waveform. This causes subtle shifts in the pitch of the delayed signals, emphasizing the thickening effect.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    float
    Range: 0.0 - 0.016, Default: 0.016
    This property controls the average amount of time the sample is delayed before it is played back, and with feedback, the amount of time between iterations of the sample.
    float
    Range: 0.0 - 1.0, Default: 0.1
    This property controls the amount by which the delay time is modulated by the LFO.
    float
    Range: -1.0 - 1.0, Default: 0.25
    This property controls the amount of processed signal that is fed back to the input of the chorus effect.
    int
    Range: -180 - 180, Default: 90
    This property controls the phase difference between the left and right LFO’s.
    float
    Range: 0.0 - 10.0, Default: 1.1
    This property sets the modulation rate of the LFO that controls the delay time of the delayed signals.
    int
    0 = sinusoid, 1 = triangle
    This property sets the waveform shape of the LFO that controls the delay time of the delayed signals.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

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

    Methods inherited from class Object

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

    • waveForm

      public int waveForm
      0 = sinusoid, 1 = triangle
      This property sets the waveform shape of the LFO that controls the delay time of the delayed signals.
    • phase

      public int phase
      Range: -180 - 180, Default: 90
      This property controls the phase difference between the left and right LFO’s. At zero degrees the two LFOs are synchronized. Use this parameter to create the illusion of an expanded stereo field of the output signal.
    • rate

      public float rate
      Range: 0.0 - 10.0, Default: 1.1
      This property sets the modulation rate of the LFO that controls the delay time of the delayed signals.
    • depth

      public float depth
      Range: 0.0 - 1.0, Default: 0.1
      This property controls the amount by which the delay time is modulated by the LFO.
    • feedback

      public float feedback
      Range: -1.0 - 1.0, Default: 0.25
      This property controls the amount of processed signal that is fed back to the input of the chorus effect. Negative values will reverse the phase of the feedback signal. At full magnitude the identical sample will repeat endlessly. At lower magnitudes the sample will repeat and fade out over time. Use this parameter to create a “cascading” chorus effect.
    • delay

      public float delay
      Range: 0.0 - 0.016, Default: 0.016
      This property controls the average amount of time the sample is delayed before it is played back, and with feedback, the amount of time between iterations of the sample. Larger values lower the pitch. Smaller values make the chorus sound like a flanger, but with different frequency characteristics.
  • Constructor Details

    • Chorus

      public Chorus()
  • Method Details

    • chore

      public static Chorus chore()
    • voiceBreak

      public static Chorus voiceBreak()
    • goofy

      public static Chorus goofy()
    • goofyRobot

      public static Chorus goofyRobot()
    • apply

      protected void apply(int effectId)
      Specified by:
      apply in class SoundEffectData
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object