comparison src/CannamMidiFileLoader.h @ 17:d75d16c57eac

Fixed the ordering of the note matrix when loaded so it has a double check feature that they are ordered min to max. Prevents draw problems down the line
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Tue, 15 Nov 2011 20:06:55 +0000
parents de86d77f2612
children
comparison
equal deleted inserted replaced
16:f0abb0e414ec 17:d75d16c57eac
20 public: 20 public:
21 CannamMidiFileLoader(); 21 CannamMidiFileLoader();
22 22
23 int loadFile(std::string& filename, midiEventHolder& myMidiEvents); 23 int loadFile(std::string& filename, midiEventHolder& myMidiEvents);
24 24
25 void createEventTiming( midiEventHolder& myMidiEvents);
26
25 double firstNoteTime; 27 double firstNoteTime;
26 int firstTickTime; 28 int firstTickTime;
27 bool chopBeginning; 29 bool chopBeginning;
28 30
29 typedef std::vector<int> IntVector; 31 typedef std::vector<int> IntVector;