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