summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--muse2/muse/midiedit/scoreedit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/muse2/muse/midiedit/scoreedit.cpp b/muse2/muse/midiedit/scoreedit.cpp
index 9bfbaa45..f1c305d6 100644
--- a/muse2/muse/midiedit/scoreedit.cpp
+++ b/muse2/muse/midiedit/scoreedit.cpp
@@ -1681,7 +1681,8 @@ void staff_t::create_appropriate_eventlist()
{
Event& event=it->second;
- if ( (event.isNote() && !event.isNoteOff()) &&
+ if ( ( event.isNote() && !event.isNoteOff() &&
+ (event.endTick() <= part->lenTick()) ) &&
( ((type==GRAND_TOP) && (event.pitch() >= SPLIT_NOTE)) ||
((type==GRAND_BOTTOM) && (event.pitch() < SPLIT_NOTE)) ||
(type==NORMAL) ) )