Revised autobeam settings patch and ran makelsr.py
[lilypond/mpolesky.git] / Documentation / snippets / new / beam-endings-in-score-context.ly
blob890e091ce1ecae3fa3492c3df66c86fb9e92cec9
1 \version "2.13.29"
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:
10 doctitle = "Beam endings in Score context"
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)
19 \new Staff {
20 c8 c c c c c c c c c
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
27 \new Staff {
28 % Inherit beaming from Score context
31 \voiceOne
32 c8 c c c c c c c c c
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