Skip to content

Instantly share code, notes, and snippets.

@Zeinok
Created April 6, 2020 04:19
Show Gist options
  • Save Zeinok/8010c7a18265cf3480f545b8a4caaa5e to your computer and use it in GitHub Desktop.
Save Zeinok/8010c7a18265cf3480f545b8a4caaa5e to your computer and use it in GitHub Desktop.
jsidplay2 ripper (2018)
@echo off
setlocal EnableDelayedExpansion
set jsidplay2=jsidplay2_console-3.9.exe
set/p sidfile=Enter SID file (you can drag file to here and press enter):
set track=1
set/p track=Which track?(default=1):
set/p length=Enter length(mm:ss)(if no just press enter):
choice /m "Record channel 4?"
set record4=%errorlevel%
echo Recording master audio... (0.wav)
set name=0
call :updateCmdLine
start "master" /min cmd /c "%commandline%"
echo Recording channel 1... (1.wav)
set name=1
call :updateCmdLine
start "CH1" /min cmd /c "echo 234 | %commandline%"
echo Recording channel 2... (2.wav)
set name=2
call :updateCmdLine
start "CH2" /min cmd /c "echo 134 | %commandline%"
echo Recording channel 3... (3.wav)
set name=3
call :updateCmdLine
start "CH3" /min cmd /c "echo 124 | %commandline%"
if NOT %record4%==1 then goto :EOF
echo Recording channel 4... (4.wav)
set name=4
call :updateCmdLine
start "CH4" /min cmd /c "echo 123 | %commandline%"
pause
goto :EOF
:updateCmdLine
set commandline=%jsidplay2% -a WAV -f HIGH -s -o %track% -r !name! %sidfile%
if defined length (
set commandline=%jsidplay2% -a WAV -f HIGH -g %length% -s -o %track% -r !name! %sidfile%
)
echo New commandline: !commandline!
goto :EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment