annotate 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
rev   line source
andrew@36 1 /*
andrew@36 2 * annotations.h
andrew@36 3 * jnmr_MidiFollower
andrew@36 4 *
andrew@36 5 * Created by Andrew on 15/12/2011.
andrew@36 6 * Copyright 2011 QMUL. All rights reserved.
andrew@36 7 *
andrew@36 8 */
andrew@36 9
andrew@36 10 #ifndef ANNOTATIONS
andrew@36 11 #define ANNOTATIONS
andrew@36 12
andrew@36 13 #include "ofMain.h"
andrew@36 14
andrew@36 15 // basic file operations for text file stuff
andrew@36 16 #include <iostream>
andrew@36 17 #include <fstream>
andrew@36 18 using namespace std;
andrew@36 19
andrew@36 20 struct Notation {
andrew@36 21 int midiNote;
andrew@36 22 float beatLocation;
andrew@36 23 float eventTime;
andrew@36 24 };
andrew@36 25
andrew@36 26 class Annotations{
andrew@36 27 public:
andrew@36 28 Annotations();
andrew@36 29 void readInSomeValues();
andrew@36 30 //~Annotations();
andrew@36 31 void printAnnotations();
andrew@36 32 vector<Notation> rwcAnnotations;
andrew@36 33
andrew@36 34 };
andrew@36 35 #endif
andrew@36 36