Making \thumb behave like other fingerings: Difference between revisions
Appearance
Import snippet from LSR |
m New category |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<code>\thumb</code> does not behave like other fingerings, in particular with regards to slur avoidance, since it is defined as a <code>Script</code> object. This can be changed by redefining <code>\thumb</code> as a <code>Fingering</code> object, which also allows finer control over positioning with <code>fingeringOrientations</code>. | <code>\thumb</code> does not behave like other fingerings, in particular with regards to slur avoidance, since it is defined as a <code>Script</code> object. This can be changed by redefining <code>\thumb</code> as a <code>Fingering</code> object, which also allows finer control over positioning with <code>fingeringOrientations</code>. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
%% http://lsr.di.unimi.it/LSR/Item?id=690 | %% http://lsr.di.unimi.it/LSR/Item?id=690 | ||
| Line 23: | Line 23: | ||
[[Category:Workaround]] | [[Category:Workaround]] | ||
[[Category:Version-specific]] | [[Category:Version-specific]] | ||
[[Category:Snippet]] | |||
Latest revision as of 23:37, 21 November 2025
\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"
%% 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
}