Mercurial > hg > mirex2013
annotate audio_onset_detection/qm-onsetdetector/qm-onsetdetector.sh @ 86:01f69f1d5d3c tip
Add further archive versions
author | Chris Cannam |
---|---|
date | Thu, 01 Aug 2019 17:54:05 +0100 |
parents | bb3155b0de01 |
children |
rev | line source |
---|---|
Chris@19 | 1 # runs sonic annotator using the specified transform file (-t) |
Chris@19 | 2 # input file: $1 |
Chris@19 | 3 # output file: $2 |
Chris@19 | 4 |
Chris@19 | 5 mydir=`dirname "$0"` |
Chris@19 | 6 infile="$1" |
Chris@19 | 7 outfile="$2" |
Chris@19 | 8 |
Chris@19 | 9 if [ t"$infile" = "t" ] || [ t"$outfile" = "t" ]; then |
Chris@19 | 10 echo "Usage: $0 infile.wav outfile.txt" |
Chris@19 | 11 exit 2 |
Chris@19 | 12 fi |
Chris@19 | 13 |
Chris@19 | 14 echo "Processing input WAV file $infile, writing results to $outfile..." 1>&2 |
Chris@19 | 15 |
Chris@19 | 16 VAMP_PATH="$mydir" sonic-annotator \ |
Chris@19 | 17 -t "$mydir"/qm-onsetdetector.ttl \ |
Chris@19 | 18 -w csv --csv-stdout --csv-separator ';' \ |
Chris@19 | 19 "$infile" \ |
Chris@19 | 20 | cut -d';' -f2 \ |
Chris@19 | 21 > "$outfile" |
Chris@19 | 22 |