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: David Bobroff
Subject: Re: \key Moves \chords Below Staff
Date: Mon, 18 Apr 2011 09:08:49 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9

On 4/18/2011 9:03 AM, Christian Eitner wrote:
Dear Xavier,

On 18 April 2011 10:40, Xavier Scheuer<address@hidden>  wrote:
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
      }
    }
  >>
}
I see. So \key implicitly creates the Staff context before the
ChordNames context, which is why they appear below the staff.

My problem is that a lot of things are going on before I need a few
bars with added chord names. What would be the recommended way to add
these 'in the middle of things'?

Cheers,

Christian

_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user


I would simply use skips:

\version "2.12.3"

{
<<
    \chords
    {
      s1*2
      a1 c
    }
    \relative c''
    {
      a1 c a c
    }
>>
}

Isn't this what you mean?

-David



reply via email to

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