From 766fa9aa5bd477e54a44f045e955d45eb267ebf2 Mon Sep 17 00:00:00 2001 From: nick_m Date: Tue, 22 Nov 2016 02:59:57 +1100 Subject: don't display notes that start at region end. - its not obvious that this is happening in sustained mode, but Percussive reveals all. --- gtk2_ardour/midi_region_view.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc index 9408255a76..fdd5f1b744 100644 --- a/gtk2_ardour/midi_region_view.cc +++ b/gtk2_ardour/midi_region_view.cc @@ -1675,7 +1675,7 @@ MidiRegionView::note_in_region_range (const boost::shared_ptr note, bo /* must compare double explicitly as Beats::operator< rounds to ppqn */ const bool outside = (note->time().to_double() < midi_reg->start_beats() || - note->time().to_double() > midi_reg->start_beats() + midi_reg->length_beats()); + note->time().to_double() >= midi_reg->start_beats() + midi_reg->length_beats()); visible = (note->note() >= midi_stream_view()->lowest_note()) && (note->note() <= midi_stream_view()->highest_note()); -- cgit v1.2.3