diff options
Diffstat (limited to 'libs/ardour/midi_state_tracker.cc')
-rw-r--r-- | libs/ardour/midi_state_tracker.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/ardour/midi_state_tracker.cc b/libs/ardour/midi_state_tracker.cc index e3c66e4df8..0ddafc3fed 100644 --- a/libs/ardour/midi_state_tracker.cc +++ b/libs/ardour/midi_state_tracker.cc @@ -48,19 +48,18 @@ MidiStateTracker::track_note_onoffs (const Evoral::MIDIEvent<MidiBuffer::TimeTyp } } } + void MidiStateTracker::add (uint8_t note, uint8_t chn) { - cerr << "Added note " << note << " chan " << chn << endl; - _active_notes[note + 128 * chn]++; + ++_active_notes[note + 128 * chn]; } void MidiStateTracker::remove (uint8_t note, uint8_t chn) { if (_active_notes[note + 128 * chn]) { - cerr << "Removed note " << note << " chan " << chn << endl; - _active_notes[note + 128 * chn]--; + --_active_notes[note + 128 * chn]; } } |