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: Ben
Subject: Re: Gradual arrow with text at both ends
Date: Thu, 14 Dec 2017 08:24:57 -0500
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0

On 12/14/2017 6:00 AM, Phil Holmes wrote:
----- 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."



Thank you Phil, that centered my code perfectly - worked like a charm! :)

  \override TextSpanner.bound-details.left.stencil-align-dir-y = #0
  \override TextSpanner.bound-details.right.stencil-align-dir-y = #0.5



reply via email to

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