Mercurial > hg > midi-score-follower
annotate 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 |
rev | line source |
---|---|
andrew@49 | 1 #pragma once |
andrew@49 | 2 |
andrew@49 | 3 #include "ofMain.h" |
andrew@49 | 4 |
andrew@49 | 5 #include "Annotations.h" |
andrew@49 | 6 #include "matchAnnotations.h" |
andrew@49 | 7 #include "jnmrMidiPlayerAnnotations.h" |
andrew@49 | 8 |
andrew@49 | 9 class testApp : public ofBaseApp{ |
andrew@49 | 10 |
andrew@49 | 11 public: |
andrew@49 | 12 void setup(); |
andrew@49 | 13 void update(); |
andrew@49 | 14 void draw(); |
andrew@49 | 15 |
andrew@49 | 16 void keyPressed (int key); |
andrew@49 | 17 void keyReleased(int key); |
andrew@49 | 18 void mouseMoved(int x, int y ); |
andrew@49 | 19 void mouseDragged(int x, int y, int button); |
andrew@49 | 20 void mousePressed(int x, int y, int button); |
andrew@49 | 21 void mouseReleased(int x, int y, int button); |
andrew@49 | 22 void windowResized(int w, int h); |
andrew@49 | 23 void dragEvent(ofDragInfo dragInfo); |
andrew@49 | 24 void gotMessage(ofMessage msg); |
andrew@49 | 25 |
andrew@49 | 26 Annotations rwcAnnotations; |
andrew@49 | 27 |
andrew@49 | 28 void loadRWCfileNumber(const int& i); |
andrew@49 | 29 vector<std::string> rwcFileNameStrings; |
andrew@49 | 30 void createRWCfilenameStrings(); |
andrew@49 | 31 string annotationRoot ; |
andrew@49 | 32 std::string makeRWCfilename(std::string& root, const int& fileID, std::string& endPart); |
andrew@49 | 33 void loadAnnotation(const int& fileID); |
andrew@49 | 34 |
andrew@49 | 35 string matchPath; |
andrew@49 | 36 |
andrew@49 | 37 matchAnnotations matchNotations; |
andrew@49 | 38 |
andrew@49 | 39 string jnmrPlayerPath, jnmrPlayerRoot; |
andrew@49 | 40 jnmrMidiPlayerAnnotations jnmrPlayerAnnotations; |
andrew@49 | 41 |
andrew@49 | 42 void calculateMatchErrors(); |
andrew@49 | 43 void sortDifferenceVector(vector<float> diffVec); |
andrew@49 | 44 |
andrew@49 | 45 }; |