Mercurial > hg > midi-score-follower
view matchAnnotationSrc/testApp.h @ 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 | |
children | 158f5f38e9d3 |
line wrap: on
line source
#pragma once #include "ofMain.h" #include "Annotations.h" #include "matchAnnotations.h" #include "jnmrMidiPlayerAnnotations.h" class testApp : public ofBaseApp{ public: void setup(); void update(); void draw(); void keyPressed (int key); void keyReleased(int key); void mouseMoved(int x, int y ); void mouseDragged(int x, int y, int button); void mousePressed(int x, int y, int button); void mouseReleased(int x, int y, int button); void windowResized(int w, int h); void dragEvent(ofDragInfo dragInfo); void gotMessage(ofMessage msg); Annotations rwcAnnotations; void loadRWCfileNumber(const int& i); vector<std::string> rwcFileNameStrings; void createRWCfilenameStrings(); string annotationRoot ; std::string makeRWCfilename(std::string& root, const int& fileID, std::string& endPart); void loadAnnotation(const int& fileID); string matchPath; matchAnnotations matchNotations; string jnmrPlayerPath, jnmrPlayerRoot; jnmrMidiPlayerAnnotations jnmrPlayerAnnotations; void calculateMatchErrors(); void sortDifferenceVector(vector<float> diffVec); };