← Back to work

MIX_SORTERHarmonic mixing engine in Rust

Harmonic mixing engine in Rust

MIX_SORTER

  • Rust
  • Spotify Web API
  • rspotify
  • serde
  • Camelot wheel

Overview

A Rust CLI that reorders Spotify playlists for DJ-friendly harmonic mixing. It matches each track against your own BPM + Camelot-key metadata, sorts by harmonic compatibility, and writes the order back.

Architecture

local DBBPM + Camelot
match + sortharmonic
Spotify APIwrite order

Highlights

  • Harmonic sort by the Camelot wheel + tempo, so adjacent tracks mix in key.
  • Metadata precedence: your local DB > Exportify CSV > skip — your data is the authority, Spotify is just the delivery surface.
  • Tolerant matching across title/artist noise; validates Camelot notation (e.g. 8A, 11B).
  • Rust + rspotify (OAuth) + serde; clear terminal markers for matched / missing / key-error rows.