cwilso / WebMIDIAPIShim

Polyfill using the Jazz NPAPI MIDI plugin to implement the Web MIDI API on Mac and Windows.
380 stars 53 forks source link

Splitting MIDI messages #51

Closed jazz-soft closed 9 years ago

jazz-soft commented 9 years ago

Noticed the problem with the Channel Aftertouch message: MIDI standard defines it as 2-byte message, e.g. [0xd0, 0x20], but on some systems (Windows) it can be 3 bytes, e.g. [0xd0, 0x20, 0x00]. Shim reports that as two messages: [0xd0, 0x20], [0x00], while it would better either report a 3-byte message or ignore the third byte.

cwilso commented 9 years ago

Dammit, Windows. :)