Skip to content

Instantly share code, notes, and snippets.

@mushonnip
Created April 12, 2022 22:17
Show Gist options
  • Save mushonnip/7bd06fd616013cfe39fce080fbf7f0c6 to your computer and use it in GitHub Desktop.
Save mushonnip/7bd06fd616013cfe39fce080fbf7f0c6 to your computer and use it in GitHub Desktop.
drag and drop spleeter separate process
@echo off
setlocal enabledelayedexpansion
set argCount=0
for %%x in (%*) do (
set /A argCount+=1
set "argVec[!argCount!]=%%~x"
@REM set "argName[!argCount!]=%%~nx"
)
echo Processing: %argCount% file(s)
echo %*
python -m spleeter separate -o output/ %* -c ogg -f "{filename}.{instrument}.{codec}"
for /L %%i in (1,1,%argCount%) do (
cd output
ren *.vocals.ogg *.
ren *.vocals *.ogg
cd ..
move !argVec[%%i]! raw_done
)
@REM pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment