]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/avoiding-collisions-with-chord-fingerings.ly
LSR: Update.
[lilypond.git] / Documentation / snippets / avoiding-collisions-with-chord-fingerings.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.4"
5
6 \header {
7   lsrtags = "rhythms, editorial-annotations, chords, tweaks-and-overrides"
8
9   texidoc = "
10 Fingerings and string numbers applied to individual notes will
11 automatically avoid beams and stems, but this is not true by default
12 for fingerings and string numbers applied to the individual notes of
13 chords.  The following example shows how this default behavior can be
14 overridden.
15
16 "
17   doctitle = "Avoiding collisions with chord fingerings"
18 } % begin verbatim
19
20 \relative c' {
21   \set fingeringOrientations = #'(up)
22   \set stringNumberOrientations = #'(up)
23   \set strokeFingerOrientations = #'(up)
24
25   % Default behavior
26   r8
27   <f c'-5>8
28   <f c'\5>8
29   <f c'-\rightHandFinger #2 >8
30
31   % Corrected to avoid collisions
32   r8
33   \override Fingering #'add-stem-support = ##t
34   <f c'-5>8
35   \override StringNumber #'add-stem-support = ##t
36   <f c'\5>8
37   \override StrokeFinger #'add-stem-support = ##t
38   <f c'-\rightHandFinger #2 >8
39 }
40