2018-08-31 16:14 GMT+02:00 Peter Toye <lilyp...@ptoye.com>:
> In a dynamic staff there aren't engraved notes to attach the text to. My 
> issue (which I wasn't 100% clear about) is that dynamics and text are treated 
> differently - dynamics ( s2\p ) appear to be centred on the staff (at least, 
> they're half-way between the two piano staves) and text is either raised or 
> lowered. In this context, #CENTER would have a legitimate meaning.

I don't see any good in special-casing "-" for Dynamics-context.
The main reason why DynamicText and TextScript behave different is the
different procedure used to calculate the Y-offset.

DynamicText uses `(scale-by-font-size -0.6)` to calculate the
Y-offset. You'll find it in define-grobs.scm, the definition of
`scale-by-font-size` in output-lib.scm.
Using this for both works here:

\new Dynamics
  \with { \override TextScript.Y-offset = #(scale-by-font-size -0.6) }
  {
    s2^\p
    s2_\markup \dynamic "p"
    s2^\markup { ggTT \dynamic "p" }
  }



Cheers,
  Harm

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

Reply via email to