Hi Motgen, Hi Ben,

You cab also adjust your text position with 'extra-offset;

\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''-\tweak extra-offset #'(1 . 5)^\markup"text"  b' g' g'
    }
  >>
}

See:
http://lilypond.org/doc/v2.18/Documentation/learning/fixing-overlapping-notation.html#the-extra_002doffset-property

Cheers,
Pierre

2018-07-29 2:04 GMT+02:00 Ben <[email protected]>:

> 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
>
>
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to