You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems when you load a midi file from a URL it fails due to DOM Exception 5 - this is down to the attempt to convert from ASCII to binary.
Not sure you need to? Commenting out the line got the midi files playing?
fetch.onreadystatechange = function () {
if (this.readyState === 4 && this.status === 200) {
var t = this.responseText || "";
var ff = [];
var mx = t.length;
var scc = String.fromCharCode;
for (var z = 0; z < mx; z++) {
ff[z] = scc(t.charCodeAt(z) & 255);
}
console.log(ff.join(""));
var data = ff.join("");
//var data = window.atob(ff.join(""));
root.currentData = data;
root.loadMidiFile();
if (callback) callback(data);
}
};
fetch.send();
The text was updated successfully, but these errors were encountered:
Thanks for the heads up! Sloppy coding on my part, must of gotten messed up while switching everything to base64 encoding. I'm pushing this update to the main repo.
Seems when you load a midi file from a URL it fails due to DOM Exception 5 - this is down to the attempt to convert from ASCII to binary.
Not sure you need to? Commenting out the line got the midi files playing?
The text was updated successfully, but these errors were encountered: