comparison hackday/CannamMidiFileLoader.h @ 24:5a11b19906c7

hackday code is added.
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Sat, 03 Dec 2011 17:19:43 +0000
parents
children 2a025ea7c793
comparison
equal deleted inserted replaced
23:032edf186a68 24:5a11b19906c7
1 /*
2 * CannamMidiFileLoader.h
3 * midi-score-follower
4 *
5 * Created by Chris Cannam on 19/08/2011.
6 * Copyright 2011 QMUL. All rights reserved.
7 *
8 */
9
10 #ifndef CANNAM_MIDI_FILE_LOADER
11 #define CANNAM_MIDI_FILE_LOADER
12
13 #include "MIDIFileReader.h"
14 //#include "MIDIEvent.h"
15 #include "midiEventHolder.h"
16 using namespace MIDIConstants;
17
18 class CannamMidiFileLoader{
19
20 public:
21 CannamMidiFileLoader();
22
23 int loadFile(std::string& filename, midiEventHolder& myMidiEvents);
24
25 void createEventTiming( midiEventHolder& myMidiEvents);
26 void setTempoFromMidiValue(long tempo, midiEventHolder& myMidiEvents);
27 double firstNoteTime;
28 int firstTickTime;
29 bool chopBeginning;
30
31 typedef std::vector<int> IntVector;
32 IntVector v;
33 int noteOnIndex;
34
35
36 bool printMidiInfo;
37
38 };
39 #endif