bug-lilypond
[Top][All Lists]
Advanced

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

Re: average-spacing-wishes and note too close to barline


From: Kieren MacMillan
Subject: Re: average-spacing-wishes and note too close to barline
Date: Fri, 18 May 2007 08:48:34 -0400

Hi, David:

Help would be appreciated.

You could modify the BarLine #'X-extent manually, e.g.

\version "2.11.23"
\paper{ ragged-right=##t indent = #0 }

blFix =
\override Score.BarLine #'space-alist = #'(
(time-signature . (extra-space . 0.75))
(custos . (minimum-space . 2.0))
(clef . (minimum-space . 1.0))
(key-signature . (extra-space . 1.0))
(key-cancellation . (extra-space . 1.0))
(first-note . (fixed-space . 1.3))
(next-note . (extra-space . 1.9)) ; Changed from the new default 0.9
(right-edge . (extra-space . 0.0)))

apFix = \override Score.AccidentalPlacement #'left-padding = #1.0

kmFix = \override Score.BarLine #'X-extent = #'(-1 . 1.2)

\new Score
{
  \new Staff \relative c'' {
    R1 \bar ":|" <ges fes >2 r2 \bar "|" <ges fes >2 r2 | \break

        \blFix
            R1 \bar ":|" <ges fes >2 r2 \bar "|" <ges fes >2 r2 | \break

        \apFix
                R1 \bar ":|" <ges fes >2 r2 \bar "|" <ges fes >2 r2 | \break

        \revert Score.BarLine #'space-alist
        \revert Score.AccidentalPlacement #'left-padding

        \kmFix
                R1 \bar ":|" <ges fes >2 r2 \bar "|" <ges fes >2 r2 | \break
  }
}

Of course, this has to be done to each measure individually -- even in this small example, the fix for the first measure (which seems just about right to me) makes the second measure padding too large (IMO). In other words, a music function (Scheme) would be advisable, so all you would have to do is put (e.g.,)

\barPad #'(1 . 2)

My offer to contribute sponsorship for a solution still stands.

Ditto: with default settings, Lilypond shouldn't require *constant* tweaking in essentially *every* measure just to avoid collisions and other poor spacing concerns. =(

Best regards,
Kieren.






reply via email to

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