On Fri, Jul 15, 2022 at 02:28:37PM +0200, Brian Durant wrote: > On 7/15/22 12:54 PM, Alexandre Ratchov wrote: > > > On Thu, Jul 14, 2022 at 10:05:43AM +0200, Brian Durant wrote: > > > On a possibly related issue to my browser access to file system problem, > > > has > > > anyone been able to get Web MIDI working with Firefox on OpenBSD 7.1? > > > Here I > > > am referring to bandcamp.com and flowkey.com in particular. Neither site > > > appears to be receiving any MIDI signal despite an Akai LPK25 (for > > > testing) > > > being registered by the system at umidi0. Flowkey requires ffmpeg to be > > > installed, as well as prompting for the Jazz MIDI extension to be > > > installed. > > > Flowkey tabs crash and never make a MIDI connection. This has never > > > happened > > > to me with Win 11, Linux, of FreeBSD. The Bandcamp site simply doesn't > > > register a MIDI device connected to the system, but doesn't crash the tab. > > > Again, any constructive advice is welcomed. > > > > > > > > OpenBSD ports has no MIDI support. A quick look at firefox sources > > suggest it's using is library: > > > > https://github.com/boddlnagg/midir > > > > which doesn't have sndio backend. > > Many thanks about the information regarding Web MIDI, Firefox and midir. No > wonder this has been driving me mad. I had yet to look systematically at > ports to see what programs using MIDI were available, as I have been so busy > with the browser issues, so it is interesting that you state that MIDI > programs are lacking in ports. What do other users do? To my mind, OpenBSD > has excellent support for recognizing MIDI devices, and excellent audio > support (sndio) as well, which would make it an excellent OS for music > production... At the very least, it should be feasible to get a USB MIDI > keyboard working with fluidsynth (Qsynth) according to the OpenBSD FAQ > (Multimedia), but I admittedly have yet to be successful at getting that > working either... >
To make fluidsynth work (applies to any real-time softsynth), first lower sndio latency, example: doas rcctl set sndiod flags "-z 128" doas rcctl restart sndiod Install fluidsynth and generaluser-gs-soundfont pacakges. In one terminal start fluidsynth: fluidsynth /usr/local/share/generaluser-gs/GeneralUser_GS.sf2 At this point, fluidsynth listens for incoming MIDI messages on the default "midithru/0" port. To send MIDI messages from your keyboard (probably "midi/0") to it, try: midicat -d -q midi/0 -q midithru/0