bug-lilypond
[Top][All Lists]
Advanced

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

Re: Single Whole Measure Rest vs compressed MMR (WAS: Issue 3208 Wrong M


From: Thomas Morley
Subject: Re: Single Whole Measure Rest vs compressed MMR (WAS: Issue 3208 Wrong MultiMeasureRest glyph)
Date: Thu, 28 Feb 2013 01:05:48 +0100

2013/2/28 Xavier Scheuer <address@hidden>:
> On 27 February 2013 18:13,  <address@hidden> wrote:
>>
>> Comment #1 on issue 3208 by address@hidden: Wrong
>> MultiMeasureRest glyph
>> http://code.google.com/p/lilypond/issues/detail?id=3208
>>
>> OK - let's just be clear about what the bug is.  Lilypond does the right
>> thing (TM) for single Whole Measure Rests - breve rests and longa rests are
>> correct.  It does the wrong thing for multimeasure rests, where what it uses
>> for 2 breve bar rests (staff system 2 above) it uses the symbol for a 4 bar
>> church rest.  That's wrong, agreed, and needs fixing.
>
> This reminds me of a question/issue I never asked here.
>
> I sometimes wanted different horizontal space settings for "single Whole
> Measure Rest" and "real" multimeasure rests a.k.a "compressed MMR"
> (with a number above).

Hi Xavier,

do you think of sth like this:

\version "2.17.12"

boundPadding =
\override MultiMeasureRest #'before-line-breaking =
  #(lambda (grob)
    (let* ((measure-count (ly:grob-property grob 'measure-count))
           (b-p (if (> measure-count 1)
                      20        ;; bound-padding for single MMR
                      15)))     ;; bound-padding for compressed MMR
   (ly:grob-set-property! grob 'bound-padding b-p)))

{
        \boundPadding
        R1
        \repeat unfold 20 { c'' }
}

{
        \boundPadding
        \compressFullBarRests
        R1*5
        \repeat unfold 20 { c'' }
}

Cheers,
  Harm



reply via email to

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