Name

play()

Class

WhiteNoise

Description

Starts the noise

Examples

  • import processing.sound.*;
    WhiteNoise noise;
    
    void setup() {
      size(640, 360);
      background(255);
        
      // Create the noise generator
      noise = new WhiteNoise(this);
      noise.play();
    }      
    
    void draw() {
    }
    
    

Syntax

  • noise.play(amp)
  • noise.play(amp, pos)
  • noise.play(amp, add, pos)

Parameters

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

Return

  • void