]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/beam-endings-in-score-context.ly
Doc-de: translating snippets and correcting German assignment
[lilypond.git] / Documentation / snippets / new / beam-endings-in-score-context.ly
1 \version "2.13.4"
2
3 \header {
4   lsrtags = "rhythms"
5   texidoc = "
6 Beam-ending 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:
9 "
10   doctitle = "Beam endings in Score context"
11 }
12
13 \relative c'' {
14   \time 5/4
15   % Set default beaming for all staves
16   \overrideBeamSettings #'Score #'(5 . 4) #'end
17      #'(((1 . 8) . (3 4 3))
18         ((1 . 16) . (6 8 6))
19         ((1 . 32) . (12 16 12)))
20   <<
21     \new Staff {
22       c8 c c c c c c c c c
23     }
24     \new Staff {
25       % Modify beaming for just this staff
26       \overrideBeamSettings #'Staff #'(5 . 4) #'end
27         #'((* . (3 2)))
28       c8 c c c c c c c c c
29     }
30     \new Staff {
31       % Inherit beaming from Score context
32       <<
33         {
34           \voiceOne
35           c8 c c c c c c c c c
36         }
37         % Modify beaming for this voice only
38         \new Voice {
39           \voiceTwo
40           \overrideBeamSettings #'Voice #'(5 . 4) #'end
41               #'((* . (3 2)))
42           a8 a a a a a a a a a
43         }
44       >>
45     }
46   >>
47 }