Mercurial > hg > midi-score-follower
diff matchAnnotationSrc/testApp.cpp @ 52:13194a9dca77 tip
Added exporting of image and text data
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Tue, 17 Jul 2012 22:13:10 +0100 |
parents | ef30f465a904 |
children |
line wrap: on
line diff
--- a/matchAnnotationSrc/testApp.cpp Sat Mar 31 14:04:49 2012 +0100 +++ b/matchAnnotationSrc/testApp.cpp Tue Jul 17 22:13:10 2012 +0100 @@ -4,7 +4,14 @@ void testApp::setup(){ //fixed stuff annotationRoot = "/Users/andrew/Documents/work/Alignment/MuseScore/RWC/ANNOTATION/RM-C0"; - jnmrPlayerRoot = "/Users/andrew/Documents/work/programming/of_preRelease_v007_osx/apps/myOpenFrameworks007/JNMR_MidiFollower/bin/data/FilesOut/completeTestsTempoMAPestimate/rwcOutputData_RM-C0"; + jnmrPlayerRoot = "/Users/andrew/Documents/work/programming/of_preRelease_v007_osx/apps/myOpenFrameworks007/JNMR_MidiFollower/bin/data/FilesOut/"; + +//set which parameter set to test + jnmrPlayerRoot += "rwc_output_likelihood0pt6";//width 100ms +// jnmrPlayerRoot += "rwcOutput_likelihood0pt8_width50"; +// jnmrPlayerRoot += "completeTestsTempoMAPestimate_likelihood0pt2"; + + jnmrPlayerRoot += "/rwcOutputData_RM-C0"; // matchRoot = "/Users/andrew/Documents/work/programming/Shell Scripts/MatchAudioToMidiOutput/RWCmatch_RM-C";//ACTUAL AUDIO VERSION OF WARPED matchRoot = "/Users/andrew/Documents/work/programming/Shell Scripts/MatchMidiToMidiOutput/RWCmatch_RM-C";//MIDI VERSION OF WARPED @@ -278,18 +285,10 @@ total /= count; std::sort(diffVec.begin(), diffVec.end());//sort vector - - /* printf("SORTED TWO HUNDRED\n"); - - for (int i = 0;i < diffVec.size() ;i++){ - printf("Sort[%i] : %f\n", i, diffVec[i]); - } - */ - printf("Count %i Median %3.1f, mean is %3.1f\n", count, diffVec[(int)(diffVec.size()/2)], total); - t.median = diffVec[(int)(diffVec.size()/2)]; t.mean = total; t.count = count; + printf("Count %i Median %3.1f, mean is %3.1f\n", count, diffVec[(int)(diffVec.size()/2)], total); for (int i = 0;i < 7;i++){ t.percentiles[i] = t.percentileCount[i] / count;