Level Match or It Doesn't Count: A Blind A/B Method for Linux Plugin Tests
I have a confession about plugin comparisons. For years, mine were garbage. I'd load the demo next to the plugin I already owned, hit bypass a few times, and walk away certain about which one "had more depth." Then I actually level-matched a pair of plugin compressors and discovered my favorite was winning by 0.8 dB of gain and nothing else.
This is a guide to not doing that. It's not about which plugins are good. It's about how to run a test where the answer is real.
Two ways to fool yourself
Loudness. A difference of 1 dB is enough to make listeners prefer the louder version more than 70% of the time in controlled studies. Plugin A/B comparisons almost always involve an unspoken level difference, because two compressors hitting the same threshold with different knee curves will not output the same RMS. Whoever is louder wins.
Expectation. You know what you're listening to. You know one costs $199 and one is a free LV2 port. You know which one the forum thread said was "more analog." That knowledge is doing work whether you want it to or not.
The fix for the first is measurement. The fix for the second is blinding. Neither is difficult on Linux, which is one of the few things Linux audio has genuinely going for it here — the tools are scriptable and they're already installed.
Step one: render, don't noodle
Set up the comparison as an offline render, not a live audition. Two tracks, identical MIDI or identical audio, identical automation, one with plugin A and one with plugin B. Bounce both through the same output path, at the same sample rate, with no master bus processing and no dither.
Keep everything else bit-identical. Same gain staging before the plugin, same oversampling setting, same internal quality mode. If the plugins have a "HQ" switch, and only one of them defaults to on, you've just built a test of two different algorithms and a switch.
Name the files with a neutral scheme — a.wav, b.wav — and note the mapping somewhere you're not going to look at during the test.
Step two: measure and match loudness
Integrated LUFS is the right target for full-mix material; short-term or RMS is better for a drum loop that's only a few seconds long. ffmpeg will give you EBU R128 numbers with no extra packages:
ffmpeg -i a.wav -af ebur128=peak=true -f null - 2>&1 | tail -20
For short files, loudgain or a sox stat RMS reading works fine. Then trim the louder file down to match:
sox a.wav a_matched.wav gain -0.8
Match to within 0.1 dB and re-measure to confirm. If the two plugins have meaningfully different dynamics, matching integrated loudness will leave short-term levels slightly apart — that's expected, and it's the honest version of the comparison. Don't chase a perfect short-term match by compressing one file; you've just changed the thing you're testing.
Step three: null test — but only for linear stuff
A null test is the fastest way to answer "are these two actually different?" Invert one file, sum it with the other, and measure the residual.
sox -m -v 1 a_matched.wav -v -1 b_matched.wav null.wav
sox null.wav -n stat
If the residual sits at -inf dBFS, the plugins are doing identical math on identical input, and further listening is a waste of an afternoon. If it sits around -30 dB, they're similar but not the same. Below -20 dB, they're clearly different animals.
The catch: null tests only make sense for linear, time-invariant processing — EQ, saturation with no time-varying component, static gain. A compressor with program-dependent release, or anything with random modulation, will never null with itself, let alone with a competitor. A failed null test on a compressor tells you nothing. Don't let the null test's clean binary answer seduce you into over-applying it. It's a quick sanity check, not a verdict.
One more gotcha: sample alignment. Most DAWs introduce small offsets between renders, and a one-sample shift will smear your null into a -6 dB mess that looks like a huge difference. Cross-correlate first — sox can do it — or trim both files to a common marker.
Step four: build the blind
The gold standard is ABX. You get A and B, you get a randomly chosen X that is one of them, and you say which. Ten trials, no feedback until the end.
Small, ugly, effective:
import random, soundfile as sf, numpy as np
a, _ = sf.read('a_matched.wav')
b, _ = sf.read('b_matched.wav')
score = 0
for i in range(10):
x = random.choice([a, b])
print(f'Trial {i+1}: A, B, or X?')
sf.write(f'x_{i}.wav', x, 48000)
guess = input('was X = ').strip().lower()
actual = 'a' if np.array_equal(x, a) else 'b'
score += (guess == actual)
print(f'{score}/10')
Ten correct out of ten is p ≈ 0.001. Eight out of ten is p ≈ 0.055 — suggestive, not conclusive. Six out of ten is a coin flip wearing a lab coat. If you can't tell them apart at ten trials, the honest conclusion is that the difference doesn't matter at this material, and you should buy the cheaper one.
Step five: doing it live in the DAW
Offline renders are rigorous but slow. For real-time testing on Linux, the routing matters more than the tool.
REAPER: two tracks fed by the same source, both plugins active, one track's volume trimmed to loudness-match. Use a controller or a MIDI footswitch to toggle mute between the two rather than looking at the screen. If you use REAPER's own A/B compare features, remember that it shows you what it's switching — that's convenience, not blindness.
Ardour: route the source to two buses, match gain at the bus trim, and add a single mute toggle mapped to a key. Save each configuration as a Session Snapshot so you can return to a known state without re-dialing anything.
Bitwig: the A/B compare on device chains is fast, but again it's sighted. For anything you actually intend to conclude something from, drop to renders.
The five-line checklist
- Renders, not auditions. Same source, same automation, same gain staging.
- Loudness matched to ±0.1 LU, measured, not eyeballed.
- Null test run — and interpreted correctly for the type of processor.
- Ten blind trials minimum, no feedback until the end.
- A written note of what you predicted before the test. It's humbling, and it's the whole point.