On Sat, Aug 22, 2015 at 11:55 AM, David Nalesnik <[email protected]>
wrote:

> Hi Andrew,
>
> On Fri, Aug 21, 2015 at 6:51 PM, Andrew Bernard <[email protected]>
> wrote:
>
>> Can anybody kindly point me to code examples showing how to find the
>> distance of a grob to its nearest enclosing barlines, in Scheme?
>>
>
> I don't know of any examples out there, be this will do it.
>
> This uses the horizontal coordinate of the grob and barline as a simple
> demonstration.  Depending on what precisely you mean by "distance" (right
> edge to left edge, left edge to right edge, etc.) you may want to use
> ly:grob-extent.
>

That is, instead of ly:grob-relative-coordinate.
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to