Skip to content

Instantly share code, notes, and snippets.

@colinbdclark
Created January 10, 2015 17:37
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 colinbdclark/e9dfd34f7f9cf8f9c0f4 to your computer and use it in GitHub Desktop.
Save colinbdclark/e9dfd34f7f9cf8f9c0f4 to your computer and use it in GitHub Desktop.
Moog triplet bassline
var freq = 1;
flock.synth({
synthDef: {
ugen: "flock.ugen.filter.moog",
cutoff: {
ugen: "flock.ugen.lfNoise",
freq: freq,
mul: 5000,
add: 5000,
options: {
interpolation: "linear"
}
},
resonance: {
ugen: "flock.ugen.sequence",
freq: freq,
list: [2, 3, 5, 10],
loop: 1.0
},
source: {
ugen: "flock.ugen.lfSaw",
freq: {
ugen: "flock.ugen.lfNoise",
freq: freq,
mul: 60,
add: 120
},
mul: {
ugen: "flock.ugen.envGen",
envelope: "flock.envelope.adsr",
gate: {
ugen: "flock.ugen.lfPulse",
width: 0.99,
freq: {
ugen: "flock.ugen.sequence",
freq: freq,
list: [1, 2, 3, 4, 2, 1, 3],
loop: 1.0
}
},
mul: 0.25
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment