Skip to content

Instantly share code, notes, and snippets.

@drzhnn
Last active December 25, 2015 12:29
Show Gist options
  • Save drzhnn/6977276 to your computer and use it in GitHub Desktop.
Save drzhnn/6977276 to your computer and use it in GitHub Desktop.
Add user-defined fade-in and fade-out to all input files using SoX.
@echo off
set /p fadein="Fade-in length (in seconds): "
set /p fadeout="Fade-out length (in seconds): "
for %%A in (%*) do sox %%A "%%~nA"_faded%%~xA fade t %fadein% 0 %fadeout%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment