]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/multiple-time-sig-settings.ly
Imported Upstream version 2.14.2
[lilypond.git] / input / regression / multiple-time-sig-settings.ly
diff --git a/input/regression/multiple-time-sig-settings.ly b/input/regression/multiple-time-sig-settings.ly
new file mode 100644 (file)
index 0000000..2caad79
--- /dev/null
@@ -0,0 +1,34 @@
+\version "2.14.0"
+
+\header {
+  texidoc = "
+Multiple overrides to the default time signature settings can be
+added.  In this example, notes should be beamed as indicated
+by the markups.
+"
+}
+
+\new Staff{
+  \relative c' {
+    \overrideTimeSignatureSettings
+      #'(4 . 4)  % time signature fraction
+      #'(1 . 4)  % base moment fraction
+      #'(1 1 1 1)    % beatStructure
+      #'()       % beamExceptions
+    \overrideTimeSignatureSettings
+      #'(3 . 4)  % time signature fraction
+      #'(1 . 4)  % base moment fraction
+      #'(1 1 1)    % beatStructure
+      #'()       % beamExceptions
+    \time 4/4
+    c8^\markup {"Beam by 1/4"} c c c c c c c |
+    \time 3/4
+    c8^\markup {"Beam by 1/4"} c c c c c |
+    \revertTimeSignatureSettings #'(4 . 4)
+    \revertTimeSignatureSettings #'(3 . 4)
+    \time 4/4
+    c8^\markup {"Beam by 1/2"} c c c c c c c |
+    \time 3/4
+    c8^\markup {"Beam by 3/4"} c c c c c |
+  }
+}