Is it possible to have two or more MIDI.js
Player
's on a page?
This seems to create and then populate only one MIDI object, regardless of how many elements of class nmidiplayer
there are:
$(document).ready(function() {
$('.nmidiplayer').each(npMIDIPlayer);
});
function npMIDIPlayer(idx, elem) {
var midi = MIDI;
// ....
}
Please, it it possible with MIDI.js
? How?