Tonebench — a free, cross-platform analyzer app for the QA40x (and for any sound card)
The story
I build tube amplifiers, and a few years ago I bought a QuantAsylum QA403 to stop guessing about them. The hardware is excellent. What I kept running into was everything around it: the software only runs on Windows, measurements live as whatever files you remember to save.
So I started writing my own. It began as “just the FFT screen” and turned into something rather
larger: a cross-platform app that talks to the QA403 directly over raw USB (no vendor driver, no
DLL), does all its own DSP, and keeps every measurement in a project file on disk so a session is
still there next week. Along the way it grew a sound-card back end as well, so the same ten
measurements work through a USB interface if you don’t own a QA403 — and a complete simulator with synthetic devices under test, so you can try the whole thing out with no hardware plugged in at all.
It is free, the source is on GitHub, and there are installers for Windows and Linux. I would very
much like to hear what breaks.
Download / source: GitHub - breedj/tonebench-audio-equipment-analyzer: Cross platform audio analyzer for qa40x devices · GitHub
Impressions
What it does
Hardware
- QuantAsylum QA403 over raw USB — libusb on both platforms, no vendor driver or DLL. The QA403 binds to WinUSB by itself on Windows; on Linux a udev rule ships with the package.
- Any sound card, via PortAudio — ASIO, WASAPI, WDM-KS, ALSA. ARTA-style calibration for output level, input full scale and an external source, so readings are in volts rather than dBFS.
- 48 / 96 / 192 kHz, plus an experimental 384 kHz input-only mode (measured flat to within
a decibel out to ~180 kHz; the DAC is not usable there, and the app refuses to drive it). - QA451 / QA451B programmable load (optional) — 4 Ω / 8 Ω switching and supply control from the status bar.
- Built-in simulator with a set of synthetic DUTs: tube amp, loudspeaker, phono stage,
Butterworth / Chebyshev / Bessel / elliptic filters, clipping and crossover-distortion stages,
a digital processor, an oscillating amplifier, and impedance fixtures. Every screen is usable and
verifiable with nothing connected.
Measurements — ten kinds, each with its own settings, charts and stored results
- FFT analysis — spectrum, THD, THD+N, SNR, harmonic table, two-tone IMD (SMPTE / DIN / CCIF), multitone TD+N, noise floor and weighted noise figures, with an oscilloscope (including a
fundamental-removed residual trace) and a spectrogram beside it. - THD vs frequency — a tone stepped across the band: THD, D2–D5 and D6+ against frequency, with optional frequency-normalised (Temme nTHD) figures.
- THD vs amplitude — drive stepped at one frequency, against output voltage, output power or input voltage, with an early-abort threshold so a clipping amplifier isn’t driven into the rail.
- IMD vs amplitude — a two-tone pair stepped the same way, with its 2nd–5th order products.
- Frequency response — a periodic chirp (or pink / white / speech-shaped periodic noise)
deconvolved to gain, phase, coherence, group delay and phase delay, with ±1 dB / −3 dB bandwidth corners measured from the passband, and Bode, Nyquist, Nichols, pole–zero and |H(s)|-surface
views with a rational-function fit. - Stepped sine response — the same curves one tone at a time: slower, but nothing else is
playing while each point is measured. - Impulse response — the chirp deconvolved to an impulse, with a gated magnitude and phase,
harmonic distortion against frequency, and cumulative spectral decay and burst decay
surfaces, drawn as a turnable 3D waterfall or a flat sonogram. - Impedance — magnitude and phase in ohms through a series reference resistor, with open/short
calibration, chirp / pink-noise / stepped-sine stimuli, and a readout that fits a capacitor, an
inductor or a loudspeaker’s Thiele–Small parameters. - Output impedance / damping factor — the two-load load-step method, in ohms and as a damping
factor against frequency (no open-circuit pass unless you tick the box — an unloaded output
transformer is no joke). - Crosstalk — one channel driven, the other read: dB against frequency, either direction or both.
Analysis
- Own DSP throughout.
- Windows: rectangular, Hann, Hamming, Blackman-Harris, Flat Top, Kaiser 5 and Kaiser 7
(ARTA’s α convention — −120 and −171 dB sidelobes). - Noise weighting: A, C, ITU-R 468, CCIR/ARM, RIAA playback and record, plus two user-loadable curves in the QA40x file format.
- Noise density in dBV/√Hz, input-referred through a DUT-gain figure; a bandwidth setting that defines what “+N” means.
- Fractional-octave smoothing from 1/48 to 1/3 octave, done as a proper band average (complex where the quantity is complex).
- Automatic input ranging, output ranging derived from the stimulus, output-referred drive targets
(“give me 1 W into 8 Ω and tell me if the amplifier can’t reach it”), external gain/divider compensation, and a configurable settle time per stimulus change.
Projects and data
- A project is one
.tbenchSQLite file, kept wherever you like. Inside it: a reorderable list
of measurements, and every run you save as a stored result with its notes, its full-resolution
capture and the exact parameters that produced it. - Overlay saved runs on the live chart to compare them; annotate charts with markers, regions and rules; rename, re-analyse, and delete into a trash that holds things for a while first.
- Export and import between projects, so a measurement set travels to someone else as one file.
- Save as with or without results, so a project doubles as a template for the next device.
Reports and export
- CSV — one row per FFT bin, per sweep point or per trace column.
- PNG of any chart, at a size you choose.
- PDF report — tick which blocks it carries (charts, readings, metric tiles, harmonic levels,
settings, your notes), for a single result or as a whole-project report, optionally in black and
white for printing.
Importing a simulation
LTspice and QSpice runs import and draw beside a measurement. A transient run (.raw /
.qraw) is analysed with the same code the live FFT screen uses, so its THD, THD+N, SNR and
harmonic figures mean exactly what a measured capture’s do; an AC run imports as a
frequency-response result with gain and phase. Imported traces are stored inside the project file
and behave like any other result.
The app itself
- Runs as a local web app (bound to 127.0.0.1 only) with the UI in your browser — light and dark
themes, responsive down to a laptop screen. - Its own manual, built in, in two editions over the same contents: a 15-page Simple guide in
plain language with no formulas, and a 55-page Full manual covering every screen, control and convention, the wiring diagrams, and the simulator’s DUT models with the measured figures behind them. Every measurement screen has a ? button that opens at its own page. - Diagnostics for when something goes wrong: detailed logging, per-acquisition WAV recording of
both directions, and a one-button issue report that zips up the evidence (nothing is ever
uploaded — where it goes is your decision). - A dismissible update check against GitHub Releases, which can be switched off entirely.
Installing
- Windows — a per-user installer, no administrator prompt, or a portable zip. Not code-signed,
so SmartScreen will grumble once. - Linux — a
.debfor Debian/Ubuntu (brings the udev rule and the menu entry) or a tar.gz with a setup script for everything else. - Self-contained: no .NET runtime to install, ~28 MB. Nothing is written next to the executable, so
an upgrade is a file replacement.






















