view ofxPreciseOnsetDetectorOffline/PreciseOnsetDetector.h @ 7:b1c13e8bec26

adding new files
author Venetian
date Thu, 14 Aug 2014 16:27:52 +0100
parents
children
line wrap: on
line source
/*
 *  PreciseOnsetDetector.h
 *  ofxPreciseOnsetDetectionOffline
 *
 *  Created by Andrew N Robertson on 11/04/2014.
 *  Copyright 2014 QMUL. All rights reserved.
 *
 */

#ifndef PRECISE_ONSET_DETECTOR
#define PRECISE_ONSET_DETECTOR


#include "PreciseOnsetDetectorOffline.h"
#include "PreciseOnsetVisualiser.h"

#include "ofxWindowRegion.h"
#include "ofxPlotFunction.h"

#include "PreciseOnsetDetectorOffline.h"

//this holds both the detection process and the visualiser for the result 
//easy interfacing from OF

class PreciseOnsetDetector{
public:
	PreciseOnsetDetector();
	~PreciseOnsetDetector();
	
	void loadNewFile(std::string filename);
	
	void update();
	void draw();
	
	void keyPressed(int key);
	void mousePressed(int x, int y, int button);
	
	bool getFilenameFromDialogBox(std::string* fileNameToSave);
	
	//vars
	PreciseOnsetDetectorOffline pod;
	PreciseOnsetVisualiser pov;	
};
#endif