diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-14 19:15:58 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-14 19:15:58 +0200 |
| commit | 60fb2b7c87b7e6aa179c6a973a8d6e39cbe7c594 (patch) | |
| tree | 8a738a43e8583f38f151cdc643a38b5a9437cda2 /mix-wav.sh | |
| parent | 9766ef0f3a539be7ee68bb93918f25a3298afe39 (diff) | |
| parent | e2d8a6f26c5e44d970d7c069f171105376835495 (diff) | |
Merge branch 'master' of asdf.us:samplernn
Diffstat (limited to 'mix-wav.sh')
| -rw-r--r-- | mix-wav.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mix-wav.sh b/mix-wav.sh new file mode 100644 index 0000000..5348309 --- /dev/null +++ b/mix-wav.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +if [ "$#" -ne 2 ]; then + echo "Usage: $0 <results/exp\:experiment> render_name" + exit +fi + +dir=$1 +name=$2 +now=`date +'%Y%m%d'` + +# echo "rendering $name" + +cd "$dir/samples" +for i in * +do + if [[ -d $i ]]; then + cd $i + echo $i + ../../../xfade.sh + sox mix.wav norm.wav norm + mv norm.wav "../../../../wav/${i}.wav" + cd .. + fi +done +cd ../../.. |
