Package processing.sound
Class Noise<JSynNoise extends UnitGenerator>
java.lang.Object
processing.sound.SoundObject
processing.sound.Noise<JSynNoise>
- Direct Known Subclasses:
BrownNoise,PinkNoise,WhiteNoise
Common superclass of all noise generators
-
Method Summary
Modifier and TypeMethodDescriptionvoidplay(float amp) voidplay(float amp, float pos) Starts the noisevoidplay(float amp, float add, float pos) voidset(float amp, float pos) Set the amplitude and panoramic position with one method.voidset(float amp, float add, float pos) Deprecated.voidstop()Stop the noise from playing backMethods inherited from class processing.sound.SoundObject
add, amp, channels, getUnitGenerator, isPlaying, pan, play
-
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:
stopin classSoundObject
-