view src/BeatWriter.h @ 2:7ec1ed0b2eb0

Added offline precise onset detection, outputting precise locations in seconds to text file
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Mon, 30 Dec 2013 14:08:42 +0000
parents
children
line wrap: on
line source
/*
 *  BeatWriter.h
 *  BTrack
 *
 *  Created by Andrew on 31/10/2013.
 *  Copyright 2013 QMUL. All rights reserved.
 *
 */

/*
 *  BeatWriter.h
 *  MultipleAudioMathcher
 *
 *  Created by Andrew on 25/04/2012.
 *  Copyright 2012 QMUL. All rights reserved.
 *
 */




#ifndef BEAT_WRITER_H
#define BEAT_WRITER_H


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

class BeatWriter{
	
public:
	BeatWriter();
	~BeatWriter();
	
	std::string filepath;
	ofstream outputFile;
	
	void openFile();
	void openFile(std::string pathname);
	void closeFile();
	void writeBeatTime(const double& beatTime);
	
};
#endif