MIDI input suspends after tab-switch to other application

My MIDI keyboard is connected, Dorico receives, and I hear the notes when inputting, and when playing back my score. I also have Logic open in the background - and tab-switch back and forth between the two apps, since I am transcribing a recording that I have in Logic. Sometimes, but not all the times, when I switch back to Dorico, MIDI input does not work anymore. I then have to manually select the stave, and it works again. This behaviour seems a bit random, like after a few minutes it kicks in. I thought it could have something to do with the two apps sharing MIDI routing, BUT, when I quit Logic, and use QuickTime to play an audiofile, and switch back and forth between Dorico and QT, the same behaviour: MIDI input suspends. Any solutions?

I’m afraid I don’t have any bright ideas to offer you here. In theory, MIDI input remains active when Dorico goes into the background, but perhaps the issue is that the other apps you’re running on your computer are doing something to grab the MIDI input devices when they gain focus, and they don’t release them properly when they go into the background again?

In the case of MIDI application (like Logic) that could make sense; but this “suspending” of MIDI receive in Dorico also happens when only QuickTime is in the background with an audio file. And it doesn’t happen every time, but after a few times switching back and forth it usually does happen. The remedy I use now, is to select an item in a stave in Dorico - and then MIDI is receiving again…

That makes sense. Until one selects a staff in Dorico, the program does not know what sound to use to echo the MIDI keypresses.