Jump to content

Adding fingerings to tablatures: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Line 1: Line 1:
To add fingerings to tablatures, use a combination of <code>\markup</code> and <code>\finger</code>.
To add fingerings to tablatures, use a combination of <code>\markup</code> and <code>\finger</code>.


<lilypond version="2.24.0">
<lilypond version="2.24">
one = \markup { \finger 1 }
one = \markup { \finger 1 }
two = \markup { \finger 2 }
two = \markup { \finger 2 }

Revision as of 18:44, 16 November 2025

To add fingerings to tablatures, use a combination of \markup and \finger.

\version "2.24"

one = \markup { \finger 1 }
two = \markup { \finger 2 }
threeTwo = \markup {
  \override #'(baseline-skip . 2)
  \column {
    \finger 3
    \finger 2
  }
}
threeFour = \markup {
  \override #'(baseline-skip . 2)
  \column {
    \finger 3
    \finger 4
  }
}

\score {
  \new TabStaff {
    \tabFullNotation
    \stemUp
    e8\4^\one b\2 <g\3 e'\1>^>[ b\2 e\4]
    <a\3 fis'\1>^>^\threeTwo[ b\2 e\4]
  }
}