Mercurial > hg > silvet
annotate testdata/TRIOS-silvet/calculate.sh @ 61:3af587be9b8a
Script to calculate test data using Silvet
author | Chris Cannam |
---|---|
date | Mon, 28 Apr 2014 12:45:06 +0100 |
parents | |
children | 3e7e3c610fae |
rev | line source |
---|---|
Chris@61 | 1 #!/bin/bash |
Chris@61 | 2 |
Chris@61 | 3 # Run this from the directory that contains it |
Chris@61 | 4 |
Chris@61 | 5 trios_path="/home/cannam/Music/TRIOS_dataset" |
Chris@61 | 6 |
Chris@61 | 7 if [ ! -d "$trios_path" ]; then |
Chris@61 | 8 echo "TRIOS dataset directory $trios_path not found, giving up" |
Chris@61 | 9 exit 1 |
Chris@61 | 10 fi |
Chris@61 | 11 |
Chris@61 | 12 outbase="`pwd`" |
Chris@61 | 13 echo "Will read TRIOS files from $trios_path" |
Chris@61 | 14 echo "Will write output files below $outbase" |
Chris@61 | 15 echo "If either of these is incorrect, hit ctrl-C now!" |
Chris@61 | 16 sleep 8 |
Chris@61 | 17 |
Chris@61 | 18 if ! sonic-annotator -v ; then |
Chris@61 | 19 echo "Failed to run sonic-annotator (not in PATH?), giving up" |
Chris@61 | 20 exit 1 |
Chris@61 | 21 fi |
Chris@61 | 22 |
Chris@61 | 23 VAMP_PATH=../.. sonic-annotator \ |
Chris@61 | 24 -w csv \ |
Chris@61 | 25 --csv-basedir "$outbase" \ |
Chris@61 | 26 -d vamp:silvet:silvet:notes \ |
Chris@61 | 27 -r "$trios_path" |
Chris@61 | 28 |