]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/clef-engraver.cc
Run `make grand-replace'.
[lilypond.git] / lily / clef-engraver.cc
index b7e1ff2124f55ae83ff1eab792f05d76b88f7b51..c8e21f2ce86e10ad12e8df144fea7b8a6e54ec6b 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1997--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>,
+  (c) 1997--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>,
 
   Mats Bengtsson <matsb@s3.kth.se>
 */
@@ -11,6 +11,7 @@
 #include <cctype>
 using namespace std;
 
+#include "item.hh"
 #include "context.hh"
 #include "bar-line.hh"
 #include "staff-symbol-referencer.hh"
@@ -144,6 +145,10 @@ Clef_engraver::inspect_clef_properties ()
       || scm_equal_p (octavation, prev_octavation_) == SCM_BOOL_F
       || to_boolean (force_clef))
     {
+      set_context_property_on_children (context (),
+                                       ly_symbol2scm ("localKeySignature"),
+                                       get_property ("keySignature"));
+      
       set_glyph ();
       if (prev_cpos_ != SCM_BOOL_F || to_boolean (get_property ("firstClef")))
        create_clef ();
@@ -188,8 +193,20 @@ Clef_engraver::stop_translation_timestep ()
 
 ADD_ACKNOWLEDGER (Clef_engraver, bar_line);
 ADD_TRANSLATOR (Clef_engraver,
-               /* doc */ "Determine and set reference point for pitches",
-               /* create */ "Clef OctavateEight",
-               /* accept */ "",
-               /* read */ "clefPosition clefGlyph middleCPosition clefOctavation explicitClefVisibility forceClef",
-               /* write */ "");
+               /* doc */
+               "Determine and set reference point for pitches.",
+
+               /* create */
+               "Clef "
+               "OctavateEight ",
+
+               /* read */
+               "clefGlyph "
+               "clefOctavation "
+               "clefPosition "
+               "explicitClefVisibility "
+               "forceClef ",
+
+               /* write */
+               ""
+               );