]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/beam-endings-in-score-context.ly
Add a hack to packed spacing to work around extra columns.
[lilypond.git] / input / lsr / beam-endings-in-score-context.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.11.62"
4
5 \header {
6   lsrtags = "rhythms"
7
8   texidoc = "
9 Beam-ending rules specified in the @code{Score} context apply to all
10 staves, but can be modified at both @code{Staff} and @code{Voice}
11 levels: 
12
13 "
14   doctitle = "Beam endings in Score context"
15 } % begin verbatim
16
17 \relative c'' {
18   \time 5/4
19   % Set default beaming for all staves
20   #(score-override-auto-beam-setting '(end * * 5 4) 3 8)
21   #(score-override-auto-beam-setting '(end * * 5 4) 7 8)
22   <<
23     \new Staff {
24       c8 c c c c c c c c c
25     }
26     \new Staff {
27       % Modify beaming for just this staff
28       #(override-auto-beam-setting '(end * * 5 4) 6 8 'Staff)
29       #(revert-auto-beam-setting '(end * * 5 4) 7 8 'Staff)
30       c8 c c c c c c c c c
31     }
32     \new Staff {
33       % Inherit beaming from Score context
34       <<
35         {
36           \voiceOne
37           c8 c c c c c c c c c
38         }
39         % Modify beaming for this voice only
40         \new Voice {
41           \voiceTwo
42           #(override-auto-beam-setting '(end * * 5 4) 6 8)
43           #(revert-auto-beam-setting '(end * * 5 4) 7 8)
44           a8 a a a a a a a a a
45         }
46       >>
47     }
48   >>
49 }