Advertisement
Guest User

Windows batch file for converting samples for protracker

a guest
Apr 11th, 2019
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @ECHO off
  2. FOR %%G IN (*.wav) DO (call :process %%G)
  3. GOTO :eof
  4.  
  5. :process
  6. call :C2 %1
  7. call :F2 %1
  8. call :C3 %1
  9. call :D#3 %1
  10. call :F3 %1
  11. call :A#3 %1
  12. GOTO :eof
  13.  
  14. :C2
  15. call :resample %1 C2 8287
  16. GOTO :eof
  17.  
  18. :F2
  19. call :resample %1 F2 11084
  20. GOTO :eof
  21.  
  22. :C3
  23. call :resample %1 C3 16574
  24. GOTO :eof
  25.  
  26. :D#3
  27. call :resample %1 D#3 19705
  28. GOTO :eof
  29.  
  30. :F3
  31. call :resample %1 F3 22168
  32. GOTO :eof
  33.  
  34. :A#3
  35. call :resample %1 A#3 29557
  36. GOTO :eof
  37.  
  38. :resample
  39. SET name=%1
  40. SET newname=%name:.wav=%-%2.wav
  41. ECHO %name% %newname%
  42. ECHO %2 %3
  43. r8b_console.exe %name% %newname% %3 %3 8 4
  44. GOTO :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement