]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/conducting-signs,-measure-grouping-signs.ly
Merge remote-tracking branch 'origin/master' into translation
[lilypond.git] / Documentation / snippets / conducting-signs,-measure-grouping-signs.ly
1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
5 %
6 % This file is in the public domain.
7 %% Note: this file works from version 2.16.0
8 \version "2.16.0"
9
10 \header {
11   lsrtags = "rhythms"
12   texidoc = "
13 Beat grouping within a measure is controlled by the context property
14 @code{beatStructure}.  Values of @code{beatStructure} are
15 established for many time signatures in
16 @file{scm/time-signature-settings.scm}.  Values of @code{beatStructure}
17 can be changed or set with @code{\\set}.
18 Alternatively, @code{\\time} can be used to both
19 set the time signature and establish the beat structure.
20 For this, you specify the internal grouping of beats in a measure
21 as a list of numbers (in Scheme syntax) before the time signature.
22
23 @code{\\time} applies to the @code{Timing} context, so it will not
24 reset values of @code{beatStructure} or @code{baseMoment} that are set
25 in other lower-level contexts, such as @code{Voice}.
26
27 If the @code{Measure_grouping_engraver} is included
28 in one of the display contexts, measure grouping signs will be
29 created.  Such signs ease reading rhythmically complex modern music.
30 In the example, the 9/8 measure is grouped in two different
31 patterns using the two different methods, while the 5/8 measure
32 is grouped according to the default setting in
33 @file{scm/time-signature-settings.scm}:
34 "
35   doctitle = "Conducting signs measure grouping signs"
36 } % begin verbatim
37
38
39
40 \score {
41   \new Voice \relative c'' {
42     \time 9/8
43     g8 g d d g g a( bes g) |
44     \set Timing.beatStructure = #'(2 2 2 3)
45     g8 g d d g g a( bes g) |
46     \time #'(4 5) 9/8
47     g8 g d d g g a( bes g) |
48     \time 5/8
49     a4. g4 |
50   }
51   \layout {
52     \context {
53       \Staff
54       \consists "Measure_grouping_engraver"
55     }
56   }
57 }