]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/new/user-defined-time-signatures.ly
Imported Upstream version 2.19.45
[lilypond.git] / Documentation / snippets / new / user-defined-time-signatures.ly
diff --git a/Documentation/snippets/new/user-defined-time-signatures.ly b/Documentation/snippets/new/user-defined-time-signatures.ly
new file mode 100644 (file)
index 0000000..0494666
--- /dev/null
@@ -0,0 +1,27 @@
+\version "2.19.16"
+
+\header {
+  lsrtags = "rhythms"
+
+  texidoc = "
+New time signature styles can be defined.  The time signature in
+the second measure should be upside down in both staves.
+"
+
+  doctitle = "User defined time signatures"
+}
+
+#(add-simple-time-signature-style 'topsy-turvy
+   (lambda (fraction)
+     (make-rotate-markup 180 (make-compound-meter-markup fraction))))
+
+<<
+  \new Staff {
+    \time 3/4 f'2.
+    \override Score.TimeSignature.style = #'topsy-turvy
+    \time 3/4 R2. \bar "|."
+  }
+  \new Staff {
+    R2. e''
+  }
+>>