This example uses Web MIDI input (from all available ports and channels) to drive a Web Audio monophonic synthesizer. There is no UI.
Source available on github.
No MIDI input devices present. You're gonna have a bad time.