[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Markup in ChordNames context
From: |
Thomas Morley |
Subject: |
Re: Markup in ChordNames context |
Date: |
Sat, 13 Aug 2022 13:20:53 +0200 |
Am Sa., 13. Aug. 2022 um 07:47 Uhr schrieb Jean Abou Samra <jean@abou-samra.fr>:
>
> Le 13/08/2022 à 01:02, Peter Chubb a écrit :
> > Hi,
> > Sometimes in vocal+ukulele music I want to indicate that a
> > particular chord uses an alternate fingering. I'd like to add
> > an asterisk and a footnote with fret diagram for these cases.
> > But the obvious
> > \chordmode { d^"*" }
> > fails with "error: string outside of text script or
> > \lyricmode"
> >
> > I'm using Lilypond 2.22.2
> >
> > Can someone give me a clue?
> >
> > Peter C
> >
>
>
>
>
> This is curiously similar to the recent question
> https://lists.gnu.org/archive/html/lilypond-user/2022-08/msg00005.html
>
> For footnotes referring to an object in the music, you can't
> use markup footnotes. You need to use the \footnote command.
>
> \version "2.22.2"
>
> \new ChordNames \chordmode {
> \once \override Score.FootnoteItem.annotation-line = ##f
> \footnote "*" #'(0.01 . 0.01) \markup { foo bar baz} d
> }
>
> Best,
> Jean
>
>
If you want to create footnotes in ChordNames follow Jean's reply.
Arbitrary \markup does not work, because Text_engraver is not in
default ChordNames and the "^"-sign is already taken as syntax in
ChordNames.
Though you can insert Text_engraver and use "_" to attach \markup,
tweaking direction etc.
\new ChordNames \with { \consists "Text_engraver" }
\chordmode {
d\tweak direction #UP _\markup \italic "foo"
}
Cheers,
Harm