Pedro, thanks for quick response! Understand the challenge. Maybe a system service would work on a background, but that's platform specific. Thanks for the hint with miditranslator, it may be a bit overkill for my needs, but let me try.
no midi if wmpk window looses focus