Jump to content

Positioning fingering indications precisely: Difference between revisions

From LilyPond wiki
No edit summary
m Avoid cropping
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Generally the options available for positioning the fingering of chords work well by default, but if one of the indications needs to positioned more precisely the following tweak may be used. This is particularly useful for correcting the positioning when intervals of a second are involved.
The semi-automatic positioning of fingering within a chords works usally well, but if one of the indications needs to be positioned more precisely the following tweak may be used. This is particularly useful for correcting the positioning when intervals of a second are involved.


<lilypond version="2.24">
<lilypond version="2.24">
\relative c' {
\markup \with-true-dimensions % work around a cropping issue
  \set fingeringOrientations = #'(left)
\score {
  <c-1 d-2 a'-5>4
  \relative c' {
  <c-1 d-\tweak extra-offset #'(0 . 0.2)-2 a'-5>4
    \set fingeringOrientations = #'(left)
  \set fingeringOrientations = #'(down)
    <c-1 d-2 a'-5>4
  <c-1 d-2 a'-5>4
    <c-1 d-\tweak extra-offset #'(0 . 0.2)-2 a'-5>
  <c-\tweak extra-offset #'(0 . -1.1)-1
 
  d-\tweak extra-offset #'(-1.2 . -1.8)-2 a'-5>4
    \set fingeringOrientations = #'(down)
  \set fingeringOrientations = #'(down right up)
    <c-1 d-2 a'-5>
  <c-1 d-\tweak extra-offset #'(-0.3 . 0)-2 a'-5>4
    <c-\tweak extra-offset #'(0 . -1.1)-1
  <c-1 d-\tweak extra-offset #'(-1 . 1.2)-2 a'-5>4
    d-\tweak extra-offset #'(-1.2 . -1.8)-2 a'-5> |
  \set fingeringOrientations = #'(up)
 
  <c-1 d-\tweak extra-offset #'(0 . 1.1)-2
    \set fingeringOrientations = #'(down right up)
  a'-\tweak extra-offset #'(0 . 1)-5>4
    <c-1 d-\tweak extra-offset #'(-0.3 . 0)-2 a'-5>4
  <c-1 d-\tweak extra-offset #'(-1.2 . 1.5)-2
    <c-1 d-\tweak extra-offset #'(-1 . 1.2)-2 a'-5>
  a'-\tweak extra-offset #'(0 . 1.4)-5>4
 
    \set fingeringOrientations = #'(up)
    <c-1 d-\tweak extra-offset #'(0 . 1.1)-2
    a'-\tweak extra-offset #'(0 . 1)-5>
    <c-1 d-\tweak extra-offset #'(-1.2 . 1.5)-2
    a'-\tweak extra-offset #'(0 . 1.4)-5> |
  }
}
}
</lilypond>
</lilypond>


[[Category:Editorial annotations]]
[[Category:Editorial annotations]]
[[Category:Included in the official documentation]][[Category:Snippet]]
[[Category:Tweaks and overrides]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 12:44, 12 December 2025

The semi-automatic positioning of fingering within a chords works usally well, but if one of the indications needs to be positioned more precisely the following tweak may be used. This is particularly useful for correcting the positioning when intervals of a second are involved.

\version "2.24"

\markup \with-true-dimensions % work around a cropping issue
\score {
  \relative c' {
    \set fingeringOrientations = #'(left)
    <c-1 d-2 a'-5>4
    <c-1 d-\tweak extra-offset #'(0 . 0.2)-2 a'-5>

    \set fingeringOrientations = #'(down)
    <c-1 d-2 a'-5>
    <c-\tweak extra-offset #'(0 . -1.1)-1
     d-\tweak extra-offset #'(-1.2 . -1.8)-2 a'-5> |

    \set fingeringOrientations = #'(down right up)
    <c-1 d-\tweak extra-offset #'(-0.3 . 0)-2 a'-5>4
    <c-1 d-\tweak extra-offset #'(-1 . 1.2)-2 a'-5>

    \set fingeringOrientations = #'(up)
    <c-1 d-\tweak extra-offset #'(0 . 1.1)-2
     a'-\tweak extra-offset #'(0 . 1)-5>
    <c-1 d-\tweak extra-offset #'(-1.2 . 1.5)-2
     a'-\tweak extra-offset #'(0 . 1.4)-5> |
  }
}