Mercurial > hg > mirex2013
view audio_onset_detection/qm-onsetdetector/qm-onsetdetector.sh @ 29:473d83d0865c abstract
added more references; started tidying up
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Fri, 06 Sep 2013 16:17:23 +0100 |
parents | bb3155b0de01 |
children |
line wrap: on
line source
# runs sonic annotator using the specified transform file (-t) # input file: $1 # output file: $2 mydir=`dirname "$0"` infile="$1" outfile="$2" if [ t"$infile" = "t" ] || [ t"$outfile" = "t" ]; then echo "Usage: $0 infile.wav outfile.txt" exit 2 fi echo "Processing input WAV file $infile, writing results to $outfile..." 1>&2 VAMP_PATH="$mydir" sonic-annotator \ -t "$mydir"/qm-onsetdetector.ttl \ -w csv --csv-stdout --csv-separator ';' \ "$infile" \ | cut -d';' -f2 \ > "$outfile"