Am 13.05.2018 um 17:24 schrieb Étienne PERRINE:
In this code, the ending bar line of second staff is very slightly too short
(probably due to the magnyfyStaff)… Why ?

It’s not the bar line that is too short but the staff lines. And that’s because of wrong alignment of the different bar lines:

• Bar lines from different staves are left-aligned.
• The score’s right end aligns with the paper (so no “too big” bar lines extend into the right margin, instead “too small” bar lines end earlier than they should). • The staff line length is correctly chosen for the first staff (not the smallest or largest).

The second and third point would be ok *iff* bar lines would be right-aligned. But then also we would have a problem with SpanBars (uncomment the % \new StaffGroup lines).

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\version "2.19.81"

\paper {
  ragged-right = ##f
}

\new Staff { s1 \bar "|." }

% \new StaffGroup
<<
  \new Staff { s1 \bar "|." }
  \new Staff \with { \magnifyStaff #4 } { s1 \bar "|." }
>>

% \new StaffGroup
<<
  \new Staff \with { \magnifyStaff #4 } { s1 \bar "|." }
  \new Staff { s1 \bar "|." }
>>

% \new StaffGroup
<<
  \new Staff { s1 \bar "|." }
  \new Staff \with { \magnifyStaff #1/4 } { s1 \bar "|." }
>>

% \new StaffGroup
<<
  \new Staff \with { \magnifyStaff #1/4 } { s1 \bar "|." }
  \new Staff { s1 \bar "|." }
>>

_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to