8. var outputs = [];
navigator.requestMIDIAccess().then(function(midi){
var ot = midi.outputs.values();
for(var o = ot.next(); !o.done; o = ot.next()){
outputs.push(o.value);
}
}
function sendMIDINoteOn(note,velocity){
for(var i=0;i<outputs.length;i++){
outputs[i].send([0x90, note, velocity]);
}
}