lilypond-user
[Top][All Lists]
Advanced

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

Re: Time signatures above score, aligning short instrument names


From: Jean Abou Samra
Subject: Re: Time signatures above score, aligning short instrument names
Date: Tue, 8 Nov 2022 23:52:15 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1

Le 08/11/2022 à 23:47, Nate Whetsell a écrit :
Thank you for this! I’m not sure how it works—it looks like a Scheme engraver that changes the /x/ parent of some time signatures—but it sure does!


Yes, that's it. Basically, in order to make TimeSignature support alignment
via break-align-symbols, you need to make it similar to a break-alignable item (like RehearsalMark, MetronomeMark, TextMark, etc.) instead of a break-aligned
item (like Clef, normal TimeSignature, KeySignature, etc.). The callback
that does the alignment with break-align-symbols searches for the grobs
to align to in the time signature's X parent, if it's a BreakAlignment. But
if you set break-align-symbol to ##f (to avoid unconditional alignment with
other time signatures), by default the parent is the BreakAlignment's own
X parent, the NonMusicalPaperColumn. Hence the need for this little engraver.

The alternative would have been reimplementing alignment with break-align-symbols,
which is not all that complicated either.

Best,
Jean



Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

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