Skip to content

Instantly share code, notes, and snippets.

@colinbdclark
Created June 4, 2013 16:21
Show Gist options
  • Save colinbdclark/5707308 to your computer and use it in GitHub Desktop.
Save colinbdclark/5707308 to your computer and use it in GitHub Desktop.
Sharing and extending SynthDefs
fluid.defaults("colin.am", {
gradeNames: ["flock.synth", "autoInit"],
synthDef: {
id: "carrier",
ugen: "flock.ugen.sinOsc",
freq: 440,
mul: {
id: "mod",
ugen: "flock.ugen.sinOsc",
rate: "control",
freq: 1.0,
mul: 0.25
}
}
});
fluid.defaults("mcld.amFm", {
gradeNames: ["flock.synth", "colin.am", "autoInit"],
synthDef: {
add: {
id: "modulator",
ugen: "flock.ugen.sinOsc",
freq: {
ugen: "flock.ugen.mouse.cursor",
rate: "control",
add: 60,
mul: 160
}
}
}
});
var synth = mcld.amFm();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment