Skip to content

Instantly share code, notes, and snippets.

@mohayonao
Last active December 26, 2015 07:59
Show Gist options
  • Save mohayonao/7119348 to your computer and use it in GitHub Desktop.
Save mohayonao/7119348 to your computer and use it in GitHub Desktop.
mouse
Synth.def ->
freq = MouseY.kr(1760, 220, "exponential")
mod = SinOsc.ar(freq * MouseButton.kr(1, 2, lag:1), mul:MouseX.kr(0, 20, "exponential"))
Out.ar(0, CombL.ar(SinOsc.ar([freq, freq*1.01], phase:mod), decaytime:5))
.play()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment