Mercurial > hg > multitrack-audio-matcher
view annotationCalculatorSrc/BeatAnnotationReader.h @ 43:b7ad807c9cde
Added annotation writing and the src for the result calculator
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Fri, 04 May 2012 15:33:36 +0100 |
parents | |
children | d23685b9e766 |
line wrap: on
line source
/* * BeatAnnotationReader.h * annotationResultCalculator * * Created by Andrew on 03/05/2012. * Copyright 2012 QMUL. All rights reserved. * */ #ifndef BEAT_ANNOTATION_READER #define BEAT_ANNOTATION_READER #include "ofMain.h" // basic file operations for text file stuff #include <iostream> #include <fstream> using namespace std; class BeatAnnotationReader{ public: typedef std::vector<double> DoubleVector; DoubleVector beatTimes; typedef std::vector<DoubleVector> DoubleMatrix; DoubleMatrix alignmentTimes; void readInBeatsFile(std::string& pathName); void printBeatTimes(); void readInMultiAlignmentFile(std::string pathName); }; #endif