Last active
December 25, 2015 18:59
-
-
Save mohayonao/7024629 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
s = Synth.def (freq)-> | |
Out.ar(0, SinOsc.ar(freq)) | |
.play() | |
Task.do -> | |
s.set freq:880 | |
@wait 1000 | |
.play().then -> | |
Task.do -> | |
s.set freq:440 | |
@wait 1000 | |
.play().then -> | |
Task.do -> | |
s.set freq:660 | |
@wait 1000 | |
.play() | |
.on "end", -> | |
console.log "end" |
This file contains hidden or 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
s = Synth.def (freq)-> | |
Out.ar(0, SinOsc.ar(freq)) | |
.play() | |
Task.do -> | |
s.set freq:880 | |
@wait 1000 | |
.play().then.do -> | |
s.set freq:440 | |
@wait 1000 | |
.play().then.do -> | |
s.set freq:660 | |
@wait 1000 | |
.on "end", -> | |
console.log "end" |
This file contains hidden or 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
s = Synth.def (freq)-> | |
Out.ar(0, SinOsc.ar(freq)) | |
.play() | |
Task.do -> | |
s.set freq:880 | |
@wait 1000 | |
.do -> | |
s.set freq:440 | |
@wait 1000 | |
.do -> | |
s.set freq:660 | |
@wait 1000 | |
.on "end", -> | |
console.log "end" | |
.play() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment