This patch seems to get everything right in the beam-collision engraver.
If the typesetting in beam.cc can accommodate it, I think we'll have hit beam
collision nirvana.
In:
<<
\new Staff = up \relative c' {
c8 c c c
}
\new Staff = down \relative c' {
s8 c c c
\change Staff = up
}
>>
<<
\new Staff = up \relative c' {
c8 c c c
}
\new Staff = down \relative c' {
s8 c c
\change Staff = up
c8
}
>>
The first example now clears, whereas the last one still has problems. These
problems stem from the first beam trying to avoid the second beam (not stems,
noteheads, etc.).
If anyone can figure out a way to make this work in beam.cc, then it seems like
a good solution, as it genuinely handles cross-staff beams.
http://codereview.appspot.com/4430063/diff/1/lily/beam-collision-engraver.cc File lily/beam-collision-engraver.cc (right): http://codereview.appspot.com/4430063/diff/1/lily/beam-collision-engraver.cc#newcode95 lily/beam-collision-engraver.cc:95: // First, find the staves to which any covered ...
Issue 4430063: First step towards fixing the cross staff problem
(Closed)
Created 14 years ago by MikeSol
Modified 14 years ago
Reviewers: hanwenn
Base URL:
Comments: 3