midi-stream
Duplex stream wrapper around midi module.
When required from the browser (using browserify) web-midi is returned instead.
Install
$ npm install midi-stream
Example
var MidiStream = var duplex = // clear lightsduplex // echo back the message to launchpadduplex // write buttons pressed to consoleduplex // paint a face after 10 seconds :)var faceCoords = 11 21 51 61 12 22 52 62 24 54 25 35 45 55 // wait 20 seconds then close the port ///// bonus round, second launchpad! ////var bonus = faceCoords