]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/clef-transposition-placement.ly
Imported Upstream version 2.19.45
[lilypond.git] / input / regression / clef-transposition-placement.ly
index 119e00a903a28ef7b5be816d84748e1a58df51e7..256264ae819fb54a25343b898c89ddfa1f407682 100644 (file)
@@ -1,18 +1,50 @@
-\version "2.16.0"
+\version "2.19.22"
 
 \header {
 
   texidoc="Transposition symbols should be correctly positioned
-close to the parent clef."
+close to the parent clef.  Horizontal alignment is fine-tuned
+for standard C, G and F clefs: for example, downwards transposition
+of a G clef should be centered exactly under the middle of clef hook.
+For clefs that don't have fine-tuned alignment the transposition
+number should be centered."
 
 }
+
+% use huge staff-size to see the tiny differencies better.
+#(set-global-staff-size 35)
+
+clefVariations =
+#(define-music-function (type)(string?)
+   #{
+     \once \omit Staff.Clef s4
+     \override Staff.Clef.full-size-change = ##t
+     \clef #(string-append type "8") s4
+     \clef #(string-append type "15") s4
+     \clef #(string-append type "(8)") s4
+     \clef #(string-append type "(141)") s4
+     % change clefs are omitted - too similar to regular ones
+     \cueClef #(string-append type "8") s4
+     \cueClef #(string-append type "15") s4
+     \cueClef #(string-append type "(8)") s4
+     \cueClef #(string-append type "(141)") s4
+   #})
+
+\markup "Even the smallest positioning changes may indicate a problem!"
 \score {
   <<
-    \new Staff { \clef "G^8" g''1 }
-    \new Staff { \clef "F^8" c'1 }
-    \new Staff { \clef "C^8" c''1 }
-    \new Staff { \clef "G_8" g1 }
-    \new Staff { \clef "F_8" c,1 }
-    \new Staff { \clef "C_8" c1 }
+    \new Staff { \clefVariations "C_" }
+    \new Staff { \clefVariations "C^" }
+    \new Staff { \clefVariations "G_" }
+    \new Staff { \clefVariations "G^" }
+    \new Staff { \clefVariations "F_" }
+    \new Staff { \clefVariations "F^" }
   >>
 }
+
+\layout {
+  \context {
+    \Staff
+    \remove Time_signature_engraver
+  }
+}
\ No newline at end of file