]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/automatic-beam-subdivisions.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / Documentation / snippets / automatic-beam-subdivisions.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.19.40"
8
9 \header {
10   lsrtags = "automatic-notation, connecting-notes, rhythms"
11
12   texidoc = "
13 Beams can be subdivided automatically.  By setting the property
14 @code{subdivideBeams}, beams are subdivided at beat positions (as
15 specified in @code{baseMoment}).
16
17 "
18   doctitle = "Automatic beam subdivisions"
19 } % begin verbatim
20
21 \new Staff {
22   \relative c'' {
23     <<
24       {
25         \voiceOne
26         \set subdivideBeams = ##t
27         b32[ a g f c' b a g
28         b32^"subdivide beams" a g f c' b a g]
29       }
30       \new Voice {
31         \voiceTwo
32         b32_"default"[ a g f c' b a g
33         b32 a g f c' b a g]
34       }
35     >>
36     \oneVoice
37     \set baseMoment = #(ly:make-moment 1/8)
38     \set beatStructure = 2,2,2,2
39     b32^"baseMoment 1 8"[ a g f c' b a g]
40     \set baseMoment = #(ly:make-moment 1/16)
41     \set beatStructure = 4,4,4,4
42     b32^"baseMoment 1 16"[ a g f c' b a g]
43   }
44 }