On 14 Mar 2018, at 22:53, Miller Puckette <msp@ucsd.edu> wrote:

Incidentally, I think the best fix would be to start using portmidi to address
linux/ALSA.

ahh ok, sorry! funny you should mention that. i use hatari with a synth programmer that sends sysex exclusively and i had many problems in the past.
as soon as the hatari code got updated to use portmidi it all started working properly, no dropouts or lost bytes anymore. so maybe you can have a peek there?

https://hatari.tuxfamily.org/download.html