Created
May 21, 2015 02:40
-
-
Save colinbdclark/5b0ebc54e36addf1bb8c to your computer and use it in GitHub Desktop.
Basic Flocking MIDI with the Akai LPD8 Controller
This file contains 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 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