lilypond-user
[Top][All Lists]
Advanced

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

Barcheck errors with Timing.measurePosition and multiple voices


From: Nick Payne
Subject: Barcheck errors with Timing.measurePosition and multiple voices
Date: Fri, 25 May 2012 12:26:21 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

With more than one voice, using Timing.measurePosition for partial bars results in spurious barcheck errors and also causes problems with automatic beaming:

\relative c'' {
    \time 3/4
<<
        {
            \partial 4.
            c4. |
            c8 c c c c c |
            c c c c c c |
            \set Timing.measurePosition = #(ly:make-moment -3 8)
            c4. |
        }
        \\
        {
            \partial 4.
            c,4. |
            c8 c c c c c |
            c c c c c c |
            \set Timing.measurePosition = #(ly:make-moment -3 8)
            c4. |
        }
>>
}

If instead of using Timing.measurePosition I use Score.measureLength for the partial bars, then the barcheck and beaming errors disappear but the bar numbering is incorrect with multiple repeat sections:

\relative c'' {
    \time 3/4
    \override Score.BarNumber #'break-visibility = #'#(#t #t #t)
    \repeat volta 2 {
        \partial 4.
        c4. |
        c8 c c c c c |
        \set Score.measureLength = #(ly:make-moment 3 8)
        c4. |
    }
    \repeat volta 2 {
        \set Score.measureLength = #(ly:make-moment 3 8)
        c4. |
        \set Score.measureLength = #(ly:make-moment 3 4)
        c8 c c c c c |
        \set Score.measureLength = #(ly:make-moment 3 8)
        c4. |
    }
}

Attachment: a.png
Description: PNG image

Attachment: b.png
Description: PNG image


reply via email to

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