Avoiding collisions with chord fingerings: Difference between revisions
Appearance
Import snippet from LSR |
m New category |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
Fingerings and string numbers applied to individual notes will automatically avoid beams and stems, but this is not true by default for fingerings and string numbers applied to the individual notes of chords. The following example shows how this default behavior can be overridden. | Fingerings and string numbers applied to individual notes will automatically avoid beams and stems, but this is not true by default for fingerings and string numbers applied to the individual notes of chords. The following example shows how this default behavior can be overridden. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
%%%LSR This has been fixed in 2.21.2 -- see Issue 1250 -vv | %%%LSR This has been fixed in 2.21.2 -- see Issue 1250 -vv | ||
| Line 30: | Line 30: | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Rhythms]] | [[Category:Rhythms]] | ||
[[Category:Snippet]] | |||
Latest revision as of 23:15, 21 November 2025
Fingerings and string numbers applied to individual notes will automatically avoid beams and stems, but this is not true by default for fingerings and string numbers applied to the individual notes of chords. The following example shows how this default behavior can be overridden.
\version "2.24"
%%%LSR This has been fixed in 2.21.2 -- see Issue 1250 -vv
\relative c' {
\set fingeringOrientations = #'(up)
\set stringNumberOrientations = #'(up)
\set strokeFingerOrientations = #'(up)
% Default behavior
r8
<f c'-5>8
<f c'\5>8
<f c'-\rightHandFinger #2 >8
% No tweak needed
r8
<f c'-5>8
<f c'\5>8
% Corrected to avoid collisions
\override StrokeFinger.add-stem-support = ##t
<f c'-\rightHandFinger #2 >8
}