- looped = false;
-
- DEBUG_TRACE (PBD::DEBUG::MidiTrackers, string_compose ("%1 track notes, looped = %2\n", this, looped));
-
- for (MidiBuffer::iterator i = from; i != to; ++i) {
- const Evoral::MIDIEvent<MidiBuffer::TimeType> ev(*i, false);
- if (ev.event_type() == LoopEventType) {
- looped = true;
- continue;
- }
-
- /* catch AllNotesOff message and turn off all notes
- */
-
- if (ev.type() == MIDI_CTL_ALL_NOTES_OFF) {
- cerr << "State tracker sees ALL_NOTES_OFF, silenceing " << sizeof (_active_notes) << endl;
- memset (_active_notes, 0, sizeof (_active_notes));
- }