Skip to content

Instantly share code, notes, and snippets.

@mohayonao
Last active December 25, 2015 16:09
Show Gist options
  • Save mohayonao/7004000 to your computer and use it in GitHub Desktop.
Save mohayonao/7004000 to your computer and use it in GitHub Desktop.
s = Synth.def (freq)->
Out.ar(0, SinOsc.ar(freq))
.play()
Task.loop ->
s.set freq:440
@wait 1000
t = Task.each [1,2,3], (i)->
s.set freq:(660 * i)
@wait 250
.play()
@wait t
s.set freq:880
@wait 500
.play()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment