Deprecated, please use 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. You can download the plugin from Github or directly from here. 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 The coming months i will implement the API as described in the W3C proposal of Jussi Kalliokoski. You can read his proposal on Github. 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!