Thanks, Jean and Valentin, for the replies. I’ll certainly be able to
achieve the result that I want.
However, I do think that DynamicTextSpanner should simply use properties
bound-details.left.self-alignment-X and
bound-details.left.parent-alignment-X
for this, by default. attach-dir doesn’t seem very descriptive and it
deviates from the way horizontal alignment is normally specified in
LilyPond, and likewise being able to specify self-alignment-X would seem
to be the normal thing to expect.
I’ll submit such a request to the bug list.
Best, Simon
On 31/01/2022 11:51, Valentin Petzel wrote:
Hello Simon,
You need to use bound-details.left for these kind of things. There you have
the property attach-dir, which acts like parent-alignment-X for the endpoint.
This one defaults to LEFT, so you cannot really get any further by this. The
other way is to use the text property to add a \right-align to have the actual
markup aligned to the right (you might want to change attach-dir to CENTER, as
the fff does the same.
We can infact add some sugar for this, like here.
Cheers,
Valentin
Am Sonntag, 30. Jänner 2022, 22:20:58 CET schrieb Simon Albrecht:
Hi List,
is there an equivalent to self-alignment-X for the left bound text of a
DynamicTextSpanner? See below.
Best, Simon
\version "2.23.5"
{
1-\tweak self-alignment-X 1 \fff
1
% this causes alignment to just fail indiscriminately
% (not a surprise, because I couldn’t find out how to use this property)
%-\tweak left-bound-info.self-alignment-X 0
% this is simply an offset against the default placement (default
#'(-.75 . -.5))
%-\tweak bound-details.left.stencil-offset #'(-3 . 0)
% I’m not sure what this does at all
%-\tweak bound-details.left.attach-dir -3
\cresc
1
1
1
1\!
}