Skip to content

Instantly share code, notes, and snippets.

@colinbdclark
Created May 21, 2015 02:40
Show Gist options
  • Save colinbdclark/5b0ebc54e36addf1bb8c to your computer and use it in GitHub Desktop.
Save colinbdclark/5b0ebc54e36addf1bb8c to your computer and use it in GitHub Desktop.
Basic Flocking MIDI with the Akai LPD8 Controller
var synth = flock.synth({
synthDef: {
ugen: "flock.ugen.sin",
freq: {
id: "freq",
ugen: "flock.ugen.midiFreq",
source: 60
}
}
});
window.midiConnection = flock.midi.connection({
openImmediately: true,
ports: {
input: "LPD8"
},
listeners: {
control: function (msg) {
synth.set("freq.source", msg.value);
console.log("Control:", msg);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment