axeldelafosse / stemgen

🎛 Stemgen is a Stem file generator. Convert any track into a Stem and have fun with Traktor.
https://stemgen.dev
MIT License
212 stars 39 forks source link

Feature request: Batch a whole directory of tracks #2

Closed CorgiMan closed 2 years ago

CorgiMan commented 4 years ago

Would be nice if you can just run the command on a whole directory of files.

CorgiMan commented 4 years ago

In the meanwhile using this command:

for s in ~/Music/folder/*.mp3;
        do if [ ! -f "${s:0:-4}.stem.m4a" ]; then
                ./stemgen -i "$s";
                mv "output/$(basename "${s:0:-4}").stem.m4a" "${s:0:-4}.stem.m4a";
        else
                echo Skipping "$s". Stem already exists;
        fi ;
done
axeldelafosse commented 3 years ago

If you are on macOS, you can do this with the droplet: https://github.com/axeldelafosse/stemgen#how-to-use-the-droplet

axeldelafosse commented 2 years ago

Closing this because I don't intend to add more support for this feature. You can either create your own wrapper (I'm personally using Stemgen in a NestJS API with a proper queue) or you can use the droplet on macOS