AI · Music
AutoMix
An AI that blends songs together the way a real DJ would.
18
kinds of transitions it can choose from
My role
When
What it is
Give AutoMix a playlist and it turns it into one continuous, gapless mix, the way a DJ would play it.
Why I built it
Most auto-mix tools just crossfade. A real DJ matches tempo, lines up the beats, and swaps the bass at the right moment. I wanted mine to do all of that.
How I built it
It finds each song’s beats down to the millisecond and time-stretches both tracks onto one tempo without changing their key. It also splits songs into drums, bass, vocals, and everything else, so it can lay one song’s vocals over another’s instrumental. An earlier version used two neural networks I trained to pick transitions and draw the volume curves.
What it can do.
Millisecond timing
A 0.1% tempo error becomes a 30 ms flam after 16 bars, so it re-corrects the beat grid every 32 beats.
Mixing across stems
Each song is split into drums, bass, vocals, and the rest, so it can mix across them, like one song’s vocals over another’s beat.
Same key, same loudness
Both tracks are stretched to one tempo with the key locked, and everything is leveled to −14 LUFS.
It makes its own videos
Every mix gets a music video, rendered frame by frame with my Visualizzer engine.
Technical details.
- Transitions
- 18 techniques: beat-matched, cuts, and fades
- Beat grid
- 3 ms onset envelope, drift corrected every 32 beats
- Tempo
- key-locked WSOLA onto one master tempo
- Loudness
- −14 LUFS, measured per BS.1770
- Stems
- Demucs, 4 stems
- Keys
- Krumhansl profiles, Camelot wheel
- Earlier models
- DecisionNN + CurveLSTM, 100+ audio features per song
What I used
- PyTorch
- LSTM
- scikit-learn
- Librosa
- Demucs
- NumPy
- Pandas