Direct Known Subclasses:
BrownNoise, PinkNoise, WhiteNoise

Common superclass of all noise generators

  • Method Summary

    void

    play(float amp)

    void

    play(float amp, float pos)

    void

    play(float amp, float add, float pos)

    void

    set(float amp, float pos)

    Set the amplitude and panoramic position with one method.

    void

    set(float amp, float add, float pos)

    void

    stop()

    Stop the noise from playing back

  • Method Details

    • play

      public void play(float amp)

    • play

      public void play(float amp, float pos)

      Starts the noise

      Parameters:
      amp - The amplitude of the noise as a value between 0.0 and 1.0.
      pos - The panoramic position of the noise as a float from -1.0 to 1.0.
    • play

      public void play(float amp, float add, float pos)

    • set

      public void set(float amp, float pos)

      Set the amplitude and panoramic position with one method.

      Parameters:
      amp - The amplitude of the noise as a value between 0.0 and 1.0.
      pos - The panoramic position of the noise as a float from -1.0 to 1.0.
    • set

      public void set(float amp, float add, float pos)

      Deprecated.

    • stop

      public void stop()

      Stop the noise from playing back

      Overrides:
      stop in class SoundObject