]> git.donarmstrong.com Git - lilypond.git/blob - input/new/specifying-context-with-beatgrouping.ly
Merge commit 'origin' into beamlets2
[lilypond.git] / input / new / specifying-context-with-beatgrouping.ly
1 \version "2.12.0"
2
3 \header {
4   lsrtags = "rhythms"
5   texidoc = "
6 By specifying the context, the effect of @code{beatGrouping} can be
7 limited to the context specified, and the values which may have
8 been set in higher-level contexts can be overridden.  The
9 @code{\set} commands must be placed @emph{after} all @code{\time}
10 commands:
11 "
12   doctitle = "Specifying context with beatGrouping"
13 }
14
15 \score {
16   \new Staff <<
17     \time 7/8
18     \new Voice {
19       \relative c'' {
20         \set Staff.beatGrouping = #'(2 3 2)
21         a8 a a a a a a
22       }
23     }
24     \new Voice {
25       \relative c' {
26         \voiceTwo
27         \set Voice.beatGrouping = #'(1 3 3)
28         f8 f f f f f f
29       }
30     }
31   >>
32 }