lilypond-user
[Top][All Lists]
Advanced

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

Re: Gradual arrow with text at both ends


From: Jörgen Häll
Subject: Re: Gradual arrow with text at both ends
Date: Thu, 14 Dec 2017 13:48:55 +0100

Thank you Phil!

This "hack" was probably  what did it! I tried something along the line (no pun intended) of what you entered on stencil-align-dir-y but it never worked. 
Probably the space was the trick!

Thank you again!

Best regards,
Jörgen

2017-12-14 12:00 GMT+01:00 Phil Holmes <address@hidden>:
----- Original Message ----- From: "Jhall" <address@hidden>
To: <address@hidden>
Sent: Thursday, December 14, 2017 10:29 AM
Subject: Re: Gradual arrow with text at both ends


Thank you but I think that’s actually the code I used as a basis as well. The
problem is there in your code as well, the arrow bumps into the text and the
texts are not aligned.

I wonder if there is a command that could alter these things? The workaround
to write the end text as text markup works because then you can move that
easily.

I reckon the text mis-alignment is down to the descender on the p, and can be corrected somewhat hackily.  Simplest was to space the text from the arrow is to add a space:

 \override TextSpanner.bound-details.left.stencil-align-dir-y = #0
 \override TextSpanner.bound-details.right.stencil-align-dir-y = #0.5
 \override TextSpanner.bound-details.left.text = #"s.t."
 \override TextSpanner.bound-details.right.text = #" s.p."


--
Phil Holmes


reply via email to

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