Blog Updated

Room correction on Raspberry Pi

If a bass note booms at your listening seat, a small EQ cut can bring it back into balance. Kalinka 5.21.0 lets you adjust that EQ as you listen or load a correction filter made from measurements of your room. We optimized both kinds of processing so the Pi 4 that plays your music can handle the correction, too.

The KEF R3 preset lifts the low bass and cuts around 5 kHz. Nine dots mark its filter frequencies.
The KEF R3 preset used in our EQ test. Each dot marks a band’s frequency on the combined curve, before preamp gain. Preset settings

Speaker EQ across three engines

A parametric equalizer (PEQ) lets you set the frequency, width and gain of each band. Kalinka can import those settings from Room EQ Wizard. We gave Kalinka, CamillaDSP and KFR the nine-band KEF R3 preset shown above, then measured how much of one CPU core each needed for stereo at 192 kHz.

KEF R3 speaker EQ · mean share of one core over eight runs
EnginePi 4Pi 5
Kalinka 0.17.00.48%0.33%
KFR 7.2.02.79%1.06%
CamillaDSP 4.1.32.06%1.14%
CamillaDSP 5.0.0-beta.20.88%0.41%

With 20 bands per channel, Kalinka still used less than 1% of a Pi 4 core. CamillaDSP’s beta was the next closest, using about twice as much CPU on that board. All engines processed identical filters and samples on one thread, and we checked their output against the same reference.

20-band EQ, mean CPU on Pi 4 and Pi 5 respectively. Kalinka 0.97% and 0.70%, KFR 6.40% and 2.37%, CamillaDSP 4.1.3 4.54% and 2.52%, CamillaDSP 5 beta 1.92% and 0.90%.
20-band stereo EQ at 192 kHz. Shorter bars mean less CPU. Each bar shows the mean of eight runs, with the minimum and maximum marked beneath it. Timings include copying and filtering each 1,024-frame block. Per-run PEQ measurements (CSV) · Benchmark source and method

FIR room correction across three engines

A finite impulse response (FIR) filter can correct both level and timing. Kalinka reads that filter from a WAV file. Pi 4 listeners have combined EQ and FIR for years, and CamillaDSP’s author has run eight FIR channels at 192 kHz. One listener’s filter setup · CamillaDSP’s 192 kHz test

Each engine processed the same stereo audio at 192 kHz with a 262,144-tap filter per channel. Kalinka used the least CPU on average on both boards. Its biggest advantage came with the shortest buffer, where the engine has the least time to do its work.

Kalinka has the shortest mean CPU bar on each Pi. On Pi 5 it used 5.5% of one core, against 8.2% for KFR and 16.4% for either version of CamillaDSP.
Shorter bars mean less CPU. Each bar averages four buffer sizes equally (640 to 16,384 frames), using the median of eight runs per size. The line spans those four medians. Both Pis use the same scale. Per-run FIR measurements

All engines ran on one thread. At 100%, processing uses a full core. Both CamillaDSP versions staggered the work for the left and right channels. Test setup and results by buffer size

What the results mean

At the shortest buffer, Kalinka applied the long FIR filter on the Pi 4 with 3.33 ms of added delay and roughly two thirds of one core to spare on average. It used the least CPU in seven of the eight matched FIR tests. At 8,192 frames on the Pi 5, CamillaDSP 5.0.0-beta.2 edged ahead at 5.20% to Kalinka’s 5.29% — less than a millisecond of CPU time per second of music.

Get Kalinka for your Raspberry Pi