[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mark_engraver in PianoStaff?
From: |
Alexander Kobel |
Subject: |
Re: Mark_engraver in PianoStaff? |
Date: |
Mon, 25 Aug 2008 18:09:12 +0200 |
User-agent: |
Thunderbird 2.0.0.16 (Macintosh/20080707) |
Neil Puttock wrote:
> Hi Alexander,
>
> 2008/8/25 Alexander Kobel <address@hidden>:
>> I tried to copy from the Piano-centered dynamics template and it's
>> Dynamics context, which seems to be similar. I ended up with the
>> attached output, which looks quite okay.
>>
>> However, during compilation Lily complains /a lot/ about the direction
>> property of RehearsalMark, MetronomeMark and TextSpanner:
>> [...]
>> What's up with this?
>
> You've set the direction of these objects to CENTER, which doesn't
> make sense for grobs which are normally aligned above or below a
> stave. Remove the direction overrides and tweak the positioning using
> the VerticalAxisGroup #'minimum-Y-extent override.
>
> Since you've moved the engravers for rehearsal marks and metronome
> marks, you should also move the Staff_collecting_engraver (see the
> note in the internals reference here:
> http://kainhofer.com/~lilypond/Documentation/user/lilypond-internals/Mark_005fengraver.html#Mark_005fengraver)
Okay. I don't think I understand what this Staff_collecting_engraver is
doing, but yes, this looks better. CENTER doesn't make sense, that's
true, but the result looked almost like what I wanted.
But still, if I comment out all #'direction lines (whether or not
including #'minimum-Y-extent = #'(0 . 0)), the Marks are positioned
slightly above the TextSpanner, and the whole context takes more space.
On the other hand, I don't get screens of lines saying that I make
programming errors...
Thanks anyway,
Alexander