]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/avoiding-collisions-with-chord-fingerings.ly
Web-ja: update introduction
[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.di.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.18.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 \relative c' {
24   \set fingeringOrientations = #'(up)
25   \set stringNumberOrientations = #'(up)
26   \set strokeFingerOrientations = #'(up)
27
28   % Default behavior
29   r8
30   <f c'-5>8
31   <f c'\5>8
32   <f c'-\rightHandFinger #2 >8
33
34   % No tweak needed
35   r8
36   <f c'-5>8
37   <f c'\5>8
38    % Corrected to avoid collisions
39   \override StrokeFinger.add-stem-support = ##t
40   <f c'-\rightHandFinger #2 >8
41 }