Mercurial > hg > midi-score-follower
diff jnmr/testApp.cpp @ 50:158f5f38e9d3
outputting exact difference for annotations, comparison with match annotations is now working over all rwc files
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Thu, 29 Mar 2012 13:41:59 +0100 |
parents | 3ce6dadd8167 |
children | 13194a9dca77 |
line wrap: on
line diff
--- a/jnmr/testApp.cpp Fri Mar 23 10:53:57 2012 +0000 +++ b/jnmr/testApp.cpp Thu Mar 29 13:41:59 2012 +0100 @@ -14,13 +14,13 @@ 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"); + //myfile.open("../../../data/FilesOut/exampletest2.txt"); //diffFile.open("../../../data/FilesOut/diffTest.txt"); - midiEvents.fileOutput = &myfile; +// midiEvents.fileOutput = &myfile; @@ -220,6 +220,7 @@ float playedDuration = m.getArgAsFloat(0); double recordedDuration = midiEvents.recordedEventTimes[midiEvents.recordedEventTimes.size()-1]; midiEvents.speedPriorValue = recordedDuration/playedDuration; + midiEvents.testSpeedPriorSetting(); printf("played duration %f, recorded %f\n", playedDuration, recordedDuration); printf("speed prior set to %f\n", midiEvents.bayesStruct.speedPriorValue); @@ -595,7 +596,7 @@ sendNoteToMuseScore(); diffFile.close(); - myfile.close(); + //myfile.close(); }