Tool3 min read
spectrumtransfer: making recordings sound like they belong together
A small tool that matches the sound of one recording to another, and reduces the faint whine from monitors, lights and power supplies.
- Python
- Audio
- ffmpeg
- Vibe coding
AI-generated imageMade with an AI image tool for this post.
If you work with video, you probably know this problem. You have two recordings from the same shoot. One sounds great: warm, clear, just right. The other one sounds a little thin. Maybe a different microphone was used (hopefully not), maybe someone moved to another spot in the room, or even just a few centimetres. Nothing terrible, but when you put the clips together, you can hear the difference.
I kept running into this and fixing it manually. Old Audacity forum threads such as this one pointed to the same approach: compare the frequency balance and calculate the difference. That made it a good candidate for automation.
Matching the sound
The idea behind spectrumtransfer is pretty simple. You take a recording that sounds good and use it as a reference. The tool compares its frequency balance with the recording you want to fix and figures out what needs to change.
Under the hood, it’s basically one subtraction:
EQ correction (dB)
= reference spectrum (dB)
- target spectrum (dB)
A bit more detail, if you’re into that:
- Both recordings are turned into mono and cut into short, overlapping windows (FFT size 4096, hop 1024, Hann window).
- For every frequency, the energy is averaged over the whole recording and converted to decibels. That’s the long-term tonal balance of each take.
- The target is subtracted from the reference. Where the reference has more energy, the curve boosts. Where it has less, it cuts.
- The raw difference is very jagged, so it gets smoothed on a logarithmic frequency scale (0.2 octaves by default), only used between 60 Hz and 16 kHz and limited to ±12 dB. Otherwise you’d be matching tiny details of one specific sentence instead of the overall sound.
- The finished curve is applied to the target in the frequency domain. It can also be saved as a CSV or as an Audacity Filter Curve preset, if you’d rather apply it there by hand.
The result is a static EQ correction, without constantly changing processing. It brings two recordings closer together, so they feel like they came from the same session.
Getting rid of that annoying whine
While working on this, I also wanted to solve another problem I kept coming across: that faint, high-pitched noise you sometimes get from monitors, LED lights, power supplies or camera equipment.
The noise can sit unnoticed in a recording until it becomes the only thing you hear.
So I added a whine reduction mode. It uses a gentle high cut and a few narrow notch filters to reduce those unwanted frequencies without messing too much with the voice itself.
Keeping things simple
The launcher keeps the process usable in the middle of a busy project, without another hundred settings to figure out.
So I made a simple macOS launcher that guides you through the process. It handles levels, tonal matching, de-essing, a little extra clarity, peak control and whine reduction. There’s also a fast mode for when you just want to drop in your files and get on with your work.

It works with individual files or entire folders, supports WAV and MP4, and saves the processing settings alongside the results, so you know exactly what happened.
It does not replace proper audio mixing or fix every recording problem. It takes care of something I used to spend way too much time on.
