summaryrefslogtreecommitdiff
path: root/results/xfade.sh
blob: 55d343d90d0415aa526c38080a7080b7f5e8fabb (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
crossfade_dur=1
i=0
limit=10000

for file in `ls *.wav | sort -V`
do
  i=$((i+1))
  if [ $i -eq $limit ]
  then
    break
  fi

  if [ $i -eq 1 ]
  then
    sox $file mix.wav highpass 10
  else
    # ../../crossfade_cat.sh $crossfade_dur mix.wav $file yes yes
    # echo $file
    sox $file tmp.wav highpass 10
    sox mix.wav tmp.wav out.wav splice $(soxi -D mix.wav),0.01
    mv out.wav mix.wav
    rm tmp.wav
  fi
done