lilypond-user
[Top][All Lists]
Advanced

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

Re: Relative distance of other contexts in stencil callback


From: David Kastrup
Subject: Re: Relative distance of other contexts in stencil callback
Date: Sat, 05 Oct 2019 19:01:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

"Urs Liska" <address@hidden> writes:

> Hi all,
>
> is it possible from a stencil callback to retrieve the relative Y
> distance from the grob's staff to another staff given the other
> staff's name?
>
> We want to create frames spanning multiple staves without having to do
> so in separate slices (see
> https://github.com/openlilylib/analysis/wiki/Frames for the general
> description and https://github.com/openlilylib/analysis/issues/3 for
> the context of the current discussion).
>
> If I know the relative position of another staff I can adjust the
> Y-Extent of the frame to include the other staff.
>
> Any suggestions?

Take a look at ly:grob-common-refpoint and ly:grob-relative-coordinate
.  Do they help?

-- 
David Kastrup



reply via email to

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