The WebMIDI standard has a problem, which is that only the main UI thread can talk to the WebMIDI devices directly. So even if you schedule your MIDI messages in the audio thread, to emit them on the hardware device you need to pass them to the main thread and then emit the messages from there, incurring whatever delays imposed by the main thread as it handles user input
jacquesm|3 years ago