Proportional spacing bug: chained \noBreaks + \newSpacingSection

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Proportional spacing bug: chained \noBreaks + \newSpacingSection

Trevor Bača-2
Hi,

LilyPond incorrectly compresses consecutive, proportionally spaced measures
when the following conditions hold:

1. first measure in the sequence sets \proportionalNotationDuration; and
2. last measure in sequence is followed by \newSpacingSection; and
3. all measures in sequence carry \noBreak commands.

%%% BEGIN SPACING BUG %%%

\version "2.19.82"

\layout {
    indent = #0
    ragged-right = ##t
}

\new Staff
\with
{
    \remove Time_signature_engraver
}
{

    \time 2/8
    \set Score.proportionalNotationDuration = #(ly:make-moment 1 32)
    c'4
    ^ \markup \with-color #red "First three measures aren't wide enough"
    \noBreak

    c'4
    \noBreak

    c'4
    \noBreak

    \newSpacingSection
    c'4

    c'4

    c'4

    c'4

    c'4

}

%%% END %%%

Output looks like this:

[image: no-break-spacing-bug.png]

Correct output looks like this:

%%% BEGIN NON-BUG %%%

\version "2.19.82"

\layout {
    indent = #0
    ragged-right = ##t
}

\new Staff
\with
{
    \remove Time_signature_engraver
}
{

    \time 2/8
    \set Score.proportionalNotationDuration = #(ly:make-moment 1 32)
    c'4

    c'4

    c'4

    \newSpacingSection
    c'4

    c'4

    c'4

    c'4

    c'4

}

%%% END %%%

Visual:

[image: correct-output.png]

Note, again, that *all* measures spaced incorrectly must carry a \noBreak
command; removing *any one* of the three \noBreak commands in the bug
snippet causes the bug to disappear.


Trevor.

--
Trevor Bača
www.trevorbaca.com
soundcloud.com/trevorbaca

_______________________________________________
bug-lilypond mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-lilypond

no-break-spacing-bug.png (40K) Download Attachment
correct-output.png (30K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Proportional spacing bug: chained \noBreaks + \newSpacingSection

Palmer Ralph
On Sat, Feb 16, 2019 at 4:30 PM Trevor Bača <[hidden email]> wrote:

>
> Hi,
>
> LilyPond incorrectly compresses consecutive, proportionally spaced measures
> when the following conditions hold:
>
> 1. first measure in the sequence sets \proportionalNotationDuration; and
> 2. last measure in sequence is followed by \newSpacingSection; and
> 3. all measures in sequence carry \noBreak commands.
>
Hi, Trevor -Thanks for the message. This has been entered as Issue #5440.
All the best, Ralph

_______________________________________________
bug-lilypond mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-lilypond