summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-06-06 15:38:00 +0000
committerFlorian Jung <flo@windfisch.org>2011-06-06 15:38:00 +0000
commitba00330badbd1b4dbd0ffa37b0ea7cddc0a6657a (patch)
treea147cb345740cf819743aefa4501a894d7c490a7
parente33204ce476daafda6dbfda8c9db2d8dce898ef3 (diff)
score editor now deals properly with hidden events
-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 d4915304..d2fd7730 100644
--- a/muse2/muse/midiedit/scoreedit.cpp
+++ b/muse2/muse/midiedit/scoreedit.cpp
@@ -1684,7 +1684,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) ) )