Thank you!  That makes perfect sense.  I had copied and pasted the chords
from a different document and overlooked the usage of \chords.



On Thu, Mar 20, 2025 at 5:45 PM Valentin Petzel <valen...@petzel.at> wrote:

> Hello Steve,
>
> > I'm having an issue with most of the chord symbols (except for the No
> > Chord) being displayed below the staff line.  Obviously I've messed
> > something up but I have not been able to figure it out.  If someone could
> > please take a look and point me in the right direction, I would
> appreciate
> > it.
>
> the issue here is that you are using `\chords` for this. As you can see
> with
> `\displayLilyMusic\chords { c }` `\chords` is a shorthand for changing to
> chordmode and creating a new chord name context in one go (similar to
> `\drums`
> for `\new DrumStaff \drummode ...`).
>
> But this means that when you do
>
> << \new ChordNames \chords ... \new Staff >>
>
> this will create two ChordName contexts, and the Staff is only created
> then,
> thus defaulting below the chord names. If instead you have
>
> << \new ChordNames { \global \chords ... } \new Staff ... >>
>
> the second ChordName context is created after the Staff, thus being placed
> below it.
>
> Of course the proper solution is to replace `\chords ...` by `\chordmode
> ...`.
>
> Cheers,
> Valentin

Reply via email to