lilypond-user
[Top][All Lists]
Advanced

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

Re: Adding text to chord names or note names


From: Robin Bannister
Subject: Re: Adding text to chord names or note names
Date: Sat, 26 Nov 2022 22:36:59 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 26.11.2022 00:06, Koen van Walstijn wrote:
Ideally, I would love to be able to do something like this:
>
> \new ChordNames {    \relative { c1^\markup { \super "6-9" } }}
>
> The text added to the note would get printed above the staff in a
> Staff context but gets ignored by the ChordNames context.



ChordNames ignores BarLines too.
But you probably didn't realize the implications of the snippet
'Adding bar lines to ChordNames context' at
https://lilypond.org/doc/v2.22/Documentation/notation/displaying-chords#customizing-chord-names
It uses \consists to add the appropriate engraver.


You can do that for your case too, like this:

\new ChordNames \with { \consists Text_engraver }
      \relative { c1^\markup { \super "6-9" } }
}

And then read
https://lilypond.org/doc/v2.22/Documentation/notation/modifying-context-plug_002dins
and maybe
https://lsr.di.unimi.it/LSR/Item?id=280


Cheers,
Robin



reply via email to

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