David

-----Original Message-----
From: David Nalesnik <dnale...@umail.iu.edu>
Date: Tue, 8 Mar 2011 11:44:44 -0600
To: LilyPond User <lilypond-u...@gnu.org>
Subject: left-aligning grobs to other grobs

>Hi, all --
>
>Attached is a function which started out as an attempt to get tempo
>indications to line up with the left edge of the time signature.  It's
>been generalized so that you can left-align any grob responsive to
>'extra-offset to the closest grob of a specified type in that system
>(as far as I can tell so far -- you could even left-align a notehead
>to a barline, if you were so inclined...)
>
>It locates the closest grob by first searching all of the grobs in a
>system for every instance of the target type, then selecting the one
>that is closest horizontally.  (For example, if you want to align
>something to a barline, the function would determine where all the
>barlines are, then choose the nearest one).
>
>I have several questions:
>
>(1) Is there a way to locate the nearest grob more efficiently, so the
>routine doesn't have to search the entire system?
>
>(2) Is there a way to exclude grobs that are in the same system, but
>on a different staff?  I've looked at the 'staff-symbol property, but
>it's empty in some cases.
>
>(3) Does anybody have any suggestions how to improve the coding?  I'm
>enjoying learning Scheme, but my approach is rather hit-and-miss!
>
>

I think this is better asked on the lilypond-dev list as well.

So while I don't have an answer (I am not a programmer) I have cc;d that
list in case someone is reading that list and not the user lists.

James
>


_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to