]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/lsr/beam-endings-in-score-context.ly
LSR: Update.
[lilypond.git] / input / lsr / beam-endings-in-score-context.ly
diff --git a/input/lsr/beam-endings-in-score-context.ly b/input/lsr/beam-endings-in-score-context.ly
new file mode 100644 (file)
index 0000000..f9d9e04
--- /dev/null
@@ -0,0 +1,49 @@
+%% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
+%% This file is in the public domain.
+\version "2.11.62"
+
+\header {
+  lsrtags = "rhythms"
+
+  texidoc = "
+Beam-ending 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"
+} % begin verbatim
+
+\relative c'' {
+  \time 5/4
+  % Set default beaming for all staves
+  #(score-override-auto-beam-setting '(end * * 5 4) 3 8)
+  #(score-override-auto-beam-setting '(end * * 5 4) 7 8)
+  <<
+    \new Staff {
+      c8 c c c c c c c c c
+    }
+    \new Staff {
+      % Modify beaming for just this staff
+      #(override-auto-beam-setting '(end * * 5 4) 6 8 'Staff)
+      #(revert-auto-beam-setting '(end * * 5 4) 7 8 'Staff)
+      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
+          #(override-auto-beam-setting '(end * * 5 4) 6 8)
+          #(revert-auto-beam-setting '(end * * 5 4) 7 8)
+          a8 a a a a a a a a a
+        }
+      >>
+    }
+  >>
+}