lilypond-user
[Top][All Lists]
Advanced

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

Re: How to tweak X-Y-offset of left Fingerings in a chord


From: Jean Abou Samra
Subject: Re: How to tweak X-Y-offset of left Fingerings in a chord
Date: Wed, 14 Apr 2021 11:47:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1


Le 14/04/2021 à 10:30, Jean Abou Samra a écrit :


For Y-offset, I haven't found a workaround yet.


Okay, this does the job:

\version "2.22.0"

{
  \set fingeringOrientations = #'(left)
  \once \override Staff.FingeringColumn.positioning-done =
    #(lambda (grob)
       (let* ((fingering-array (ly:grob-object grob 'fingerings))
              (fingerings (ly:grob-array->list fingering-array)))
         (for-each
           (lambda (fingering x y)
             (ly:grob-translate-axis! fingering x X)
             (ly:grob-translate-axis! fingering y Y))
           fingerings
           '(1 -0.5)
           '(5 -1))
         #t))
  <c'-3 e'-2>
}

Puzzled,
Jean




reply via email to

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