Hooks for Web MIDI API
useMIDIAccess
SourceHooks for requesting MIDI access in the browser. The first argument allows you to choose whether to request access on mount.
useMIDIInput
SourceHooks for handling note on/off events. To be used with useMIDIAccess. Internally uses useMIDIMessage.
useMIDIMessage
SourceHooks for when you want to process MIDI events in more detail than useMIDIInput.