lilypond-user
[Top][All Lists]
Advanced

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

Re: markup above chordnames


From: Ben
Subject: Re: markup above chordnames
Date: Sat, 28 Jul 2018 20:04:30 -0400
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0

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'

    }

  >>

}

 

reply via email to

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