Skip to content

Instantly share code, notes, and snippets.

@johndpope
Last active May 7, 2020 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johndpope/859ea77521ef0dfe17eff15fadf1f9a1 to your computer and use it in GitHub Desktop.
Save johndpope/859ea77521ef0dfe17eff15fadf1f9a1 to your computer and use it in GitHub Desktop.
gist to split out youtube mp3-> tracks
export PATH="$HOME/.cargo/bin:$PATH"
mp3(){cd /Users/johndpope/Downloads/spleeter
mv *.mp3 backup
mv output/* backup
youtube-dl $1 --extract-audio --audio-format mp3 -o "%(title)s-%(id)s.%(ext)s"
thefile=$(ls *.mp3)
echo "Splitting file..."
split $thefile
cp output/* /Users/johndpope/Dropbox
mv output/* backup
}
split(){ spleeter separate -p spleeter:5stems -o output -i "$1" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment