]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/conducting-signs,-measure-grouping-signs.ly
Merge branch 'lilypond/translation' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / Documentation / snippets / new / conducting-signs,-measure-grouping-signs.ly
1 \version "2.13.4"
2
3 \header {
4   lsrtags = "rhythms"
5   texidoc = "
6 Beat grouping within a bar is controlled by the default grouping
7 established in @code{beamSettings}.  This grouping can be established
8 by the use of @code{\\overrideBeamSettings}.  Alternatively, the
9 Scheme function @code{set-time-signature} can be used to both
10 set the time signature and establish the default grouping rule.
11 @code{set-time-signature}, takes three arguments: the
12 number of beats, the beat length, and the internal grouping of beats in
13 the measure.  If the @code{Measure_grouping_engraver} is included
14 in one of the display contexts, measure grouping signs will be
15 created.  Such signs ease reading rhythmically complex modern music.
16 In the example, the 9/8 measure is grouped in two different
17 patterns using the two different methods, while the 5/8 measure
18 is grouped according to the default setting in
19 @file{scm/beam-settings.scm}:
20 "
21   doctitle = "Conducting signs, measure grouping signs"
22 }
23
24 \score {
25   \relative c'' {
26     \time 9/8
27     \overrideBeamSettings #'Score #'(9 . 8) #'end #'((* . (2 2 2 3)))
28     g8 g d d g g a( bes g) |
29     #(set-time-signature 9 8 '(4 5))
30     g8 g d d g g a( bes g) |
31     \time 5/8
32     a4. g4 |
33   }
34   \layout {
35     \context {
36       \Staff
37       \consists "Measure_grouping_engraver"
38     }
39   }
40 }