lilypond-user
[Top][All Lists]
Advanced

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

Re: sponsorship request: minimum-measure-left-padding


From: Kieren MacMillan
Subject: Re: sponsorship request: minimum-measure-left-padding
Date: Fri, 11 May 2007 14:38:59 -0400

Hi, Damian --

but isn't the collision of (for instance) flats with bar lines a bug/defect?

I think so, but currently it's not being given very high priority... so I thought I'd try to escalate it! =)

btw, what are the best workarounds without adding spacers?

The two I've been playing with are:
(1) Adjust the BarLine #'spacing alist: difficult to really understand how each setting interacts (or conflicts) with other properties, so I avoid this. (2) Adjust the #'X-extent of the "offending element" (i.e., the one that Lilypond *should* be automatically adjusting): this is definitely easier than (1), and essentially every grob responds to an #'X-extent adjustment, but it's still a lot of manual labour when you're adjusting nearly every measure, and every time the layout changes you need to revisit every single adjustment.

Below is an example of fixing a flat-collision problem using method (2). Although there is (IMO) a problem with every single measure in the default engraving, my favourite is m. 4, where the flat looks like it's part of the key signature... =\

Hope this helps!
Kieren.
_______________________________

\version "2.11.23"  % Mac OS X 10.4.9
\include "english.ly"

accTooClose = \relative
{
        \time 4/4
        \key af \major
        \repeat "unfold" 32 { <cf' df>8 }
}

accPadded = \relative
{
        \time 4/4
        \key af \major

        \override Accidental #'X-extent = #'(-0.75 . 0.85)
        \repeat "unfold" 8 { <cf' df>8 }

        \override Accidental #'X-extent = #'(-0.5 . 0.85)
        \repeat "unfold" 16 { <cf df>8 }

        \override Accidental #'X-extent = #'(-0.95 . 0.85)
        \repeat "unfold" 8 { <cf df>8 }
}

\paper
{
    ragged-right = ##t
        printallheaders = ##t
}

\score
{
    \accTooClose
        \header
        {
                subtitle = "Default"
        }
}

\score
{
    \accPadded
        \header
        {
                subtitle = "Accidental Manually Padded (X-extent)"
        }
}




reply via email to

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