Skip to content

Instantly share code, notes, and snippets.

@bennlich
Created December 8, 2015 05:20
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 bennlich/7971669a74526247d3c9 to your computer and use it in GitHub Desktop.
Save bennlich/7971669a74526247d3c9 to your computer and use it in GitHub Desktop.
var customEnvelope = {
levels: [0, 1, 0],
times: [0.5, 0.5]
};
var gateDef = {
ugen: "flock.ugen.sequencer",
durations: [1, 1, 1],
values: [1, 1, 1],
options: {
resetOnNext: true
}
};
flock.synth({
synthDef: {
ugen: "flock.ugen.sinOsc",
freq: 270,
mul: {
ugen: "flock.ugen.envGen",
rate: "control",
envelope: customEnvelope,
gate: gateDef
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment