Connecting a MIDI Keyboard to LinuxSampler
A couple years ago I went shopping for a MIDI keyboard based on price and key weighting, with no consideration given to audio quality. I figured that’d be lousy anyway, and on Windows I had used an acoustic modeling program called Pianoteq that did a decent enough job of replacing the stock samples.
Unable to find a similar modeler for Linux*, I decided to go with LinuxSampler. Unfortunately, none of the installation guides I could find online worked for me. The process of getting the LinuxSampler engine, either of the two available frontends, JACK, and my keyboard to work together slowly degenerated into randomly guessing different permutations of steps to take. Eventually I hit upon the magic formula for each of the two official frontends, JSampler (preferred) and QSampler.
Here I assume you have the LinuxSampler engine with all the required libraries installed already, and that all you need now is to get JSampler and/or QSampler to detect your MIDI controller.
Disconnect the USB cable connecting the keyboard/controller to the computer.
Open Fantasia via
java -jar Fantasia-0.9.jar
(Optional) Load your custom LSCP script into JSampler. Here’s mine.
With the keyboard powered off, plug in the USB or MIDI cable.
In qjackctl, click Connect and link “USB MIDI” output with “LinuxSampler” input. See screenshot below.
Power on the keyboard.
Power on the keyboard and connect the USB cable.
In qjackctl, click Connect and link “USB MIDI” output with “LinuxSampler” input. See screenshot to the right.
* Pianoteq has become available for Linux since the time this post was written.