Removing AI-Separation Artifacts After Spleeter and Demucs
Yesterday a request arrived through the "What do you need?" form: "Remove separation artifacts". Today the feature is in production — here's what it is and how it works.
Where the artifacts come from
AI stem separation (Spleeter, Demucs, separators built into DAWs and online services) went mainstream: anyone can pull vocals out of a mix or make an instrumental. But the neural mask is imperfect, and the extracted tracks carry characteristic debris:
- "musical noise" — short isolated tonal bursts, like glass shards scattered across the spectrum;
- metallic burbling and watery tails;
- random fragments of other instruments.
A regular denoiser doesn't help here: it hunts stationary noise, while separation artifacts are the opposite — non-stationary and tonal.
How we remove them
Our approach leans on the nature of the artifacts: real musical events have neighbors — in time (a note lasts) and in frequency (harmonics, an instrument's width). Separation artifacts are loners: isolated peaks with no support around them.
The algorithm analyzes the time-frequency picture and compares every element against the median of its neighborhood (~170 ms × adjacent frequencies). Peaks that tower over their surroundings are gently pulled down to a reasonable level — by at most −12 dB, never to zero. Core material with normal structure is not touched at all.
Honest limits
- The function doesn't work miracles: heavily damaged material gets cleaner, not studio-grade.
- On normal tracks without artifacts it changes almost nothing — but there's no reason to enable it "just in case".
- It's a PRO module within a regular mastering (1 token), the "Remove AI-separation artifacts" checkbox in the settings. Via API — the
separation_cleanup(0–1) parameter ofPOST /api/v2/master(docs).
Pairs beautifully with stem mastering: clean your extracted stems and assemble them into a coherent master in one pass.
Try it: magicmaster.pro/app?lang=en. Ideas — through the "What do you need?" form: this feature shipped a day after the request.
Questions and answers
What are AI-separation artifacts?
When a neural net (Spleeter, Demucs, DAW-built-in separators) extracts vocals or instruments from a mix, the result carries 'musical noise' — short isolated tonal bursts, metallic burbling and watery tails. These are traces of the imperfect separation mask.
How does the cleanup work?
We analyze the track's time-frequency picture: real musical events have 'neighbors' in time and frequency, while separation artifacts are isolated peaks with no support around them. Such peaks are gently pulled toward their surroundings' level (at most −12 dB); the core material is left untouched.
Will the cleanup hurt a normal track?
No. On dense broadband material without isolated peaks the function changes almost nothing (verified by tests: under 15% change at maximum strength). But you should enable it only for tracks that went through AI separation — that's its job.
How much does it cost?
It's a PRO module: runs within a regular mastering for 1 token. Enabled with the 'Remove AI-separation artifacts' checkbox in the settings.
Upload a track — a finished master in seconds.
Open mastering →AI mastering onlineLUFS analyzer