summaryrefslogtreecommitdiff
path: root/mix-wav.sh
blob: f6fc8215b06107e2ba195bf5cc945aba215cbfb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 ../../..