]> 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 8d68529ea1a232cfe803d1691492c18dacd32a3d..58534f078c4e815190fa1943612e7416b887475a 100644 (file)
@@ -1,6 +1,8 @@
 
-\version "2.10.0"
-\header { texidoc = "Each clef have own accidental placing rules. " }
+\version "2.16.0"
+\header { texidoc = "Each clef has its own accidental placing
+rules, which can be adjusted using @code{sharp-positions}
+and @code{flat-positions}." }
 
 #(set-global-staff-size 16)
 
   \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
 }
 
-
-