Class Noise<JSynNoise extends UnitGenerator>

java.lang.Object
processing.sound.SoundObject
processing.sound.Noise<JSynNoise>
Direct Known Subclasses:
BrownNoise, PinkNoise, WhiteNoise

public abstract class Noise<JSynNoise extends UnitGenerator> extends SoundObject
Common superclass of all noise generators
  • 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