Skip to content

Instantly share code, notes, and snippets.

@mohayonao
Created October 16, 2013 08:26
Show Gist options
  • Save mohayonao/7004448 to your computer and use it in GitHub Desktop.
Save mohayonao/7004448 to your computer and use it in GitHub Desktop.
s = Synth.def (freq=440, amp=1)->
Out.ar(0, SinOsc.ar([freq, freq * 1.05]) * amp)
.play()
l = Task.loop ->
freq = Math.random() * 880 + 220
s.set freq:freq * 1, amp:1
@wait 300
s.set freq:freq * 2, amp:0.25
@wait 300
s.set freq:freq * 1, amp:0.5
@wait 200
.play()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment