A node js midi data parser that blisfully ignores all hardware and networking.
This is a work in progress.
The midi-parser library is a node event emitter. You write midi commands in buffers and it emits both
The sysex events are unwrapped of their header and footer bytes and proveded as is. Since any multibyte data (eg strings) or values over 127 need to be "14 bit encoded". The class methods
encodeString are available.
The Midi handling is subject to change. Currently they are emitted as is on the
midi event. However the difference between channel and system commands and commands without data is still being worked out. Currently as long as data is continuing to be sent, all events will emit. However if you have a 1 byte command as the final command the parser will wait until another command is recieved before emitting that one.