don't display notes that start at region end.
authornick_m <mainsbridge@gmail.com>
Mon, 21 Nov 2016 15:59:57 +0000 (02:59 +1100)
committernick_m <mainsbridge@gmail.com>
Mon, 21 Nov 2016 15:59:57 +0000 (02:59 +1100)
- its not obvious that this is happening in sustained mode,
  but Percussive reveals all.

gtk2_ardour/midi_region_view.cc

index 9408255a76c2ef684494efd533360d3a06508be9..fdd5f1b744e6ed9b8c3c6f8c5555d632bdf4eafd 100644 (file)
@@ -1675,7 +1675,7 @@ MidiRegionView::note_in_region_range (const boost::shared_ptr<NoteType> 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());