Skip to content

Commit

Permalink
fix #41036: no beam over gap
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Dec 10, 2014
1 parent 716a4e0 commit 813d979
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions libmscore/groups.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ Beam::Mode Groups::endBeam(ChordRest* cr, ChordRest* prev)
else
val = g.beamMode(tick, TDuration::DurationType::V_64TH);
}
// if there is a hole between previous and current cr, break beam
// exclude tuplets from this check; tick calculations can be unreliable
// and they seem to be handled well anyhow
if (cr->voice() && prev && !prev->tuplet() && prev->tick() + prev->actualTicks() < cr->tick())
val = Beam::Mode::BEGIN;
}

return val;
Expand Down
Binary file added vtest/beams-8-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vtest/beams-8.mscz
Binary file not shown.
2 changes: 1 addition & 1 deletion vtest/gen
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ else
accidental-6 accidental-7 accidental-8 accidental-9\
tie-1 tie-2 tie-3 grace-1 grace-2 grace-3 grace-4\
harmony-1 harmony-2 harmony-3 harmony-4 harmony-5 harmony-6 harmony-7 harmony-8 harmony-9 harmony-10\
beams-1 beams-2 beams-3 beams-4 beams-5 beams-6 beams-7\
beams-1 beams-2 beams-3 beams-4 beams-5 beams-6 beams-7 beams-8\
user-offset-1 user-offset-2 chord-space-1 chord-space-2 tablature-1 image-1\
lyrics-1 lyrics-2 lyrics-3 voice-1 slash-1 slash-2"
fi
Expand Down
2 changes: 1 addition & 1 deletion vtest/gen.bat
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set SRC=mmrest-1,bravura-mmrest,gonville-mmrest,mmrest-2,mmrest-4,mmrest-5,mmres
accidental-6,accidental-7,accidental-8,accidental-9, ^
tie-1,tie-2,tie-3,grace-1,grace-2,grace-3,grace-4, ^
harmony-1,harmony-2,harmony-3,harmony-4,harmony-5,harmony-6,harmony-7,harmony-8,harmony-9,harmony-10, ^
beams-1,beams-2,beams-3,beams-4,beams-5,beams-6,beams-7, ^
beams-1,beams-2,beams-3,beams-4,beams-5,beams-6,beams-7,beams-8, ^
user-offset-1,user-offset-2,chord-space-1,chord-space-2,tablature-1,image-1, ^
lyrics-1,lyrics-2,lyrics-3,voice-1,slash-1,slash-2

Expand Down

0 comments on commit 813d979

Please sign in to comment.