# HG changeset patch # User Chris Cannam # Date 1398685506 -3600 # Node ID 3af587be9b8a45cb34c48703b030c0ad4b56eca2 # Parent 5472c6bbd936af7c6746c894682c2368c18a4db9 Script to calculate test data using Silvet diff -r 5472c6bbd936 -r 3af587be9b8a testdata/TRIOS-silvet/calculate.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testdata/TRIOS-silvet/calculate.sh Mon Apr 28 12:45:06 2014 +0100 @@ -0,0 +1,28 @@ +#!/bin/bash + +# Run this from the directory that contains it + +trios_path="/home/cannam/Music/TRIOS_dataset" + +if [ ! -d "$trios_path" ]; then + echo "TRIOS dataset directory $trios_path not found, giving up" + exit 1 +fi + +outbase="`pwd`" +echo "Will read TRIOS files from $trios_path" +echo "Will write output files below $outbase" +echo "If either of these is incorrect, hit ctrl-C now!" +sleep 8 + +if ! sonic-annotator -v ; then + echo "Failed to run sonic-annotator (not in PATH?), giving up" + exit 1 +fi + +VAMP_PATH=../.. sonic-annotator \ + -w csv \ + --csv-basedir "$outbase" \ + -d vamp:silvet:silvet:notes \ + -r "$trios_path" +