lilypond-user
[Top][All Lists]
Advanced

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

Re: Access a tie from a slur


From: David Nalesnik
Subject: Re: Access a tie from a slur
Date: Tue, 3 Jan 2017 08:07:54 -0600

Hi Urs,

On Tue, Jan 3, 2017 at 1:14 AM, Urs Liska <address@hidden> wrote:
> Hi David,
>
> thank you for now. This is proof that one can at least *get* to the
> right information, and when the use-case is clearer one may also find a
> more efficient approach if possible.
>
> Just one more question (a simple "yes" or "no" or a pointer to a
> function name will do, no need to write a solution): The control-points
> in tie-cps are of course relative to the tie's notehead. Is it possible
> to determine the offset of the f' from the c'? This seems necessary to
> make use of tie-cps to modify the slur.

As far as horizontal position is concerned, you could use (from
http://lilypond.org/doc/v2.19/Documentation/internals/scheme-functions):

"Function: ly:grob-relative-coordinate grob refp axis

Get the coordinate in axis direction of grob relative to the grob refp."

For refp, you'd want to use the System object.

This will work well for horizontal positions, but it can lead to some
nasty vertical spacing side-effects if you use it with Y-coordinates.
In any case, however, the vertical cps are all relative to the center
line, so no need for anything fancy.

Hope this gets you going in the right direction--

David



reply via email to

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