Name

stop()

Class

LowPass

Description

Stop the effect.

Examples

  • import processing.sound.*;
    
    WhiteNoise noise;
    LowPass lowPass;
    
    void setup() {
      size(640,360);
      background(255);
        
      // Create a noise generator and a bandpass filter
      noise = new WhiteNoise(this);
      lowPass = new LowPass(this);
        
      noise.play(0.5);
      lowPass.process(noise, 5000);
    }      
    
    void draw() {
    }
    
    void mousePressed() {	
      //stop the noise generator and the filter
      noise.stop();
      lowPass.stop();
    }
    
    

Syntax

  • effect.stop()

Return

  • void