Skip to content

How AutoMix works

Before AutoMix can mix two songs, nori measures each one on your device. With both songs measured, it plans the mix before the first song ends, then plays the two together on the beat.

From a song to a mix

nori decodes each song once and listens to all of it. It finds:

  • the tempo, and where each beat and each bar falls
  • how steady the beat is, since a live band drifts
  • the key and the loudness
  • where the intro ends, where the outro starts and where the drop comes in
  • where the singing starts, and where the last sung line ends

nori measures a song as its bytes arrive: while it plays, while nori fetches it ahead, or while it downloads. The measuring runs at the lowest priority, so it never holds up the music.

nori measures songs even with AutoMix off, because the singing it finds also checks the timing of synced lyrics.

On Android, AutoMix also runs Beat This!, a neural network that finds beats, over each song’s start and end. Where the model is sure, its beats replace nori’s own. nori downloads the model once, from its authors, and deletes it when you turn AutoMix off.

nori plans with what it knows about both songs. It tries these, best first:

  1. Both songs have a steady beat and close tempos: a mix on the beat. The next song’s tempo changes to match, but not its pitch. Its drop lands on a downbeat of the first song, where the bass passes from one song to the other.
  2. Only one song has a steady beat: a fade that follows that song’s bars.
  3. Neither beat holds: an overlap where one song gets quiet and the other gets loud.
  4. nori knows nothing of the songs yet: a plain crossfade at an even level.

So a fade means that a song has no steady beat or is not measured yet. It can also mean that the tempos are too far apart for the style.

Songs in close keys blend for longest. Keys far apart get a quick swap. A big gap in loudness or in brightness keeps the overlap short.

While Keep albums gapless is on, songs of one album in order join without a mix. Many albums run one song into the next on purpose.

So that two voices do not sing over each other. When both songs are sung where they would overlap, nori keeps the mix short and starts it after the last sung line when it can. If the first song stops cold, the next one starts on that stop, under its ring-out.

At most 15 seconds of either song’s music, not counting silence. A DJ mix that lands both drops together can leave up to 32 seconds of the ending.

AutoMix and crossfade has the settings, the two styles and when AutoMix does not mix.