Mercurial > hg > silvet
comparison 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 |
comparison
equal
deleted
inserted
replaced
60:5472c6bbd936 | 61:3af587be9b8a |
---|---|
1 #!/bin/bash | |
2 | |
3 # Run this from the directory that contains it | |
4 | |
5 trios_path="/home/cannam/Music/TRIOS_dataset" | |
6 | |
7 if [ ! -d "$trios_path" ]; then | |
8 echo "TRIOS dataset directory $trios_path not found, giving up" | |
9 exit 1 | |
10 fi | |
11 | |
12 outbase="`pwd`" | |
13 echo "Will read TRIOS files from $trios_path" | |
14 echo "Will write output files below $outbase" | |
15 echo "If either of these is incorrect, hit ctrl-C now!" | |
16 sleep 8 | |
17 | |
18 if ! sonic-annotator -v ; then | |
19 echo "Failed to run sonic-annotator (not in PATH?), giving up" | |
20 exit 1 | |
21 fi | |
22 | |
23 VAMP_PATH=../.. sonic-annotator \ | |
24 -w csv \ | |
25 --csv-basedir "$outbase" \ | |
26 -d vamp:silvet:silvet:notes \ | |
27 -r "$trios_path" | |
28 |