How our AI mastering works

“AI mastering” covers everything from neural networks to fixed presets. Ours is an adaptive, analysis-driven algorithm: here is every step, with the numbers it uses and the tests it has to pass.

Plain statement: there is no neural network in this engine. It is a set of measurements and rules written by hand, running as JavaScript in your browser. We call it AI mastering because that is what people search for; what it does is listed below, step by step.

1. Analysis

  • Loudness per ITU-R BS.1770: K-weighting, 400 ms blocks with 75 % overlap, absolute gate −70 LUFS, relative gate −10 LU. Loudness range per EBU Tech 3342.
  • True peak: 4× oversampling with a 24-tap-per-phase Kaiser-windowed sinc interpolator.
  • Spectrum: average power spectrum of the mid signal (8192-point FFT, Hann window) in 30 third-octave bands from 25 Hz to 20 kHz, ignoring near-silent frames.
  • Stereo: left/right correlation and the side-to-mid energy below 120 Hz.
  • Dynamics: peak-to-loudness ratio and the level distribution of 50 ms blocks.

2. Decisions

Tone

Your spectrum is compared with a target curve for the chosen genre: a gentle slope of about −2 dB per octave (in third-octave power) between 100 Hz and 5 kHz, flatter in the bass and falling faster above 5 and 12 kHz, with genre offsets (more sub for hip hop and EDM, darker top for lo-fi, a voice curve for podcasts). The difference is split into two parts:

  • Broad tilt (too dark, too bright, too bassy overall) is corrected only partly and only when it exceeds 2 dB – your mix’s character stays.
  • Narrow bumps (mud at 250 Hz, harshness at 3 kHz, boom at 80 Hz) are cut firmly. Narrow dips are filled only gently: good engineers cut resonances and boost broadly.

Cuts are capped at 3.5 dB, boosts at 2.5 dB (less at the extremes), nothing is boosted where your mix has no content, and nothing is touched below the clean-up high-pass. A least-squares fit turns the wished-for curve into ten minimum-phase filters (shelves at 45 Hz and 13 kHz, peaks from 80 Hz to 9 kHz).

Dynamics

The glue compressor’s threshold is placed so that the loudest passages (90th percentile of 50 ms levels) get the style’s amount of gain reduction – 0.8 dB for Gentle, 1.5 dB for Balanced, 3 dB for Loud. If your mix is already dense (PLR under 9 dB) it compresses less; if it is very dynamic (over 16 dB) a little more. Punch sets the attack from 8 to 48 ms: a slower attack lets drum transients through.

Stereo

If the side signal below 120 Hz is louder than −12 dB relative to the centre, the low end is made mono automatically (Loud, hip hop and EDM do it always). Width changes the side level; it is not widened when the mix is already poorly correlated.

3. Processing chain

  1. High-pass at 25 Hz (70 Hz for voice) against rumble and DC.
  2. Corrective EQ and the style shelves (warmth at 220 Hz, brightness at 6.5 kHz).
  3. Glue compressor: stereo-linked, soft knee, RMS detector – or three bands split with zero-phase complementary filters (Advanced).
  4. Stereo: side minus its zero-phase low-pass, so the crossover adds no phase shift.
  5. Gain and a look-ahead true-peak limiter. The gain is iterated (secant method) until the integrated loudness is within 0.05 LU of the target. The limiter’s gain curve is built from a sliding minimum and a triangular smoother, which guarantees it never exceeds the gain each peak requires; the release is exponential. If reaching the target would need more than 6 dB of limiting on the loud peaks (11 dB in the Loud style), the engine stops short and says so.
  6. Verification: true peak of the result is measured; if it is above target − 0.15 dB the ceiling is tightened and the limiter re-run.
  7. Export: WAV at your file’s sample rate; 24-bit, or 16-bit with TPDF dither.

4. How we test it

We built 16 test mixes from scratch in Python (synthesised drums, bass, pads and leads; plus versions with deliberate problems: +6 dB at 250 Hz, a −7 dB dark top, +6 dB at 3 kHz, +7 dB of boom, out-of-phase bass, a −7.7 LUFS clipped master, a quiet −31 LUFS mix, 44.1 kHz mono and 96 kHz files, a voice-like signal and a true-peak torture signal). Then:

TestPass criterionResult
Our meter vs pyloudnorm±0.2 LU±0.000 LU on all files
True peak after mastering (8× oversampled, SciPy)≤ −1.0 dBTPmax −1.2 dBTP over 19 masters
Loudness of the master (pyloudnorm)±0.3 LU of targetmax error 0.05 LU
Clipped samples00
Mud / dull / harsh / boom problemsgap to the clean mix shrinks ≥ 1 dBmud: 4.4 → 3.2 dB; dull highs: −5.3 → −3.6 dB; harshness: 4.4 → 2.7 dB; boom: 5.1 → 2.6 dB
Clean mix left alone≤ 3 dB change 63 Hz–8 kHz1.3 dB max
Reference masteringtonal distance shrinks by 25 %+2.0 → 1.4 dB RMS
Limiter distortion, 55 Hz swinging bass at −9 LUFS< −40 dB−66.1 dB
Determinismidentical outputbit-identical
5-minute 48 kHz stereo songno UI freeze, progress shown5.6 s on an Apple M1 Pro

The test scripts are kept with the site’s source code and re-run before every change to the engine. Synthetic mixes are a proxy, not a listening test: they prove that the measurements are right and that the processing fixes what it claims to fix without clipping or distortion. Whether a master sounds right for your song is your call – that is why the studio has a loudness-matched A/B.

What it does not do

  • It does not fix a bad mix: clashing parts, a buried vocal or a distorted recording stay as they are.
  • It does not separate stems or treat the vocal differently from the beat.
  • No de-essing, de-clicking, noise reduction or saturation.

Questions and answers

Why not use a neural network?
Because every decision should be explainable and checkable. Measurements plus rules can be tested against standards; a model trained on unknown data cannot tell you why it boosted 3 kHz.
Is the code open?
The engine is shipped unminified to your browser – you can read every line in /static/engine.js.

Sources

Checked on November 29, 2026. If a platform changes its rules, the platform wins – tell us at hello@freeaimastering.com and we will update this page.