lilypond-user
[Top][All Lists]
Advanced

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

Re: markup above chordnames


From: Pierre Perol-Schneider
Subject: Re: markup above chordnames
Date: Sun, 29 Jul 2018 07:34:33 +0200

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 <address@hidden>:
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
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user



reply via email to

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