ref: 7e6aa6d2a98867e607d584dc9847b43375b0b8dd
parent: db0575accc266107088ade7ebaa2bfcd9e5bc051
author: robs <robs>
date: Sun May 31 10:43:58 EDT 2009
updated for multi-channel graph
--- a/src/test-srcs
+++ b/src/test-srcs
@@ -18,7 +18,8 @@
test_converters () {
# Create input file
- $SOX -c 2 -r $1 -n -twavpcm $IN synth 20 sin 0:`expr $1 / 2` gain -2
+ max=`expr $1 / 2`
+ $SOX -r $1 -n -twavpcm $IN synth 20 sin 0:$max sin $max:0 gain -2
for src in \
"rate -h" \
"rate -v" \
@@ -31,8 +32,8 @@
*) time -f %U -o $TIME $SOX $IN -r $2 $OUT $src;;
esac
t=`cat $TIME`
- $SOX $OUT -n remix - spectrogram \
- -x 30 -z $RANGE -w kaiser \
+ $SOX $OUT -n spectrogram \
+ -X 30 -z $RANGE -w kaiser \
-t "$1->$2: $src" -c "${t}s user time" \
-o "$1_$2_`echo $src | tr ' ' '_'`.png"
done