I am trying to initialize MIDI.js with a glockenspiel instead of the default acoustic piano. But I am getting no sounds
I have glockenspiel-ogg.js and glockenspiel-mp3.js (downloaded from https://github.com/gleitz/midi-js-soundfonts ) in a directory called soundfont.
I am running the following code on window.onload. Where am I going wrong?
MIDI.loadPlugin({
soundfontUrl: "soundfont/",
instrument: "glockenspiel",
callback: function() {
MIDI.programChange(0, 10);
MIDI.noteOn(0, 35, 127, 0);
}
});