bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue 621 in lilypond: Dynamics should avoid cross-staff BarLines (e


From: lilypond
Subject: Re: Issue 621 in lilypond: Dynamics should avoid cross-staff BarLines (e.g. GrandStaff, PianoStaff etc)
Date: Sat, 11 Dec 2010 18:44:24 +0000


Comment #2 on issue 621 by markpolesky: Dynamics should avoid cross-staff BarLines (e.g. GrandStaff, PianoStaff etc)
http://code.google.com/p/lilypond/issues/detail?id=621

I'm adding the phrase "DynamicText SpanBar collision" to
this post so others can find this issue with a search.

Jay Anderson kindly provided two workarounds (see below),
but these are not general solutions.

I propose adding a user-backend-property called
#'spanbar-padding to work in the X direction in the same way
that the #'staff-padding property works in the Y direction.
Would that be a good way to do it, and if so, how feasible
is it?

Thanks.
- Mark

* * * * * * * * * * * * * * * * * * * *

Jay's workarounds:

1. Use whiteout and some padding:

whitePPPMarkup = \markup {\whiteout \pad-markup #0.5 \dynamic ppp}
whitePPP = #(make-dynamic-script whitePPPMarkup)

\new StaffGroup \relative f' <<
  \new Staff { R1 | f2\whitePPP r | }
  \new Staff { R1 | f1 | }


2. Left align the dynamic with some offset

\new StaffGroup \relative f' <<
  \new Staff {
    R1 |
    \once \override Staff.DynamicText #'self-alignment-X = #LEFT
    \once \override Staff.DynamicText #'X-offset = #'-1.25
    f2\ppp r |
  }
  \new Staff { R1 | f1 | }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]