Name

stop()

Class

BandPass

Description

Stop the effect.

Examples

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

Syntax

  • effect.stop()

Return

  • void