Interacting with a Novation Launchpad from your browser with the web MIDI API.
Install LaunchpadJS with bower via the following command
bower install --save LaunchpadJS
or download a distribution from releases.
Include launchpad.min.js
in your html page
<script src="bower_components/LaunchpadJS/launchpad.min.js"></script>
Hook your Lauchpad or Launchpad Mini up to your computer and start writing an application. E.g. the following snippet turns on each button that is pressed to red.
launchpad.connect().then(function(pad){
pad.clear();
pad.on('press', function(button){
button.turn('red');
});
});
Now open your page in Chrome the only browser that natively implements the Web Midi API at the moment.
See the wiki for an overview of the API
See the issues, for things to work on.
The Novation Launchpad had an excellent programmers reference.