Skip to content

Instantly share code, notes, and snippets.

@x37v
Created April 30, 2017 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save x37v/77e643557a02a41616ca5bb2eb426741 to your computer and use it in GitHub Desktop.
Save x37v/77e643557a02a41616ca5bb2eb426741 to your computer and use it in GitHub Desktop.
s = Server.default.boot;
(
SynthDef(\blah, { |out = 0, gate = 1|
Out.ar(out, SinOsc.ar(423) * EnvGen.ar(Env.adsr, gate), 0);
}).add;
)
x = Synth.new(\blah);
x.set(\gate, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment