lilypond-user
[Top][All Lists]
Advanced

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

Re: how to move TextScript closer to the staff?


From: Federico Bruni
Subject: Re: how to move TextScript closer to the staff?
Date: Sun, 1 Dec 2013 10:27:46 +0100

2013/12/1 Karol Majewski <address@hidden>
Because LilyPond does not handle fingaring notation well, I wrote markup command:

\version "2.17.96"

#(define-markup-command
  (fingerMod layout props arg)
  (markup-list?)
  (interpret-markup layout props
    (markup
      (#:left-align
        (#:override
          '(baseline-skip . 1.5)
          (#:finger
            (make-center-column-markup arg)))))))

{
  <fis' b' d'>4 ^\markup \fingerMod { 1 3 5 } c'2.
}

The drawback is that the numerals are not centered on notehead.

Now, take a look at the example. My question is: how can I improve the code to have this TextScript (numerals) closer to the staff?


What about this?

 \version "2.17.96"

#(define-markup-command
  (fingerMod layout props arg)
  (markup-list?)
  (interpret-markup layout props
    (markup
      (#:left-align
        (#:override
          '(baseline-skip . 1.5)
          (#:finger
            (make-center-column-markup arg)))))))

{
  \once \override TextScript.extra-offset = #'(0 . -1)
  <fis' b' d'>4 ^\markup \fingerMod { 1 3 5 } c'2.
}


reply via email to

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