MIDI device enumeration is behind a permissions prompt, though? "The user must explicitly grant permission to use the API though a user-agent specific mechanism, or have previously granted permission."
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/r...EDIT: nope, not as implemented in Chrome https://www.jefftk.com/test/webmidi