diff jnmr/Annotations.h @ 36:5a1b0c6fa1fb

Added class to read in the csv Annotation file, then write out the respective difference between the performed piece as followed here, and the annotation of RWC by Ewert and Muller
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Thu, 15 Dec 2011 02:28:49 +0000
parents
children c3d32207565f
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jnmr/Annotations.h	Thu Dec 15 02:28:49 2011 +0000
@@ -0,0 +1,36 @@
+/*
+ *  annotations.h
+ *  jnmr_MidiFollower
+ *
+ *  Created by Andrew on 15/12/2011.
+ *  Copyright 2011 QMUL. All rights reserved.
+ *
+ */
+
+#ifndef ANNOTATIONS
+#define ANNOTATIONS
+
+#include "ofMain.h"
+
+// basic file operations for text file stuff
+#include <iostream>
+#include <fstream>
+using namespace std;
+
+struct Notation {
+	int midiNote;
+	float beatLocation;
+	float eventTime;
+};
+
+class Annotations{
+public:
+	Annotations();
+	void readInSomeValues();
+	//~Annotations();
+	void 	printAnnotations();
+	vector<Notation> rwcAnnotations;
+
+};
+#endif
+