]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/beam-endings-in-score-context.ly
Run scripts/auxiliar/update-with-convert-ly.sh
[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.dsi.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.16.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
22 \relative c'' {
23   \time 5/4
24   % Set default beaming for all staves
25   \set Score.baseMoment = #(ly:make-moment 1 8)
26   \set Score.beatStructure = #'(3 4 3)
27   <<
28     \new Staff {
29       c8 c c c c c c c c c
30     }
31     \new Staff {
32       % Modify beaming for just this staff
33       \set Staff.beatStructure = #'(6 4)
34       c8 c c c c c c c c c
35     }
36     \new Staff {
37       % Inherit beaming from Score context
38       <<
39         {
40           \voiceOne
41           c8 c c c c c c c c c
42         }
43         % Modify beaming for this voice only
44         \new Voice {
45           \voiceTwo
46           \set Voice.beatStructure = #'(6 4)
47           a8 a a a a a a a a a
48         }
49       >>
50     }
51   >>
52 }