MidiView: fix display of out-of-range live (recording) notes

This involves better handling of note range changes, and also a renaming of
member variables to better reflect their function.

It adds _finished_live_notes to hold notes that were recorded live but have
ended, since these also need to be updated as zooming or note range changes
This commit is contained in:
Paul Davis 2025-11-17 11:07:13 -07:00
parent 68c69fb89d
commit a0302bd7fc
3 changed files with 129 additions and 74 deletions

View file

@ -434,7 +434,7 @@ MidiStreamView::update_rec_box ()
region->set_length (timecnt_t (_trackview.track()->current_capture_end () - _trackview.track()->current_capture_start()));
MidiRegionView* mrv = dynamic_cast<MidiRegionView*> (rec_regions.back().second);
mrv->extend_active_notes ();
mrv->extend_unfinished_live_notes ();
}