Downloads · 30 days
0
johaness14/AI_MiniDJ
AI_MiniDJ is a machine learning model from johaness14. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Ever wondered if an AI could learn the 'art' of DJing? This project is my dive into that very question. It's an end-to-end prototype of an AI DJ, built from scratch, that tries to automatically find compatible songs a…
Downloads · 30 days
0
Access
Public
Updated Nov 29, 2025
Repo size
3.2 MB
Likes
1
Public
Click a slice to open those files.
.pkl3.2 MB · 98%
From the Hugging Face model README
Ever wondered if an AI could learn the 'art' of DJing? This project is my dive into that very question. It's an end-to-end prototype of an AI DJ, built from scratch, that tries to automatically find compatible songs and mix them together.
It's not perfect, it's not Skrillex, but it's a fully functional proof-of-concept that shows just how far we can get with open-source tools.
The idea for this sparked after seeing Apple Music's slick AutoMix feature (introduced in iOS 26) and hearing about Spotify's AI DJ. These tools create seamless transitions that feel like a professional DJ set, blending tracks in a way that's genuinely impressive. That got me thinking: what kind of magic is happening under the hood? Could I try to replicate some of that magic myself?
As cool as these commercial features are, they're often locked inside specific ecosystems and subscriptions. For many of us (shout-out to my fellow Indonesians where Spotify DJ isn't available!), these tools are out of reach.
This project is a "for fun, for science" attempt to explore and democratize that tech. The goal wasn't to compete with multi-billion dollar companies, but to build a transparent, open-source prototype that shows the core logic. It's for anyone who wants to peek behind the curtain, play with the code, and learn how an AI can be taught to "think" about music.
Download and try it. (The notebook is self-contained! All the necessary models and data are automatically downloaded from a Hugging Face repository, so you can run it with just a few clicks.)
The whole system is built on a three-stage pipeline:
The Ears (Feature Extraction): A script that "listens" to thousands of songs from the Free Music Archive (FMA) dataset and extracts key musical features like BPM (tempo), key, energy (RMS), and brightness (spectral centroid) using librosa.
The Brain (The Scorer AI): A PyTorch-based neural network trained to act as the "taste-maker." It looks at the features of two different songs and outputs a "mixability score" from 0 to 1. It was trained with a simple rulebook: a "good mix" involves similar BPMs and harmonically compatible keys.
The Hands (The Mixing Engine): If the AI Brain gives a high score (thinks the tracks are a good match), this engine takes over. It performs a sophisticated, automated mix by:
So, what's the catch? Here's the real talk on what this experimental project can and can't do.
This project would have been impossible without the incredible open-source community and data providers.
fma_small dataset was the backbone of this entire experiment.