lilypond-user
[Top][All Lists]
Advanced

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

Re: \key Moves \chords Below Staff


From: Xavier Scheuer
Subject: Re: \key Moves \chords Below Staff
Date: Mon, 18 Apr 2011 10:40:29 +0200

On 18 April 2011 10:30, Christian Eitner <address@hidden> 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 <address@hidden>



reply via email to

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