On 18 April 2011 10:30, Christian Eitner <7enderh...@gmail.com> wrote: > > Hello, > > I have difficulty understanding this tiny example, which is a > breakdown of my general problem: > > { > %\key a \major > > << > \chords > { > a1 c > } > \relative c'' > { > a1 c > } >>> > } > > Without the \key command, the chords are shown above the staff. With > \key, they are shown below the staff. > > I know from other threads that putting \key into a seperate block, > which encloses the melody, solves the problem, but I don't understand > why. Any help would be appreciated.
It is due to implicit context creation. If you explicit your contexts (Staff, ChordNames) then such problem would not appear. As explained in the doc, \chords { ... } is a shortcut notation for \new ChordNames { \chordmode { ... } } . \score { << \new ChordNames { \chordmode { a1 c } } \new Staff { \relative c'' { \key a \major a1 c } } >> } Cheers, Xavier -- Xavier Scheuer <x.sche...@gmail.com> _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user