Mercurial > hg > silvet
changeset 149:315986140a70
Normalise input file in the same way as the MIREX submission code
author | Chris Cannam |
---|---|
date | Wed, 14 May 2014 18:08:47 +0100 |
parents | 9cb304863a9f |
children | d2bc51cc7f57 |
files | testdata/timing/run.sh |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/testdata/timing/run.sh Wed May 14 17:52:05 2014 +0100 +++ b/testdata/timing/run.sh Wed May 14 18:08:47 2014 +0100 @@ -22,14 +22,18 @@ outfile="/tmp/$$" -trap 'rm -f "$outfile" "$outfile.lab"' 0 +tmpwav="/tmp/$$norm.wav" + +trap 'rm -f "$outfile" "$tmpwav" "$outfile.lab"' 0 + +sox "$trios_path/take_five/mix.wav" "$tmpwav" gain -n -6.020599913279624 time sonic-annotator \ --writer csv \ --csv-one-file "$outfile" \ --csv-force \ --default vamp:silvet:silvet:notes \ - "$trios_path/take_five/mix.wav" + "$tmpwav" cat "$outfile" | \ sed 's/^[^,]*,//' | \