]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/beam-endings-in-score-context.ly
Docs: run convert-ly for 2.14.0.
[lilypond.git] / Documentation / snippets / new / beam-endings-in-score-context.ly
1 \version "2.14.0"
2
3 \header {
4   lsrtags = "rhythms"
5   texidoc = "
6 Beat structure rules specified in the @code{Score} context apply to all
7 staves, but can be modified at both @code{Staff} and @code{Voice}
8 levels:
9 "
10   doctitle = "Beam endings in Score context"
11 }
12
13 \relative c'' {
14   \time 5/4
15   % Set default beaming for all staves
16   \set Score.baseMoment = #(ly:make-moment 1 8)
17   \set Score.beatStructure = #'(3 4 3)
18   <<
19     \new Staff {
20       c8 c c c c c c c c c
21     }
22     \new Staff {
23       % Modify beaming for just this staff
24       \set Staff.beatStructure = #'(6 4)
25       c8 c c c c c c c c c
26     }
27     \new Staff {
28       % Inherit beaming from Score context
29       <<
30         {
31           \voiceOne
32           c8 c c c c c c c c c
33         }
34         % Modify beaming for this voice only
35         \new Voice {
36           \voiceTwo
37           \set Voice.beatStructure = #'(6 4)
38           a8 a a a a a a a a a
39         }
40       >>
41     }
42   >>
43 }