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