Written for the JSUnconf.eu 2015 presentation "Making Noise with Web Audio and Web MIDI"
© Jan 'half/byte' Krutisch
All examples should work from local disk, so to run them, simply clone the Repo and open examples in your Browser.
The Web MIDI API is still pretty much a moving target so currently this only works in Chrome Canary (at least out of the box). As this was written in a hurry, I didn't try to make this running using Chris' Web MIDI shim.
A minimal example on how to initialize the API and send and receive MIDI events.
Open up the console and monitor incoming midi data. Good for debugging.
A demo to drive the Web Audio API with MIDI
A simple sequencer that drives any connected synthesizer.
An example of driving some simple canvas drawing by MIDI commands. You probably need to adapt the MIDI controller numbers.