lilypond-user
[Top][All Lists]
Advanced

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

Re: Labeling a chordNames staff


From: David Kastrup
Subject: Re: Labeling a chordNames staff
Date: Sun, 15 Dec 2024 12:25:25 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Raphael Mankin <raph@mankin.org.uk> writes:

> Is it possible to label a chordNames staff much as instrumentName
> labels a music staff?
>
> Motivation: In popular music it is common to have more than one
> harmonisation of a tune. I would like to label them as to
> source/style/...

It is unusual and thus not the default.  But using

\layout {
  \context {
    \ChordNames
    \consists "Instrument_name_engraver"
    instrumentName = ""
    shortInstrumentName = ""
  }
}

at the top of your file should be enough to let the ChordNames contexts
heed a user setting of instrumentName and shortInstrumentName.  Note the
defaults set here: otherwise the ChordNames contexts inherit the
settings from any enclosing StaffGroup or similar when nothing is
getting set explicitly and then typesets them, leading to duplication.

Should this be the default?  Possibly.  I don't think labelling the
chord name line is all that unusual.

-- 
David Kastrup



reply via email to

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