webmidiapi.js
// create MIDIInput and MIDIOutput instances for all initially connected MIDI devices
create MIDIInput and MIDIOutput instances for all initially connected MIDI devices
create MIDIInput and MIDIOutput instances for all initially connected MIDI devices
function createMIDIPorts(callback) {
    var inputs = jazzInstance.MidiInList();
    var outputs = jazzInstance.MidiOutList();
    var numInputs = inputs.length;
    var numOutputs = outputs.length;
    loopCreateMIDIPort(0, numInputs, 'input', inputs, function () {
        loopCreateMIDIPort(0, numOutputs, 'output', outputs, callback);
    });
}
function createMIDIPorts ( callback ) { var inputs = jazzInstance . MidiInList ( ) ; var outputs = jazzInstance . MidiOutList ( ) ; var numInputs = inputs . length ; var numOutputs = outputs . length ; loopCreateMIDIPort ( 0 , numInputs , 'input' , inputs , function ( ) { loopCreateMIDIPort ( 0 , numOutputs , 'output' , outputs , callback ) ; } ) ; }
create MIDIInput and MIDIOutput instances for all initially connected MIDI devices
create MIDIInput and MIDIOutput instances for all initially connected MIDI devices