Skip to content

Instantly share code, notes, and snippets.

@matschaffer
Created October 5, 2010 12:44
Show Gist options
  • Save matschaffer/611486 to your computer and use it in GitHub Desktop.
Save matschaffer/611486 to your computer and use it in GitHub Desktop.
public class Player {
SinOsc s => dac;
440 => s.freq;
0.5 => s.gain;
fun void play() {
3::second => now;
}
}
fun void playfn() {
Player p;
p.play();
}
Machine.add("lib.ck");
Player player;
player.play();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment