Mercurial > hg > midi-score-follower
diff jnmr/testApp.cpp @ 49:3ce6dadd8167
Added src for the results calculator, comparing match output with the JNMR midi follower output
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Fri, 23 Mar 2012 10:53:57 +0000 |
parents | 803edc47e825 |
children | 158f5f38e9d3 |
line wrap: on
line diff
--- a/jnmr/testApp.cpp Tue Mar 06 17:11:46 2012 +0000 +++ b/jnmr/testApp.cpp Fri Mar 23 10:53:57 2012 +0000 @@ -11,17 +11,17 @@ - root = "/Users/andrew/Documents/work/MuseScore/RWC/Classical_RWC_Groundtruth/RM-C0"; + root = "/Users/andrew/Documents/work/Alignment/MuseScore/RWC/Classical_RWC_Groundtruth/RM-C0"; outputFileRoot = "../../../data/FilesOut/rwcOutputData_RM-C0"; - + annotationRoot = "/Users/andrew/Documents/work/Alignment/MuseScore/RWC/ANNOTATION/RM-C0"; myfile.open("../../../data/FilesOut/exampletest2.txt"); -// diffFile.open("../../../data/FilesOut/diffTest.txt"); + //diffFile.open("../../../data/FilesOut/diffTest.txt"); midiEvents.fileOutput = &myfile; - midiEvents.differenceOutput = &diffFile; + this->args->printArgs(); @@ -33,6 +33,8 @@ openOutputFile(2); loadAnnotation(2); + midiEvents.differenceOutput = &diffFile; + /* if (this->args->getCount() > 0){ museScoreFilename = this->args->getString(1); //printf("MUSESCORE FILENAME IS %s\n", museScoreFilename); @@ -705,7 +707,7 @@ } void testApp::loadAnnotation(const int& fileID){ - string annotationRoot = "/Users/andrew/Documents/work/MuseScore/RWC/ANNOTATION/RM-C0"; + string annotationEnding = "_annotation+WavPos.csv"; string path = makeRWCfilename(annotationRoot, fileID, annotationEnding ); midiEvents.myNotation.readInRWCfile(path);