comparison src/CannamMidiFileLoader.cpp @ 14:3f103cf78148

Checking to allow offline version
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Thu, 10 Nov 2011 17:29:45 +0000
parents df9c838d0b8f
children f0abb0e414ec
comparison
equal deleted inserted replaced
13:bba4a9da57f1 14:3f103cf78148
144 } 144 }
145 145
146 switch (j->getMessageType()) { 146 switch (j->getMessageType()) {
147 147
148 case MIDI_NOTE_ON: 148 case MIDI_NOTE_ON:
149 /* cout << t << ": Note: channel " << ch 149 cout << t << ": Note: channel " << ch
150 << " duration " << j->getDuration() 150 << " duration " << j->getDuration()
151 << " pitch " << j->getPitch() 151 << " pitch " << j->getPitch()
152 << " velocity " << j->getVelocity() 152 << " velocity " << j->getVelocity()
153 << "event time " << myMidiEvents.getEventTimeMillis(t) << endl; 153 << "event time " << myMidiEvents.getEventTimeMillis(t) << endl;
154 */ 154
155 155
156 if (noteOnIndex == 0){ 156 if (noteOnIndex == 0){
157 firstNoteTime = myMidiEvents.getEventTimeMillis(t); 157 firstNoteTime = myMidiEvents.getEventTimeMillis(t);
158 firstTickTime = t; 158 firstTickTime = t;
159 } 159 }