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 TypeMethodDescriptionvoid
play
(float amp) void
play
(float amp, float pos) Starts the noisevoid
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) Deprecated.void
stop()
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:
stop
in classSoundObject
-