Skip to content

Instantly share code, notes, and snippets.

@ryohey
Created September 16, 2013 13:20
Show Gist options
  • Select an option

  • Save ryohey/6580601 to your computer and use it in GitHub Desktop.

Select an option

Save ryohey/6580601 to your computer and use it in GitHub Desktop.
#!/bin/bash
for in_file in $(ls -1 *.wav)
do
out_file="fade/${in_file}.wav"
echo "Processing: \"$in_file\". Saving as \"$out_file\" ..."
sox "$in_file" "$out_file" fade t 0 0 2
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment