Mercurial > hg > multitrack-audio-matcher
diff src/MatchMarkers.h @ 50:93d21c20cfbc
Added Markers and the ability to switch to these points in the file when playing
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Thu, 14 Jun 2012 20:04:49 +0100 |
parents | |
children | 6f6461b0d07f |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/MatchMarkers.h Thu Jun 14 20:04:49 2012 +0100 @@ -0,0 +1,40 @@ +/* + * MatchMarkers.h + * MultipleAudioMathcher + * + * Created by Andrew on 14/06/2012. + * Copyright 2012 QMUL. All rights reserved. + * + */ + + +#ifndef MATCH_MARKERS_H +#define MATCH_MARKERS_H + +#include <iostream> +#include <fstream> +using namespace std; + +#include "ofMain.h" + +class MatchMarkers{ + + public: + MatchMarkers(); + + //vector to hold markers + typedef std::vector<double> DoubleVector; + DoubleVector markers; + + //fns + void addMarker(const double& time); + void deleteMarker(const int& markerIndex); + +//text file stuff + void saveMarkers(); + void saveMarkers(const std::string& filePath); + + ofstream markerOutputFile; + +}; +#endif \ No newline at end of file