Reference+
Name
stop()
Class
SawOsc
Description
Stop the oscillator from playing back
Examples
import processing.sound.*; SawOsc saw; void setup() { size(640, 360); background(255); // Create square wave oscillator. saw = new SawOsc(this); saw.play(); } void draw() { } void mousePressed() { saw.stop(); }
Syntax
oscillator.stop()
Return
void
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.