[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible bug(s) with vertical alignment on Dynamics staff
From: |
Thomas Morley |
Subject: |
Re: Possible bug(s) with vertical alignment on Dynamics staff |
Date: |
Fri, 31 Aug 2018 23:10:43 +0200 |
2018-08-31 16:14 GMT+02:00 Peter Toye <address@hidden>:
> 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