Mercurial > hg > midi-score-follower
comparison src/CannamMidiFileLoader.cpp @ 5:195907bb8bb7
added purple where notes have been seen - lets you see what updates have been used. Also the chopping of midi files to the beginning was introduced recently, so when they load, you chop any white space at the beginning, then use first note to launch.
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Fri, 19 Aug 2011 16:38:30 +0100 |
parents | 4a8e6a6cd224 |
children | df9c838d0b8f |
comparison
equal
deleted
inserted
replaced
4:4a8e6a6cd224 | 5:195907bb8bb7 |
---|---|
177 myMidiEvents.recordedEventTimes.push_back(myMidiEvents.getEventTimeMillis(t)); | 177 myMidiEvents.recordedEventTimes.push_back(myMidiEvents.getEventTimeMillis(t)); |
178 else { | 178 else { |
179 myMidiEvents.recordedEventTimes.push_back(myMidiEvents.getEventTimeMillis(t) - firstNoteTime); | 179 myMidiEvents.recordedEventTimes.push_back(myMidiEvents.getEventTimeMillis(t) - firstNoteTime); |
180 // printf("chopping beginning %f \n", myMidiEvents.getEventTimeMillis(t) - firstNoteTime); | 180 // printf("chopping beginning %f \n", myMidiEvents.getEventTimeMillis(t) - firstNoteTime); |
181 } | 181 } |
182 | 182 |
183 myMidiEvents.noteOnMatches.push_back(false); | |
184 | |
183 break; | 185 break; |
184 | 186 |
185 case MIDI_POLY_AFTERTOUCH: | 187 case MIDI_POLY_AFTERTOUCH: |
186 cout << t << ": Polyphonic aftertouch: channel " << ch | 188 cout << t << ": Polyphonic aftertouch: channel " << ch |
187 << " pitch " << j->getPitch() | 189 << " pitch " << j->getPitch() |