lilypond-user
[Top][All Lists]
Advanced

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

Re: proportional notation screws up score


From: Trevor Bača
Subject: Re: proportional notation screws up score
Date: Mon, 4 Dec 2006 14:19:08 -0600

On 12/3/06, Han-Wen Nienhuys <address@hidden> wrote:
Trevor Bača escreveu:
> 2. There is a bug with proportional not dealing with skips correctly.
> Proportional notation handles notes and rests correctly. But
> proportional notation freaks out with skips. I noticed this some time
> ago but haven't really drawn any special attention to the bug because
> a reasonable workaround is to use a transparent rest (or transparent
> note) in place of a skip. But this is a problem and does need to be
> fixed because using this workaround can (and does) lead to all sorts
> of interpreter warnings about clashing note columns or unknown rest
> direction. Here's a snippet and I'll crosspost the bug list; to see
> what's going on, render the example and note that the spacing of all
> three scores should be identical but that the 2nd score is not:


  \override SpacingSpanner #'uniform-stretching = ##t

seems to work over here.

AHA. Found it.

Setting uniform-stretching will make *almost* all skips work correctly
under proportional notation. However, there is in fact a genuine bug
with spaces freaking out proportional spacing, with one very specific
condition needing to be satisfied: the space must come as the very
first grob in the measure (immediately after a \time command).

Compare the three scores below: all are one-measure scores and all
three measures should be exactly the same length. Skips are fine; just
not at the beginning of the measure; and the third score fails.

%%% BEGIN %%%

\version "2.11.0"

\layout {
  ragged-right = ##t
}

\new Score \with {
  \override SpacingSpanner #'uniform-stretching = ##t
  \override SpacingSpanner #'strict-note-spacing = ##t
  proportionalNotationDuration = #(ly:make-moment 1 16)
} {
  \new Staff \with {
     \remove Separating_line_group_engraver
  } {
     \time 4/4 c'4 c'4 c'4 c'4 % WORKS GREAT
  }
}

\new Score \with {
  \override SpacingSpanner #'uniform-stretching = ##t
  \override SpacingSpanner #'strict-note-spacing = ##t
  proportionalNotationDuration = #(ly:make-moment 1 16)
} {
  \new Staff \with {
     \remove Separating_line_group_engraver
  } {
     \time 4/4 c'4 s4 s4 s4 % WORKS GREAT - SKIP NOT AT BEGINNING
  }
}

\new Score \with {
  \override SpacingSpanner #'uniform-stretching = ##t
  \override SpacingSpanner #'strict-note-spacing = ##t
  proportionalNotationDuration = #(ly:make-moment 1 16)
} {
  \new Staff \with {
     \remove Separating_line_group_engraver
  } {
     \time 4/4 s4 s4 s4 s4 % BUG - SKIP AT BEGINNING OF MEASURE
  }
}

%%% END %%%

Will crosspost to bug.


--
Trevor Bača
address@hidden

reply via email to

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