Hi Mike,

Thank you so much for pointing me in the right direction!

On Fri, Dec 16, 2011 at 2:06 AM, m...@apollinemike.com <
m...@apollinemike.com> wrote:

>
> Hey David,
>
> Once articulations are in the game, I'd recommend creating a custom Scheme
> engraver that collects all the grobs you want, throws them into the
> "elements" grob array of a custom grob that implements the
> axis-group-interface (you can define your own grobs via the same procedure
> as grobs are defined in define-grobs.scm),


[...]

I do want to be able to encompass dynamics and articulations along with
note columns, so I've gone with your suggestion of a custom engraver . . .
or rather customizing someone else's beautiful example :)

I adapted the regression test "scheme-text-spanner.ly" (thank you to
whoever provided this!), and I've got something which mostly works.  There
are some problems, though, and I'm not sure I'm approaching this in the way
you've suggested.

First of all, is going after the stencil rather than the left and right
text (as I did originally) the tactic you had in mind for both approaches?

The first snippet looks fine (both the dynamic and the articulation are
encompassed), but the box won't expand to cover both the dynamic and the
articulation in the second example.  Also, the distance between the systems
doesn't change.  (Raising the last pitch a couple of octaves will cause an
overlap.)


> and then use axis-group-interface::pure-height and
> axis-group-interface::height for the Y-extents (which will automatically
> search the "elements" grob array.
>
>
This is the part that is way beyond me. . .  I'd be grateful if you could
give me some pointers here, because I've hit a dead end as far as blind
experimentation goes . . .

Best,
David

Attachment: boxer-engraver02.ly
Description: Binary data

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to