lilypond-devel
[Top][All Lists]
Advanced

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

One additional udpate to 11.6.5 "Proportional spacing"


From: Trevor Bača
Subject: One additional udpate to 11.6.5 "Proportional spacing"
Date: Fri, 5 Oct 2007 23:17:10 -0500

Hi Graham,

One more update for when GDP reaches the spacing stuff; again feel
free to ask me to resubmit later. In this case we're free to
permanently remove several of the closing paragraphs of 11.6.5 because
Joe or Han-Wen fixed a bug (never officially tracked) in the 2.11.x
cycle; accidentals now behave correctly under proportional notation
and so this section no longer needs to document a work-around.


%%% BEGIN OLD (near page bottom) %%%

Both scores are proportional, but the spacing in the first score is
too loose because of the clef change. The spacing of the second score
remains strict, however, because strict-note-spacing is turned on.
Turning on strict-note-spacing causes the width of time signatures,
key signatures and clefs to play no part in the spacing algorithm.
Accidentals are a different matter, however. By default, all
accidentals consume a little extra space, as the following pair of
scores shows.


         \new Staff {
           \set Score.proportionalNotationDuration = #(ly:make-moment 1 32)
           c'16
           c'16
           c'16
           c'16
           c'16
           c'16
           c'16
           c'16
         }

         \new Staff {
           \set Score.proportionalNotationDuration = #(ly:make-moment 1 32)
           c'16
           cis'16
           c'16
           c'16
           c'16
           c'16
           c'16
           c'16
         }

    [image of music]

Both scores are proportional but the second score exhibits spacing
irregularities due to accidentals. Turning on strict-note-spacing does
not work for accidentals. Instead, we override the X-extent of all
accidentals to zero and then move the accidentals to the left of the
notes they modify.


         \new Staff {
           \set Score.proportionalNotationDuration = #(ly:make-moment 1 32)
           \override Accidental #'X-extent = #'(0 . 0)
           \override Accidental #'extra-offset = #'(-1 . 0)
           c'16
           cis'16
           c'16
           c'16
           c'16
           c'16
           c'16
           c'16
         }

    [image of music]

In addition to the settings given here, there are other settings that
frequently appear in proportional scores. These include:

%%% END OLD %%%







%%% BEGIN NEW %%%

Both scores are proportional, but the spacing in the first score is
too loose because of the clef change. The spacing of the second score
remains strict, however, because strict-note-spacing is turned on.
Turning on strict-note-spacing causes the width of time signatures,
key signatures, clefs and accidentals to play no part in the spacing
algorithm.

In addition to the settings given here, there are other settings that
frequently appear in proportional scores. These include:

%%% END NEW %%%




Dramatically shorter because accidentals now again behave correctly in
proportional scores.



-- 
Trevor Bača
address@hidden

reply via email to

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