Name

stop()

Class

WhiteNoise

Description

Stop the noise from playing back

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() {
    }
    
    void mousePressed() {
      noise.stop();
    }
    
    

Syntax

  • noise.stop()

Return

  • void