Pekka Siponen wrote Tuesday, March 24, 2009 4:24 PM

In the notation reference: 2.7.2 Displaying chords,
is a snippet for a simple lead sheet:

<<
 \chords { c2 g:sus4 f e }
 \relative c'' {
   a4 e c8 e r4
   b2 c4( d)
 }
 \addlyrics { One day this shall be free __ }


Why does the following shift the chords below the staff, and how can you get
them back up? This would be a welcome documentation subject.

It's because a Staff context cannot contain a Chords context
by default, so the Chords context is pushed below the Staff.
This is mentioned in Section 5.4.2 of the Notation Reference,
but I grant you it's not very easy to find or obvious.

See below for the solution.

\score {
\new Staff {
<<
 \chords { c2 g:sus4 f e }
 \relative c'' {
   a4 e c8 e r4
   b2 c4( d)
 }
 \addlyrics { One day this shall be free __ }

}
}

I can't seem to find a way to get them up in anything more complicated than the
first example.

Here's how:

\score {
 <<
   \chords { c2 g:sus4 f e }
   \new Staff {
     \relative c'' {
       a4 e c8 e r4
       b2 c4( d)
     }
     \addlyrics { One day this shall be free __ }
   }
 >>
}

Trevor



_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to