jasmid icon indicating copy to clipboard operation
jasmid copied to clipboard

expose MidiFile.readEvent() to parse the event from midi input device

Open garzon opened this issue 9 years ago • 0 comments

I think this method is reusable and it just looks like a public static method. So I expose it. It can be used to parse the raw midi message. :)

Usage: var data = Stream(asciiArray2BinaryString([0x50, 0x90, 0x60, 0x60])); // 0x50 is a dummy placeholder, corresponding to deltatime var event = MidiFile().readEvent(data); console.log(event.subtype); // 'noteOn'

garzon avatar Sep 15 '15 02:09 garzon