comparison audio_onset_detection/onsetsds/onsetsds.sh @ 39:51f28d65d7f6 abstract

Add OnsetsDS task
author Chris Cannam
date Fri, 06 Sep 2013 18:34:57 +0100
parents
children
comparison
equal deleted inserted replaced
38:e0d501dfae03 39:51f28d65d7f6
1 #!/bin/bash
2 # runs sonic annotator using the specified transform file (-t)
3 # input file: $1
4 # output file: $2
5
6 mydir=`dirname "$0"`
7 infile="$1"
8 outfile="$2"
9
10 if [ t"$infile" = "t" ] || [ t"$outfile" = "t" ]; then
11 echo "Usage: $0 infile.wav outfile.txt"
12 exit 2
13 fi
14
15 echo "Processing input WAV file $infile, writing results to $outfile..." 1>&2
16
17 VAMP_PATH="$mydir" sonic-annotator \
18 -t "$mydir"/onsetsds.ttl \
19 -w csv --csv-stdout --csv-separator ';' \
20 "$infile" \
21 | cut -d';' -f2 \
22 > "$outfile"
23