bug-lilypond
[Top][All Lists]
Advanced

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

Re: Issue 1555 in lilypond: Multiple warnings concerning staff-affinitie


From: lilypond
Subject: Re: Issue 1555 in lilypond: Multiple warnings concerning staff-affinities
Date: Sat, 12 Mar 2011 00:04:00 +0000


Comment #11 on issue 1555 by address@hidden: Multiple warnings concerning staff-affinities
http://code.google.com/p/lilypond/issues/detail?id=1555

Quoting from Comment 7:

Through some mistake of copy and paste the Lyric lines have affinities
CENTER, UP, DOWN.

Lilypond and I are both confused here. Did your copy/paste error delete the staff between CENTER and UP Lyrics? In order to proceed, she will change one staff-affinity so the whole system goes #f CENTER CENTER DOWN #f, and should warn you that she is doing so.

The existing "staff-affinities should only decrease" is too specific, applying only to the case of a single group of non-staffs. Aren't we allowed to have DOWN #f CENTER #f UP ?

End of quote.

To answer your question, we are allowed to have DOWN #f CENTER #f UP. But the two lines with affinity #f are no longer non-staff lines. They are now staff lines for purposes of spacing, whatever they happen to contain.

Here's an example of the code I was proposing above:


\score {
 <<
    \new Staff {
      \new Voice = "Mel" {
        c''4
      }
    }
    \new Lyrics \with {
      \override VerticalAxisGroup #'staff-affinity = #CENTER
    } {
      \lyricsto "Mel" {
        Hi
      }
    }
    \new Lyrics \with {
      \override VerticalAxisGroup #'staff-affinity = #UP
    } {
      \lyricsto "Mel" {
        Med
      }
    }
    \new Lyrics \with {
      \override VerticalAxisGroup #'staff-affinity = #DOWN
    } {
      \lyricsto "Mel" {
        Lo
      }
    }
    \new Staff {
      \clef bass
      c4
    }
  >>
}


This compiles just fine, producing the attached file, but it generates a bunch of warnings (staff-affinities should only decrease).

I assume a warning is generated every time a grob is placed, and that's why there are so many of them.






reply via email to

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