Advertisement
zefie

minibae convert directory of midis to wav

Oct 12th, 2023
1,920
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @ECHO OFF
  2. SETLOCAL EnableDelayedExpansion
  3.  
  4.  
  5. SET PATCHES=patches-wtv-uncompressed.hsb
  6. SET IN_DIRECTORY=midi
  7. SET OUT_DIRECTORY=wav
  8.  
  9. for /f "tokens=*" %%f IN ('DIR !IN_DIRECTORY!\*.mid /A /B') do (
  10.     echo Converting !IN_DIRECTORY!\%%f ...
  11.     playbae -q -p %PATCHES% -o "!OUT_DIRECTORY!\%%~nf.wav" -f "!IN_DIRECTORY!\%%f"
  12. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement