# HG changeset patch # User luisf # Date 1378386534 -3600 # Node ID 591a38eb70ebe0bebd769ce127f85df491d9337b # Parent d0543db197c6f032047e8ce1c57efe1648bf76ff adding script to run chordino 'a la Mirex way diff -r d0543db197c6 -r 591a38eb70eb audio_chord_estimation/chordino/doChordID.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/audio_chord_estimation/chordino/doChordID.sh Thu Sep 05 14:08:54 2013 +0100 @@ -0,0 +1,21 @@ +# Usage: +# doChordID.sh "/path/to/testFileList.txt" "/path/to/scratch/dir" "/path/to/results/dir" +# + +mydir=`dirname "$0"` +filelist="$1" +scratchdir="$2" +resultsdir="$3" + +if [ t"$filelist" = "t" ] || [ t"$resultsdir" = "t" ]; then + echo "Usage: $0 \"/path/to/testFileList.txt\" \"/path/to/scratch/dir\" \"/path/to/results/dir\"" + exit 2 +fi + +for i in `cat $filelist`; do + echo "Processing $i" + ofile="$resultsdir/`basename $i`.txt" + + ./chordino.sh $i $ofile +done +