Making \thumb behave like other fingerings

Revision as of 22:45, 26 October 2025 by Jean Abou Samra (talk | contribs) (Import snippet from LSR)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

\thumb does not behave like other fingerings, in particular with regards to slur avoidance, since it is defined as a Script object. This can be changed by redefining \thumb as a Fingering object, which also allows finer control over positioning with fingeringOrientations.

\version "2.24.0"

%% http://lsr.di.unimi.it/LSR/Item?id=690

%LSR Slur avoidance was fixed in version 2_13_24

thumb = 
\tweak 
  text 
  \markup \fontsize #5 \musicglyph  "scripts.thumb" 
  #(make-music 'FingeringEvent)

\relative c' {
  c2\thumb
  \set fingeringOrientations = #'(right)
  <c\thumb>2
}