Mogens Lemvig Hansen <[email protected]> writes:

> 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' 
>     }
>   >>
> }

It's a bit more complex than that.  For outside-staff-priority to make
any difference, you need to be in the same Staff (or rather vertical
axis group).

\version "2.18.2"

\score {
  \new Staff \with { \accepts "ChordNames" }
  <<
    \new ChordNames \with { \remove "Axis_group_engraver"
			  } { c1 g }
    {
      \tempo 4=100
      \override Staff.ChordName.outside-staff-priority = #20
      \override Staff.ChordName.direction = #UP
      g'4 g' d' g' 
      c''^\markup "text"  b' g' g' 
    }
  >>
}

-- 
David Kastrup
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to