update libraries to latest

This commit is contained in:
Michael Deal 2012-11-06 13:06:08 -08:00
parent 5f6984123f
commit bec7710bdc
9 changed files with 240 additions and 105 deletions

View file

@ -60,12 +60,12 @@ MIDI.loadPlugin = function(callback, instrument) {
// works well in Firefox
DOMLoader.sendRequest({
url: "./soundfont/soundfont-" + filetype + instrument + ".js",
callback: function (response) {
onload: function (response) {
MIDI.Soundfont = JSON.parse(response.responseText);
if (loader) loader.message("Downloading: 100%<br>Processing...");
MIDI.HTML5.connect(callback);
},
progress: function (evt) {
onprogress: function (evt) {
var percent = evt.loaded / 1719931 * 100 >> 0;
if (loader) loader.message("Downloading: " + (percent + "%"));
}
@ -75,12 +75,12 @@ MIDI.loadPlugin = function(callback, instrument) {
// works well in Chrome
DOMLoader.sendRequest({
url: "./soundfont/soundfont-" + filetype + instrument + ".js",
callback: function(response) {
onload: function(response) {
MIDI.Soundfont = JSON.parse(response.responseText);
if (loader) loader.message("Downloading: 100%<br>Processing...");
MIDI.WebAudioAPI.connect(callback);
},
progress: function (evt) {
onprogress: function (evt) {
var percent = evt.loaded / 1719931 * 100 >> 0;
if (loader) loader.message("Downloading: " + (percent + "%"));
}