Skip to content

Instantly share code, notes, and snippets.

@trebled-tech
Created November 30, 2020 23:03
Show Gist options
  • Save trebled-tech/ff69bdb59e6fa5d3a9c6f51f845b51a8 to your computer and use it in GitHub Desktop.
Save trebled-tech/ff69bdb59e6fa5d3a9c6f51f845b51a8 to your computer and use it in GitHub Desktop.
Details efforts I've taken to get U-20 Editor to work in Wine 5 (not successful so far)
setting up U20_Editor in WINE 5.x
These instructions assume an environment based on Ubuntu 18.x or 20.x; actual environment where this was tested was Modicia 20
# install Wine
sudo apt-get install wine-stable
# get the U20 Editor installer
https://web.archive.org/web/20191118133803/http://llamamusic.com/u20/U-20_220_Editor_v4.1.zip (works, and best link I've been able to find)
# create a 32-bit Wine prefix (I choose to aggregate my prefixes in ~/wine/)
mkdir -p ~/wine
WINEPREFIX="$HOME/wine/32bit" WINEARCH=win32 wine wineboot
# install U20 Editor in the 32-bit prefix (we assume the zip file is in ~/Downloads/)
unzip ~/Downloads/U-20_220_Editor_v4.1.zip
WINEPREFIX="$HOME/wine/32bit" wine ~/Downloads/U-20-220_Editor_setup41.exe
# provide the various mouse-clicks and choices to install the Windows app
# align Windows MIDI subsystem expectations with reality, ref. https://wiki.winehq.org/Wine_Developer%27s_Guide/Wine_and_Multimedia#Midi_mapper
# establish identifier for desired MIDI interface
aconnect -o
# identifiers from a Windows perspective will increment numerically for each identified interface, e.g.
mc3@mc3-macmini-vbox:$ aconnect -o
client 14: 'Midi Through' [type=kernel]
0 'Midi Through Port-0'
client 20: 'mio' [type=kernel,card=1]
0 'mio MIDI 1
# thus, Windows would see 'client 14' as '#0' and 'client 20' as '#1', illustrating the common problem outlined in the WineHQ link above
# construct an .INI file to feed to regedit (I put mine in the U20_Editor folder, just for consolidation)
vi ~/wine/32bit/drive_c/u20edit/REGEDIT4MIO.INI
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Multimedia\MIDIMap]
"CurrentInstrument"="#1"
# feed the .INI file to regedit
WINEPREFIX="$HOME/wine/32bit" wine regedit.exe ~/wine/32bit/drive_c/u20edit/REGEDIT4MIO.INI
# assuming there aren't other issues causing the app to crash, U20EDIT should be usable at this point (in my testing, it continues to crash when I try to read the current patch after configuring the iConnectivity mio as both MIDI IN and MIDI OUT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment