midiparse.js: error reporting