annotate jnmr/Annotations.h @ 52:13194a9dca77 tip

Added exporting of image and text data
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Tue, 17 Jul 2012 22:13:10 +0100
parents 3ce6dadd8167
children
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@49 24 float midiTime;
andrew@36 25 };
andrew@36 26
andrew@36 27 class Annotations{
andrew@36 28 public:
andrew@36 29 Annotations();
andrew@38 30 //void readInSomeValues();
andrew@38 31 void readInRWCfile(std::string& pathName);
andrew@36 32 //~Annotations();
andrew@36 33 void printAnnotations();
andrew@36 34 vector<Notation> rwcAnnotations;
andrew@36 35
andrew@36 36 };
andrew@36 37 #endif
andrew@36 38