Mercurial > hg > midi-score-follower
diff matchAnnotationSrc/jnmrMidiPlayerAnnotations.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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/matchAnnotationSrc/jnmrMidiPlayerAnnotations.h Fri Mar 23 10:53:57 2012 +0000 @@ -0,0 +1,39 @@ +/* + * jnmrMidiPlayerannotations.h + * matchJNMRannotationReader + * + * Created by Andrew on 23/03/2012. + * Copyright 2012 QMUL. All rights reserved. + * + */ + + +#ifndef JNMR_ANNOTATIONS +#define JNMR_ANNOTATIONS + +#include "ofMain.h" + +#include <iostream> +#include <fstream> +using namespace std; + +struct jnmrMidiPlayerNotation { + + float midiTime; + float audioTime; + float difference; +}; + +class jnmrMidiPlayerAnnotations{ +public: + //matchAnnotations(); + + void readInjnmrMidiPlayerFile(std::string& pathName); + //~Annotations(); + void printAnnotations(); + vector<jnmrMidiPlayerNotation> jnmrMidiPlayerData; + + vector<float> differences; + +}; +#endif \ No newline at end of file
