bug-lilypond
[Top][All Lists]
Advanced

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

Re: Multi-measure rest collides with clef change


From: Neil Puttock
Subject: Re: Multi-measure rest collides with clef change
Date: Fri, 30 Jul 2010 20:30:26 +0100

On 30 July 2010 19:34, Reinhold Kainhofer <address@hidden> wrote:
> If a multi-measure rest is followed by a clef change, they will collide as the
> attached example shows.

Ah, good catch, Reinhold. :)

The default for 'spacing-pair isn't ideal for compressed rests: it
spaces the rest to the barline, which is usually what we want for
single rests (especially if there are multiple staves).

I suppose a callback might suffice in most cases:

\override MultiMeasureRest #'spacing-pair =
#(lambda (grob)
   (cons 'break-alignment
         (if (> (ly:grob-property grob 'measure-count) 1)
            'break-alignment
            'staff-bar)))

Cheers,
Neil



reply via email to

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