view matchAnnotationSrc/jnmrMidiPlayerAnnotations.h @ 52:13194a9dca77 tip

Added exporting of image and text data
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Tue, 17 Jul 2012 22:13:10 +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