summaryrefslogtreecommitdiff
path: root/mix-wav.sh
blob: ceb4394a68f34c427752924c49881749de0eda14 (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
#!/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
cd ../../..