[Top][All Lists]

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

Re: chord name collide with staff

From: address@hidden
Subject: Re: chord name collide with staff
Date: Tue, 5 Feb 2013 21:32:31 +0100

On 5 févr. 2013, at 10:16, David Kastrup <address@hidden> wrote:

> "address@hidden" <address@hidden> writes:
>> Doing some preliminary tests in page layout problem to see why the
>> spacing is so cramped - this is gonna be a tough one to solve...
> I think you are on the wrong track here.  If this was merely a problem
> of "cramped spacing", all systems should be suffering about equally.
> One thing that may happen is that there is no space reserved for
> ChordNames.  However, that is not all.  The worst lines are below
> multiple lines of lyrics: it would appear that the totals of those lines
> are overestimated with regard to positioning the ChordNames in the
> system below them, pushing those much further down than the lyrics
> height would have warranted.
> If I had to take a guess, the skyline code at some point of time might
> have overestimated everything, and then you added some "compensation" or
> scaling in the wrong place that fixed the simplest case of compound
> systems but did not refit ChordNames.
> Or you have some calculation order where ChordNames are first fixed in
> relation to the _above_ system based on some pure estimate, but then
> everything gets compressed according to unpure calculations.

So, find #1...

If you replace all of the empty strings in the fourth lyric group by:
\repeat unfold 33 \skip 1
\repeat unfold 33 " "
The problem goes away.  So the skyline code doesn't like something about the 
empty string...

Here's a minimal example showing the problem:

\version "2.16.0"

chordNames = \chordmode {
  \repeat unfold 32 c1

melody = \relative c' {
  \repeat unfold 32 c1

verseI = \lyricmode {
  \repeat unfold 16 foo

verseII = \lyricmode {
  \repeat unfold 16 ""
  \repeat unfold 16 bar

\score {
    \new ChordNames \chordNames
    \new Staff { \melody  }
    \addlyrics { \verseI  }
    \addlyrics {\verseII  }
  \layout { }
  \midi { }


reply via email to

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