On 7/28/2018 7:34 PM, Mogens Lemvig Hansen wrote:
Hi,
In the example below, how do I move the “text” above the chords? I
have tried playing with outside-staff-priority but haven’t found the
right incantation.
Regards,
Mogens
\version "2.18.2"
\score {
<<
\new ChordNames { c1 g }
\new Staff {
\tempo 4=100
\override Staff.TextScript.outside-staff-priority = #2000
g'4 g' d' g'
c''^\markup "text" b' g' g'
}
>>
}
From back a while on the mailing list:
(one option)
\version "2.18.2"
addMarkup =
#(define-music-function (parser location mrkp)(markup?)
#{
\once \override ChordName.before-line-breaking =
#(lambda (grob)
(ly:grob-set-property! grob 'text
#{
\markup
\override #'(direction . 1)
\dir-column { $(ly:grob-property grob 'text) #mrkp }
#}))
#})
\new ChordNames \chordmode {
a
b
\addMarkup \markup \raise #2 \fontsize #-4 "text"
c:7+
\addMarkup \markup \italic "text here"
d:m5-
}
%%%%%%%%%%%%%%%%%%
\score {
<<
\new ChordNames { c1 g }
\new Staff {
\tempo 4=100
\override Staff.TextScript.outside-staff-priority = #2000
g'4 g' d' g'
c''^\markup "text" b' g' g'
}
>>
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user