MAI Playlist Engine
Transition-aware playlist tools that turn a track list into a smoother listening journey.

Why I made it
I wanted playlists to feel curated rather than shuffled: each handoff should make musical sense, even when the tracks come from different genres.
How it works
The Python pipeline accepts a YouTube playlist or CSV, normalizes its metadata, and scores directed track-to-track transitions. Its baseline combines harmonic compatibility, octave-aware tempo matching, beat and phrase alignment, and mood bridges. Beam search generates candidate orders; a bounded 2-opt pass refines the strongest one.
To improve on hand-built rules, the training pipeline scrapes curated mixes, resolves tracklists, mines hard negatives, and trains transition and energy-arc models. Sparse data does not override the baseline: MAI deliberately keeps transparent heuristics in control until learned scores prove reliable.
Current progress
Playlist analysis, reordering, multi-set generation, training, cache management, and YouTube/YouTube Music export are implemented. The next planned work is local audio-folder ingestion, evaluation reports, and a lightweight run-monitoring UI.