I believe Apple and Mozilla’s position is it can’t be done in a privacy preserving way as currently specified.
In about:config, I have dom.webmidi.enabled set to true. I'm using this test page and waiting for the day it starts working for regular version of Firefox.