web-midi
This module wraps the Web MIDI API into a stream interface.
Web MIDI is currently only available in Chrome, but this module can potentially be used in older browsers with the WebMIDIAPIShim.
For a serverside (Node) based version of the same API check out midi-stream.
Install
$ npm install web-midi
Example
var midi = var inStream = midivar outStream = midi inStream // send on noteoutStream // or use pipesvar anotherStream = midiinStream
Or create a duplex stream (assumes input and output ports are named the same thing)
var midi = var duplexStream = duplexStream // send on noteduplexStream // or use pipesvar anotherStream = duplexStream