Name

stop()

Class

Pulse

Description

Stop the oscillator from playing back

Examples

  • import processing.sound.*;
    Pulse pulse;
    
    void setup() {
      size(640, 360);
      background(255);
        
      // Create the pulse oscillator
      pulse = new Pulse(this);
      pulse.play();
    }      
    
    void draw() {
    }
    
    void mousePressed() {
      pulse.stop();
    }
    
    

Syntax

  • oscillator.stop()

Return

  • void