]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add time signature snippet
authorPhil Holmes <mail@philholmes.net>
Mon, 28 Mar 2016 15:00:58 +0000 (16:00 +0100)
committerPhil Holmes <mail@philholmes.net>
Tue, 29 Mar 2016 10:28:13 +0000 (11:28 +0100)
Documentation/snippets/new/user-defined-time-signatures.ly [new file with mode: 0644]
Documentation/snippets/rhythms.snippet-list
Documentation/snippets/subdividing-beams.ly
Documentation/snippets/user-defined-time-signatures.ly [new file with mode: 0644]

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''
+  }
+>>
index f041143575e9b42216862df5ddf2c1694bcf25af..382302b03f62772a51fd27999ed32efa28edd5a9 100644 (file)
@@ -64,6 +64,7 @@ time-signature-in-parentheses---method-3.ly
 time-signature-in-parentheses.ly
 time-signature-printing-only-the-numerator-as-a-number-instead-of-the-fraction.ly
 tweaking-grace-layout-within-music.ly
+user-defined-time-signatures.ly
 using-alternative-flag-styles.ly
 using-grace-note-slashes-with-normal-heads.ly
 using-ties-with-arpeggios.ly
index ff33889da5683568e33237d80f0af87791c2a01b..05f6b9bc9b942be33adae0fbf81c6bf218fe7f0f 100644 (file)
@@ -4,7 +4,7 @@
 % and then run scripts/auxiliar/makelsr.py
 %
 % This file is in the public domain.
-%% Note: this file works from version 2.19.34
+%% Note: this file works from version 2.19.40
 \version "2.19.40"
 
 \header {
diff --git a/Documentation/snippets/user-defined-time-signatures.ly b/Documentation/snippets/user-defined-time-signatures.ly
new file mode 100644 (file)
index 0000000..3bf7b76
--- /dev/null
@@ -0,0 +1,35 @@
+% DO NOT EDIT this file manually; it is automatically
+% generated from Documentation/snippets/new
+% Make any changes in Documentation/snippets/new/
+% and then run scripts/auxiliar/makelsr.py
+%
+% This file is in the public domain.
+%% Note: this file works from version 2.19.16
+\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"
+} % begin verbatim
+
+
+#(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''
+  }
+>>