Skip to content

Instantly share code, notes, and snippets.

@colinbdclark
Created July 5, 2013 16:27
Show Gist options
  • Save colinbdclark/5935676 to your computer and use it in GitHub Desktop.
Save colinbdclark/5935676 to your computer and use it in GitHub Desktop.
Creating Flocking synths in the Infusion IoC style
fluid.defaults("colin.sinSynth", {
gradeNames: ["flock.synth", "autoInit"],
synthDef: {
ugen: "flock.ugen.sinOsc",
freq: 440,
mul: 0.25
}
});
fluid.defaults("colin.orchestra", {
gradeNames: ["fluid.littleComponent", "autoInit"],
components: {
synth1: {
type: "colin.sinSynth"
},
synth2: {
type: "colin.sinSynth",
options: {
synthDef: {
freq: 640
}
}
}
}
});
var orc = colin.orchestra();
@GitXome
Copy link

GitXome commented Apr 8, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment