changeset 21:591a38eb70eb

adding script to run chordino 'a la Mirex way
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 05 Sep 2013 14:08:54 +0100
parents d0543db197c6
children 8f1a16a22325
files audio_chord_estimation/chordino/doChordID.sh
diffstat 1 files changed, 21 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /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
+