Created
December 8, 2015 05:20
-
-
Save bennlich/7971669a74526247d3c9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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