New tool to remap MIDI devices into Wine

Discuss running non-Linux applications and plugins on Linux, for example via wine

Moderators: MattKingUSA, khz

Post Reply
NarcoticV
Established Member
Posts: 9
Joined: Fri Jun 23, 2023 11:13 am
Has thanked: 3 times
Been thanked: 10 times

New tool to remap MIDI devices into Wine

Post by NarcoticV »

Hi all,

I would like to share with you a small tool which may be helpful if you have trouble getting your MIDI devices recognized in Wine applications due to having ALSA-generated names.

Most MIDI-controllable software allows the user to choose from a list of devices, but some software just expects a certain device to appear with a particular name or property. The fact that ALSA usually generates different names than native Windows winmm would can cause issues here.

For example: the reason I created this is to use the Joue Play app with its MIDI controller under WINE.

An added benefit is that this makes it possible to insert other applications in the chain before reaching the end application, or hooking up MIDI streams from other sources. You could have e.g. a jack-to-alsa bridge sending MIDI to a virtual ALSA device, which is then renamed to the expected device name in WINE.

https://github.com/SanderVocke/winmm_midi_rename provides a DLL which you can place next to your WINE application together with a config file. It allows you to define replacement rules to present MIDI devices under a different name/ID/version to the application. More info is in the Github README.

Cheers,

S

Post Reply