]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/flat-flags-and-beam-nibs.ly
Merge remote-tracking branch 'origin/translation' into staging
[lilypond.git] / Documentation / snippets / flat-flags-and-beam-nibs.ly
1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
5 %
6 % This file is in the public domain.
7 %% Note: this file works from version 2.19.0
8 \version "2.19.0"
9
10 \header {
11   lsrtags = "contemporary-notation, rhythms"
12
13   texidoc = "
14  Flat flags on lone notes and beam nibs at the ends of beamed figures
15 are both possible with a combination of @code{stemLeftBeamCount},
16 @code{stemRightBeamCount} and paired @code{[]} beam indicators.
17
18
19
20
21 For right-pointing flat flags on lone notes, use paired @code{[]} beam
22 indicators and set @code{stemLeftBeamCount} to zero (see Example 1).
23
24
25
26
27 For left-pointing flat flags, set @code{stemRightBeamCount} instead
28 (Example 2).
29
30
31
32
33 For right-pointing nibs at the end of a run of beamed notes, set
34 @code{stemRightBeamCount} to a positive value. And for left-pointing
35 nibs at the start of a run of beamed notes, set
36 @code{stemLeftBeamCount} instead (Example 3).
37
38
39
40
41 Sometimes it may make sense for a lone note surrounded by rests to
42 carry both a left- and right-pointing flat flag. Do this with paired
43 @code{[]} beam indicators alone (Example 4).
44
45
46
47
48 (Note that @code{\\set stemLeftBeamCount} is always equivalent to
49 @code{\\once \\set}.  In other words, the beam count settings are not
50 @qq{sticky}, so the pair of flat flags attached to the lone
51 @code{16[]} in the last example have nothing to do with the
52 @code{\\set} two notes prior.)
53
54
55
56
57 "
58   doctitle = "Flat flags and beam nibs"
59 } % begin verbatim
60
61 \score {
62   <<
63     % Example 1
64     \new RhythmicStaff {
65       \set stemLeftBeamCount = #0
66       c16[]
67       r8.
68     }
69     % Example 2
70     \new RhythmicStaff {
71       r8.
72       \set stemRightBeamCount = #0
73       16[]
74     }
75     % Example 3
76     \new RhythmicStaff {
77       16 16
78       \set stemRightBeamCount = #2
79       16 r r
80       \set stemLeftBeamCount = #2
81       16 16 16
82     }
83     % Example 4
84     \new RhythmicStaff {
85       16 16
86       \set stemRightBeamCount = #2
87       16 r16
88       16[]
89       r16
90       \set stemLeftBeamCount = #2
91       16 16
92     }
93   >>
94 }