|
From: | Steve Carlock |
Subject: | Re: Chord Symbols below the staff |
Date: | Thu, 20 Mar 2025 17:50:58 -0700 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |