]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/automatic-beam-subdivisions.ly
Docs: run convert-ly for 2.14.0.
[lilypond.git] / Documentation / snippets / new / automatic-beam-subdivisions.ly
1 \version "2.14.0"
2
3 \header {
4   lsrtags = "rhythms"
5
6   texidoc = "
7 Beams can be subdivided automatically.  By setting the property
8 @code{subdivideBeams}, beams are subdivided at beat positions (as
9 specified in @code{baseMoment}).
10
11 "
12   doctitle = "Automatic beam subdivisions"
13 }
14
15 \new Staff {
16   \relative c'' {
17     <<
18       {
19         \voiceOne
20         \set subdivideBeams = ##t
21         b32[ a g f c' b a g
22         b32^"subdivide beams" a g f c' b a g]
23       }
24       \new Voice {
25         \voiceTwo
26         b32_"default"[ a g f c' b a g
27         b32 a g f c' b a g]
28       }
29     >>
30     \oneVoice
31     \set baseMoment = #(ly:make-moment 1 8)
32     \set beatStructure = #'(2 2 2 2)
33     b32^"baseMoment 1 8"[ a g f c' b a g]
34     \set baseMoment = #(ly:make-moment 1 16)
35     \set beatStructure = #'(4 4 4 4)
36     b32^"baseMoment 1 16"[ a g f c' b a g]
37   }
38 }
39