Getting the Les Paul into Linux

Preface

I like the blues. Tu-tu, ti-ti, major and minor pentatonic scales. There is literally nothing that soothes my end of the week time. When the week passed, work has been done and it’s time to relax and cool down, the Blues is the right medicine (for me).

So i would either listen to it or play some. And the later part was indeed a head scratch, as I didn’t want to own or use a guitar amplifier. Couple of reasons for that choice:

  1. My neighbors wouldn’t be too happy
  2. I feel no emotion into setting up amps, pedals, cables, etc…

So it was decided that a sensible solution to this would be an the emulation approach: Software.

Armed with the credit card I navigated to the major provider of musical stuff in the Netherlands and ordered a tiny little box called an iRig.

An iRig is a portable audio interface made by IK Multimedia that lets you
connect instruments, microphones, or mixers to a smartphone, tablet, or computer 
for recording, practicing, or live streaming

The iRig can be hooked to something called Amplitube. Which i won’t discuss here because I am not using it anyway.

The stack

My guitar connects to an IK Multimedia iRig USB interface.

Ubuntu recognized it immediately:

lsusb

The iRig appeared as:

1963:00c2 IK Multimedia iRig USB

ALSA could also see the recording interface:

arecord -l

which showed:

card 4: USB [iRig USB], device 0: USB Audio [USB Audio]

PipeWire, JACK and REAPER

My setup has one complication. The input and output are different devices.

The guitar enters through the iRig, while my speakers are connected to my monitor over the RTX 4090’s HDMI output. (Yes, I don’t have a dedicated audio card for this).

The audio path therefore looks like this:

Guitar
  |
iRig USB
  |
REAPER
  |
NVIDIA HDMI
  |
Speakers

Ubuntu was already running PipeWire:

pactl info | grep "Server Name"

which reported:

Server Name: PulseAudio (on PipeWire 1.0.5)

I installed PipeWire’s JACK compatibility:

sudo apt install pipewire-jack

and started REAPER through it:

#!/usr/bin/env bash
# start-irig-reaper — set up the IK Multimedia iRig USB as the default input,
# drop PipeWire to a low-latency buffer, and launch REAPER on the JACK backend.
# The normal buffer is restored automatically when REAPER exits.
#
# Usage:  start-irig-reaper [extra reaper args...]
#         start-irig-reaper --quantum 256   # override buffer (frames)

set -euo pipefail

# Stable PipeWire identifiers for the iRig (independent of ALSA card number)
SRC="alsa_input.usb-IK_Multimedia_iRig_USB-00.mono-fallback"
CARD="alsa_card.usb-IK_Multimedia_iRig_USB-00"
PROFILE="output:iec958-stereo+input:mono-fallback"
QUANTUM=128    # 128 frames @ 48kHz ≈ 2.7 ms/period. Raise if you get crackles.

# Tiny arg parse: allow --quantum N to be passed before reaper args 
if [[ "${1:-}" == "--quantum" && -n "${2:-}" ]]; then
  QUANTUM="$2"; shift 2
fi

msg() { printf '%s\n' "$*"; }

# Wait for the iRig to show up (up to ~10s)
msg "▶ Waiting for iRig USB..."
for _ in $(seq 1 20); do
  pactl list sources short 2>/dev/null | grep -q "$SRC" && break
  sleep 0.5
done
if ! pactl list sources short 2>/dev/null | grep -q "$SRC"; then
  msg "✗ iRig not found — is it plugged in?" >&2
  exit 1
fi

# Make sure the profile exposes the mono guitar input
pactl set-card-profile "$CARD" "$PROFILE" 2>/dev/null || true

# iRig = default input, unmuted, full volume
pactl set-default-source "$SRC"
pactl set-source-mute   "$SRC" 0
pactl set-source-volume "$SRC" 100%
msg "✓ iRig set as default input (unmuted, 100%)"

