Mercurial > hg > silvet
diff testdata/evaluation/run.sh @ 197:ad706e771398
Run again with parameter settings for instruments. I see the results are worse!
author | Chris Cannam |
---|---|
date | Wed, 04 Jun 2014 11:45:42 +0100 |
parents | 4259005def86 |
children | 607c3c92822f |
line wrap: on
line diff
--- a/testdata/evaluation/run.sh Wed Jun 04 11:30:21 2014 +0100 +++ b/testdata/evaluation/run.sh Wed Jun 04 11:45:42 2014 +0100 @@ -36,7 +36,9 @@ instfile="/tmp/$$instruments.txt" -trap 'rm -f "$outfile" "$tmpwav" "$instfile" "$outfile.lab"' 0 +transfile="/tmp/$$transform.ttl" + +trap 'rm -f "$outfile" "$tmpwav" "$instfile" "$transfile" "$outfile.lab"' 0 # Use the mix and single-instrument non-synthetic files for a (varied) # subset of the TRIOS dataset. Omit percussion (but we still use the @@ -80,13 +82,14 @@ sox "$infile" "$tmpwav" gain -n -6.020599913279624 - ##!!! todo: actually apply the instrument setting! + # generate the transform by interpolating the instrument parameter + cat transform.ttl | sed "s/INSTRUMENT_PARAMETER/$instrument/" > "$transfile" sonic-annotator \ --writer csv \ --csv-one-file "$outfile" \ --csv-force \ - --default vamp:silvet:silvet:notes \ + --transform "$transfile" \ "$tmpwav" cat "$outfile" | \