[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Chord Symbols below the staff
From: |
Valentin Petzel |
Subject: |
Re: Chord Symbols below the staff |
Date: |
Fri, 21 Mar 2025 01:45:45 +0100 |
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
signature.asc
Description: This is a digitally signed message part.