204Extended Mixes
A local app that gives a song a drum intro made from the song's own drums, so it is easier to mix into.
- Year
- 2026
- Status
- Live
- Python
- FastAPI
- librosa
- htdemucs
- FFmpeg
The problem
A song that starts without drums is hard to mix into: there is no beat to line up. This app makes an intro for it out of the song's own drums.
Download
Free for personal use. It runs on your own computer, and your songs never leave it.
- Download for Mac (Apple chip, macOS 13 or later, 293 MB)
- Download for Windows (64-bit Windows 10 or 11, 300 MB)
The app is not signed by Apple or Microsoft yet, so the first time you open it your computer warns you. How to open it, and everything else you need to know.
What I did
The song is split into drums, bass, vocals and everything else with the htdemucs model, run through audio-separator. A constant beat grid is fitted to the drum hits, and the downbeat is estimated from where the kick is strongest and where sections change. The script then picks a steady, full 4-bar drum loop, preferring the middle of the song, and repeats it on that grid for as many bars as asked; the app starts at 8.
If the song already opens with drums, the loop hands over on the downbeat. If not, it plays on under the song: the kick is filtered out over the last bar before the entry, then the rest thins and fades. After that the original plays untouched.
A review page runs in the browser on my own machine. It queues songs, plays from four bars before the entry, and offers Keep, Fix or Delete. A finished mix is never overwritten without asking.
Before the loop is repeated it is checked for clipping, bleed from other instruments, noise smeared before hits, uneven sub-bass, clicks and rumble. Only what is found gets repaired. Each repair is checked again, and weakened or dropped if it changes the level, the hits or the tone too much.
What came out of it
In 13 test cases, synthesised drums were mixed with real vocals and music, damaged, and split with the real separator. The score is SDR in dB against the original drums; higher is closer.
- Heavy clipping, WAV: 10.64 before, 13.05 after.
- The same clipping, then 128 kbps MP3: 9.03 before, 9.36 after.
- Another groove, heavier clipping, 128 kbps: 5.05 before, 5.08 after.
- The other 10 cases: 10.35 to 21.39, unchanged.
Only the first is a clear gain. In the third the clipping was not even detected; the repair applied was for bleed.
Faults added straight to clean drums all improved, from 0.8 dB for clicks on one groove to 23 dB for rumble, but the detectors were tuned on those same tests, so they are not independent.
On 12 real songs, 9 had at least one repair and 3 were left alone. Tempo, loop position, entry time and the song itself were identical in all 12. One clipping repair was rejected by the safety check because it added bleed.
A repair for crackle riding on the kick was built and removed: its detector's first reading was a measurement artefact, and the repair did not help on the benchmark.
Limits
- It assumes one constant tempo, and folds the detected tempo into 80 to 160 BPM.
- It makes intros only, no outro.
- Four stems are made, but only the drums go into the intro. The others are used only to find bleed.
- Low bitrate is not repaired, and missing treble can only be reported.
- Beat and downbeat detection have not been scored.
- The only listening test is my own approval.
