webmidiapi.js
// therefor we call the ports dispatchEvent function here as well
therefor we call the ports dispatchEvent function here as well
therefor we call the ports dispatchEvent function here as well
function dispatchEvent(port) {
    port.dispatchEvent(new _midiconnection_event2.default(port, port));
    var evt = new _midiconnection_event2.default(midiAccess, port);
    if (typeof midiAccess.onstatechange === 'function') {
        midiAccess.onstatechange(evt);
    }
    listeners.forEach(function (listener) {
        return listener(evt);
    });
}
function dispatchEvent ( port ) { port . dispatchEvent ( new _midiconnection_event2 . default ( port , port ) ) ; var evt = new _midiconnection_event2 . default ( midiAccess , port ) ; if ( typeof midiAccess . onstatechange === 'function' ) { midiAccess . onstatechange ( evt ) ; } listeners . forEach ( function ( listener ) { return listener ( evt ) ; } ) ; }
therefor we call the ports dispatchEvent function here as well
therefor we call the ports dispatchEvent function here as well