]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/key-clefs.ly
Properties to control placement of accidentals in KeySignatures
[lilypond.git] / input / regression / key-clefs.ly
index 761f062710823654134893c6545c7b8b0bce14aa..58534f078c4e815190fa1943612e7416b887475a 100644 (file)
@@ -1,7 +1,8 @@
 
-\version "2.12.0"
+\version "2.16.0"
 \header { texidoc = "Each clef has its own accidental placing
-rules. "}
+rules, which can be adjusted using @code{sharp-positions}
+and @code{flat-positions}." }
 
 #(set-global-staff-size 16)
 
@@ -23,7 +24,18 @@ rules. "}
   \key cis \major cis \key ces \major ces
   \clef bass
   \key cis \major cis \key ces \major  ces
+  \break R1
+  \tempo "B-sharp on top"
+  \override Staff.KeySignature #'sharp-positions = #'(6 0 1 2 3 4 5)
+  \override Staff.KeyCancellation #'sharp-positions = #'(6 0 1 2 3 4 5)
+  \key cis \major R
+  \tempo "Flats throughout the staff"
+  \override Staff.KeySignature #'flat-positions = #'((-5 . 5))
+  \override Staff.KeyCancellation #'flat-positions = #'((-5 . 5))
+  \key ces \major R
+  \clef tenor
+  \key cis \major cis \break \key ces \major ces
+  \clef treble
+  \key cis \major cis \key ces \major ces
 }
 
-
-