Chris@19: # runs sonic annotator using the specified transform file (-t) Chris@19: # input file: $1 Chris@19: # output file: $2 Chris@19: Chris@19: mydir=`dirname "$0"` Chris@19: infile="$1" Chris@19: outfile="$2" Chris@19: Chris@19: if [ t"$infile" = "t" ] || [ t"$outfile" = "t" ]; then Chris@19: echo "Usage: $0 infile.wav outfile.txt" Chris@19: exit 2 Chris@19: fi Chris@19: Chris@19: echo "Processing input WAV file $infile, writing results to $outfile..." 1>&2 Chris@19: Chris@19: VAMP_PATH="$mydir" sonic-annotator \ Chris@19: -t "$mydir"/qm-onsetdetector.ttl \ Chris@19: -w csv --csv-stdout --csv-separator ';' \ Chris@19: "$infile" \ Chris@19: | cut -d';' -f2 \ Chris@19: > "$outfile" Chris@19: