Open annopnod opened 6 years ago
change midifile.js
if (trackChunk.id != 'MTrk') { throw "Unexpected chunk - expected MTrk, got "+ trackChunk.id; }
if (headerChunk.id != 'MThd' || headerChunk.length != 6) { throw "Bad .mid file - header not found"; }
change trackChunk.id
String.fromCharCode.apply(null, trackChunk.id)
work it
IO.PrimitiveReader = function (data) { var arr = Array.from(new Uint8Array(data)); var fn = {}; var position = 0;