Mercurial > hg > mauch-mirex-2010
view segmentation.sh @ 0:4182672fd6f8
Initial commit of files from the mauch-MIREX directory on octave
author | Chris Cannam |
---|---|
date | Tue, 24 Apr 2012 11:52:05 +0100 |
parents | |
children |
line wrap: on
line source
#!/bin/bash infile="$1" outfile="$2" before="$(date +%s)" chromafile=tempchroma.csv mkdir -p "`dirname "$outfile"`" echo "[sonic annotator] ..." VAMP_PATH=. ./sonic-annotator-unix -d vamp:matthiasm:nnls_chroma:bothchroma -w csv --csv-stdout "$infile" 2> /dev/null | cut -d ',' -f 2- > "$chromafile" infile="`echo "$infile" | sed "s/'/''/g"`" outfile="`echo "$outfile" | sed "s/'/''/g"`" chromafile="`echo "$chromafile" | sed "s/'/''/g"`" matlab -nodisplay -nojvm -r run_segmentation\(\'"$infile"\',\'"$outfile"\'\,\'"$chromafile"\'\) > /dev/null after="$(date +%s)" elapsed_seconds="$(expr $after - $before)" echo " -->" time elapsed: $elapsed_seconds seconds echo " "