view matchAnnotationSrc/jnmrMidiPlayerAnnotations.h @ 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
line wrap: on
line source
/*
 *  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