Jump to content

Held note (tenuto) fingering: 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 5: Line 5:
This snippet contains a function which creates the desired fingering object without above problems.
This snippet contains a function which creates the desired fingering object without above problems.


<lilypond version="2.24.0">
<lilypond version="2.24">
% http://lists.gnu.org/archive/html/lilypond-user/2018-05/msg00099.html
% http://lists.gnu.org/archive/html/lilypond-user/2018-05/msg00099.html



Revision as of 18:53, 16 November 2025

Held note or tenuto fingering indicates that a finger should be kept pressed on the fret also after the actual duration of the note. This is usually suggested to facilitate the move of the fingers to the next position. It is represented by a digit (the finger) followed by a t (meaning tenuto).

If you use \finger "3t", you will get a poor result, because \finger uses the Emmentaler notation font, which has numbers but not letters. As a result, the number will use a serif font, while the letter t will use a san serif font. The letter t will also be positioned incorrectly.

This snippet contains a function which creates the desired fingering object without above problems.

\version "2.24"

% http://lists.gnu.org/archive/html/lilypond-user/2018-05/msg00099.html

tenutoFingeringMark = \markup \text \fontsize #2 \bold "t"
t = #(define-event-function (n) (index?)
  #{ \finger \markup \concat { #(format #f "~d" n) \tenutoFingeringMark } #})

{
  c'4\t3 e'_\t1 a'2-\t2
}