X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fnew%2Fbeam-endings-in-score-context.ly;fp=Documentation%2Fsnippets%2Fnew%2Fbeam-endings-in-score-context.ly;h=b622ac1a1dcea6f94a99dd6171f337fa774f4576;hb=e90f0536f9be39ada0bef0aeb0d275dec3b2fb5b;hp=0000000000000000000000000000000000000000;hpb=a8c9e8a7ca320ab0df5fd32e717fd62cd7635ce6;p=lilypond.git diff --git a/Documentation/snippets/new/beam-endings-in-score-context.ly b/Documentation/snippets/new/beam-endings-in-score-context.ly new file mode 100644 index 0000000000..b622ac1a1d --- /dev/null +++ b/Documentation/snippets/new/beam-endings-in-score-context.ly @@ -0,0 +1,43 @@ +\version "2.14.0" + +\header { + lsrtags = "rhythms" + texidoc = " +Beat structure rules specified in the @code{Score} context apply to all +staves, but can be modified at both @code{Staff} and @code{Voice} +levels: +" + doctitle = "Beam endings in Score context" +} + +\relative c'' { + \time 5/4 + % Set default beaming for all staves + \set Score.baseMoment = #(ly:make-moment 1 8) + \set Score.beatStructure = #'(3 4 3) + << + \new Staff { + c8 c c c c c c c c c + } + \new Staff { + % Modify beaming for just this staff + \set Staff.beatStructure = #'(6 4) + c8 c c c c c c c c c + } + \new Staff { + % Inherit beaming from Score context + << + { + \voiceOne + c8 c c c c c c c c c + } + % Modify beaming for this voice only + \new Voice { + \voiceTwo + \set Voice.beatStructure = #'(6 4) + a8 a a a a a a a a a + } + >> + } + >> +}