[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Align markup above staff
From: |
Aaron Hill |
Subject: |
Re: Align markup above staff |
Date: |
Fri, 10 Feb 2023 08:11:16 -0800 |
On 2023-02-10 7:12 am, Michael Werner wrote:
On Fri, Feb 10, 2023 at 9:49 AM Johannes Roeßler <joei@joei.de> wrote:
thx to both Michaels :)
looks like an idea, but when I compile your source, I get a little
drift
between
"diminuendo" and "poco"
Best regards
Johannes
Huh. I hadn't noticed that when I was testing it here. But now I go
look
more closely I'm seeing it too. Looks like it's aligning poco by way of
the
bottom of the downward stem of the p, which then shifts everything
after
upwards by the same amount. But if I go through and change both
instances
of poco to Poco the a between is still shifted upwards. Puzzling.
DynamicText and TextScript do behave differently w.r.t. vertical
alignment.
%%%%
\version "2.22.0"
#(set-global-staff-size 72)
\paper { tagline = ##f }
<< \new RhythmicStaff
\with { \omit TimeSignature }
{ \cadenzaOn s1*6 }
\new Dynamics \with {
% Negative padding to permit overlap so we can use
% the staff line as a vertical reference point.
\override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
#'((basic-distance . 0) (minimum-distance . 0)
(padding . -10) (stretchability . 0))
\override DynamicText.color = #green
\override TextScript.color = #red
}
{
% TextScripts
s1-\markup "q"
s1-\markup "x"
s1-\markup "b"
% DynamicTexts
s1-#(make-dynamic-script #{
\markup { \normal-text \italic "q" } #})
s1-#(make-dynamic-script #{
\markup { \normal-text \italic "x" } #})
s1-#(make-dynamic-script #{
\markup { \normal-text \italic "b" } #})
} >>
%%%%
-- Aaron Hill
dynamics-vertical-alignment.png
Description: PNG image