lilypond-user
[Top][All Lists]
Advanced

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

Re: Overriding staff-padding for MeasureCounter fails


From: David Nalesnik
Subject: Re: Overriding staff-padding for MeasureCounter fails
Date: Fri, 14 Feb 2014 08:34:52 -0600

Hi Ed,


On Fri, Feb 14, 2014 at 8:05 AM, Ed Gordijn <address@hidden> wrote:
Hi David,


Huh--that's strange.  This will involve some investigation to get at the cause, determine if there's a bug.

Anyway, overriding outside-staff-padding instead should give you what you want:

\override Staff.MeasureCounter.outside-staff-padding = #4

This has effect but the numbers don't align. The padding is relative to the notes as well.

True.  In that case your best bet its to use a Dynamics context:

%%%%

\version "2.18.0"

\layout {

  \context {

    \Dynamics

    \consists #Measure_counter_engraver

    % to control the distance of the Dynamics context from the staff:

    \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding = #4

  }

}


<<

  \new Dynamics {

    \startMeasureCount

    s1*4

    \stopMeasureCount

  }

  \new Staff {

    \repeat percent 4 { g''4 g'' g'' g'' }

  }

>>


%%%%


(Based on "Centered measure numbers" http://www.lilypond.org/doc/v2.19/Documentation/snippets/repeats)


--David


reply via email to

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