Split a song
You have a song file. You want four files, one for each part. This page gets you there once Demucs is installed.
-
Find your song. Any common audio file works. The official README lists wav, flac, mp3, ogg and aac, and says other formats work if ffmpeg is installed. We ran an mp3 with no ffmpeg on our machine and it worked.
-
Open a terminal in the folder with the song. If you are not sure how, open the terminal first and use
cdto move into the folder. For example,cd Musicmoves into a folder called Music. -
Run Demucs on the file. Put the file name in quotes if it has spaces. This is the whole command:
demucs "my favorite track.mp3"If you installed Demucs with
uvxinstead, use this instead:uvx --python 3.12 --with numpy demucs "my favorite track.mp3". The--with numpypart is explained on the Fixes page. -
Wait. The first run downloads the model, so it takes longer. You will see progress bars. When a new line appears, it is done.
-
Open the output folder. It is called
separatedand sits in the folder where you ran the command.
What you get
The official README says the files go in separated/MODEL_NAME/TRACK_NAME, as four stereo wav files at 44.1 kHz. With the default model, htdemucs, and a song called my favorite track.mp3, that looks like this:
separated/
htdemucs/
my favorite track/
vocals.wav
drums.wav
bass.wav
other.wav
We saw the same layout on our Linux test run (we picked the output folder with -o out, so ours was out/htdemucs/your-song/).
To open the folder from the terminal: on Windows type explorer separated (from the official Windows page). On a Mac, open separated does it. On Linux, use your file manager.
Vocals
The singing voice.
Drums
The drum kit.
Bass
The bass line.
Other
Everything else in the song.
Make a karaoke track
Add --two-stems=vocals. The README calls this karaoke mode: you get the vocals on one side and everything else on the other.
demucs --two-stems=vocals "my favorite track.mp3"
The README says this is not faster and does not use less memory. Demucs still separates the whole song first, then mixes the parts together. You can use drums or bass in place of vocals.
Practise along
Open the four files in any audio editor or music player that can load several tracks. Mute the stem you play, for example bass.wav, and play along with the rest. The editor is up to you. Audacity is a free one.
What to do with the stems
- Listen to one part on its own, such as the bass line or the drums.
- Mute one part and play along with the rest.
- Mix the parts again with different volumes, or use them in a remix.
Only use songs you are allowed to use that way. This guide does not cover that.
A few options
These come from the official README. The models page covers -n.
--mp3- Save the stems as mp3 files instead of wav.
-d cpu- Use the normal processor instead of a graphics card.
--segment SEGMENT- Cut the song into shorter pieces to use less memory. See Fixes.
-o FOLDER- Write the output to a folder you name, instead of
separated. Our Linux test used this.
Full list: Separating tracks in the official README.