# Low-latency buffer; remember the old value so we can restore it 
PREV_Q="$(pw-metadata -n settings 2>/dev/null \
| sed -n "s/.*key:'clock.force-quantum' value:'\([0-9]*\)'.*/\1/p" | tail -1)"
PREV_Q="${PREV_Q:-0}"

restore() {
  pw-metadata -n settings 0 clock.force-quantum "$PREV_Q" >/dev/null 2>&1 || true
  msg "Restored PipeWire quantum to ${PREV_Q} (0 = automatic)"
}
trap restore EXIT INT TERM

pw-metadata -n settings 0 clock.force-quantum "$QUANTUM" >/dev/null
msg "PipeWire quantum forced to ${QUANTUM} frames \ 
(~$(awk "BEGIN{printf \"%.1f\", $QUANTUM/48}") ms)"

# Launch REAPER through PipeWire's JACK layer 
msg "▶ Launching REAPER (JACK backend)..."
pw-jack reaper "$@"

Inside REAPER I selected:

Options > Preferences > Audio > Device > JACK

PipeWire then handles routing the iRig input through REAPER and sends the result
back out through HDMI.

REAPER

Reaper is my sound editing tool, but much more at the same time. It’s an exquisite piece of software, of which i was totally unaware of. It was a Alessandro Duca a friend of mine a a fine guitar player, to point out the usability of being able to record the clean guitar input and stack effects on top. Mostly for editing them later on…

The cost of “Reaper” is $60. Very much acceptable for what it is.

Adding real amplifier models

REAPER’s effects were enough to prove that the setup worked, but the next step
was to start playing with actual amplifier models.

I experimented with Neural Amp Modeler (NAM) and its native Linux LV2 plugin,
which allows captures of real amplifiers to be loaded into REAPER.

Then I discovered TONE3000, which provides native Linux plugins including LV2,
VST3 and CLAP.

For REAPER I installed the LV2 version under:

~/.lv2/TONE3000.lv2

The interface needs WebKitGTK on Ubuntu:

sudo apt install libwebkit2gtk-4.1-0

After restarting REAPER, I could browse and load amplifier models directly from
the FX chain.

Naturally, I went looking for B.B. King.

Chasing B.B. King’s sound

B.B. King’s famous later setup was refreshingly simple:

Lucille
  |
Lab Series L5
  |
2x12 cabinet

I found a B.B. King Lab Series L5 preamp capture.

Because it’s a preamp capture rather than the complete amplifier and speaker
combination, I added a cabinet IR afterward.

My version looks like this:

Les Paul
  |
Neck humbucker
  |
iRig
  |
REAPER
  |
Lab Series L5 preamp
  |
L5 2x12 cabinet IR
  |
Reverb
  |
Speakers

For the cabinet capture I started with the Shure microphone version.

My Les Paul obviously isn’t Lucille, but the neck humbucker through a warm,
clean L5 model gets into very interesting territory remarkably quickly.

The rest is in the fingers…Unfortunately.

Record clean, listen through the amplifier

There’s another useful consequence of this setup.

REAPER can record the clean guitar signal while I listen to the processed
version:

                    Recorded clean guitar
                           |
Guitar > iRig > REAPER > L5 > Cab > FX > Speakers

The performance and the amplifier aren’t permanently tied together.

After recording, I can replace the L5 with something completely different. I can
change the cabinet, microphone, reverb or EQ while leaving the original
performance untouched.

In practice, I can concentrate on playing first and worry about the exact
amplifier sound later.

Conclusion

After building all of that, I ended up back at the same lesson I started with. The technology can give me B.B. King’s amplifier. It can approximate his cabinet. It can give me compression, reverb and EQ. It can even move the wah pedal for me.

But it cannot decide when to bend a note.

It certainly cannot decide when not to play one. And it cannot decide whether that note should land exactly on the beat or linger
just behind it. If blues is communication, the equipment gives us the voice.

We still have to figure out what we want to say.

I still have lots to learn to be able to play well, but for now it’s food for
the soul.