humanize-midimessage
MIDIMessageEvent is how your browser communicates signals from your MIDI devices. The event contains 3 bytes that correspond to various things in this table
That table isn't very readable by people like me so this library makes it readable by people like me.
Installation
$ npm install humanize-midimessage
Usage
In your HTML:
API
humanizeMidiMessageEvent(MIDIMessageEvent)
Takes a MIDIMessageEvent and returns a humanized object with this shape:
raw: 128 0 77 type: "Note On" note: 0 letter: "C" octave: 0 velocity: 030708661417322836
Example
Browser Support
Chrome
Hidden behind the Enable Web MIDI API (#enable-web-midi) flag in chrome://flags
.