Skip to content

Instantly share code, notes, and snippets.

@mohayonao
Last active December 17, 2015 23:19
Show Gist options
  • Save mohayonao/5688441 to your computer and use it in GitHub Desktop.
Save mohayonao/5688441 to your computer and use it in GitHub Desktop.
SinOsc.ar(440)
// => SinOsc.ar(440)
SinOsc.ar([440, 880])
// => [ SinOsc.ar(440), SinOsc.ar(880) ]
SinOsc.ar([440, 880], mul:(1..4), add:[0, 10])
// => [ SinOsc.ar(440, mul:1, add:0), SinOsc.ar(880, mul:2, add:10), SinOsc.ar(440, mul:3, add:0), SinOsc.ar(880, mul:4, add:10) ]
SinOsc.ar(440, mul:0.5)
// => SinOsc.ar(440) * 0.5
SinOsc.ar(440, mul:0.5, add:100)
// => MulAdd(SinOsc.ar(440), 0.5, 100)
SinOsc.ar([440, 880], mul:(1..4), add:[0, 10])
// => [ SinOsc.ar(440), MulAdd(SinOsc.ar(880), 2, 10), SinOsc.ar(440) * 3, MulAdd(SinOsc.ar(880), 4, 10) ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment