Created
October 5, 2010 12:44
-
-
Save matschaffer/611486 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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