lilypond-user
[Top][All Lists]
Advanced

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

Re: markup above chordnames


From: David Kastrup
Subject: Re: markup above chordnames
Date: Sun, 29 Jul 2018 10:12:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Mogens Lemvig Hansen <address@hidden> 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

reply via email to

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