Multiple MIDI.js Players on single page?

51 Views Asked by At

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?

0

There are 0 best solutions below