Deprecated, please Chris Wilson’s WebMIDIAPI Shim
I made a NPAPI browser plugin that gives you access to the MIDI devices connected to your computer directly from within your browser. The plugin is built with the JUCE library.
In the zip you find the plugin file and a simple test page. The comments in main.js explain how to use the plugin and its API. In the README file you’ll find instructions on how to install the plugin in various browsers. Currently on OSX Chrome and Safari are supported, and on Windows Chrome is supported.
The API of the plugin is rather basic:
getMIDIInputs() -> retrieves MIDI inputs as a single string, devices are separated by a comma
getMIDIOutputs() -> retrieves MIDI outputs as a single string, devices are separated by a comma
addConnection(int inputId, int outputId) -> establishes a connection between the specified MIDI devices, the id of the device corresponds to the position of the device in the string as retrieved by one of the methods above
cleanup() -> clears all current connections
Eventually, the MIDI plugin will replace the Midibridge.
And the plugin will be redundant as soon as browsers support MIDI natively 😉
Note: if your project only needs to connect to MIDI outputs, the Jazz plugin might be more appropriate for you!