Skip to content

Instantly share code, notes, and snippets.

@mohayonao
Last active December 25, 2015 18:59
Show Gist options
  • Save mohayonao/7024629 to your computer and use it in GitHub Desktop.
Save mohayonao/7024629 to your computer and use it in GitHub Desktop.
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"
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"
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