view annotationCalculatorSrc/EwertAnnotationReader.h @ 56:4394c9490716 tip

minor changes
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Mon, 24 Dec 2012 18:58:39 +0000
parents 93d21c20cfbc
children
line wrap: on
line source
/*
 *  EwertAnnotationReader.h
 *  annotationResultCalculator
 *
 *  Created by Andrew on 14/05/2012.
 *  Copyright 2012 QMUL. All rights reserved.
 *
 */


#ifndef EWERT_ANNOTATION_READER
#define EWERT_ANNOTATION_READER

#include "ofMain.h"

// basic file operations for text file stuff
#include <iostream>
#include <fstream>
using namespace std;


class EwertAnnotationReader{
	public:	
	
	EwertAnnotationReader();
	
	typedef std::vector<double> DoubleVector;
	//DoubleVector beatTimes;
	
	typedef std::vector<DoubleVector> DoubleMatrix;
	DoubleMatrix alignmentTimes;
	
	void readInBeatsFile(std::string& pathName);
	bool swapOrder;
	
	void clearAlignmentMatrix();
	bool annotationsLoaded;
};
#endif