Skip to content

Instantly share code, notes, and snippets.

@memish
Created September 30, 2018 19:38
Show Gist options
  • Select an option

  • Save memish/937c690327ba01aa6f1a81913da21078 to your computer and use it in GitHub Desktop.

Select an option

Save memish/937c690327ba01aa6f1a81913da21078 to your computer and use it in GitHub Desktop.
import processing.sound.*;
SinOsc sine;
void setup() {
size(640, 360);
background(255);
// Create the sine oscillator
sine = new SinOsc(this);
sine.play();
sine.freq(440);
//440 A above middle C
}
void draw() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment