diff options
author | nick_m <mainsbridge@gmail.com> | 2016-11-22 02:59:57 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-11-22 02:59:57 +1100 |
commit | 766fa9aa5bd477e54a44f045e955d45eb267ebf2 (patch) | |
tree | d2bcad3c21488e6df1c570cacdb20db1d2f3a9ad /gtk2_ardour/midi_region_view.cc | |
parent | a14c577b8a37f0cb5622d005d6ae26d371380c79 (diff) |
don't display notes that start at region end.
- its not obvious that this is happening in sustained mode,
but Percussive reveals all.
Diffstat (limited to 'gtk2_ardour/midi_region_view.cc')
-rw-r--r-- | gtk2_ardour/midi_region_view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<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()); |