]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/beam-endings-in-score-context.ly
Merge remote-tracking branch 'origin/master' into translation
[lilypond.git] / Documentation / snippets / beam-endings-in-score-context.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.18.0"
8
9 \header {
10   lsrtags = "rhythms"
11
12   texidoc = "
13 Beam-ending rules specified in the @code{Score} context apply to all
14 staves, but can be modified at both @code{Staff} and @code{Voice}
15 levels:
16
17 "
18   doctitle = "Beam endings in Score context"
19 } % begin verbatim
20
21 \relative c'' {
22   \time 5/4
23   % Set default beaming for all staves
24   \set Score.baseMoment = #(ly:make-moment 1/8)
25   \set Score.beatStructure = #'(3 4 3)
26   <<
27     \new Staff {
28       c8 c c c c c c c c c
29     }
30     \new Staff {
31       % Modify beaming for just this staff
32       \set Staff.beatStructure = #'(6 4)
33       c8 c c c c c c c c c
34     }
35     \new Staff {
36       % Inherit beaming from Score context
37       <<
38         {
39           \voiceOne
40           c8 c c c c c c c c c
41         }
42         % Modify beaming for this voice only
43         \new Voice {
44           \voiceTwo
45           \set Voice.beatStructure = #'(6 4)
46           a8 a a a a a a a a a
47         }
48       >>
49     }
50   >>
51 }