view src/BeatAnnotations.h @ 5:1e636a3511fb

added beat annotations
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Mon, 06 Jan 2014 18:10:15 +0000
parents
children
line wrap: on
line source
/*
 *  BeatAnnotations.h
 *  BeatAnnotationViewer
 *
 *  Created by Andrew on 31/10/2013.
 *  Copyright 2013 QMUL. All rights reserved.
 *
 */



#ifndef BEAT_ANNOTATIONS_H
#define BEAT_ANNOTATIONS_H 


#define FRAMESIZE 512
#include "NoteDataReader.h"

class BeatAnnotations{
public:
	BeatAnnotations();
	
	void draw();
	
	void loadBeatsFromAnnotations(std::string filename);
	int processAudioForBeatTimes(std::string audiofile);
	
	//vars
	typedef std::vector<double> DoubleVector;
	DoubleVector beatTimes;///beats in seconds
	NoteDataReader reader;
};
#endif