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