]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/grace-engraver.cc
Run `make grand-replace'.
[lilypond.git] / lily / grace-engraver.cc
index 57bf0c476d8acf128f86e1644965c502aa1e5e57..7fd5466895aa994da6750bd7ebf6f7561a80cf7d 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2004--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 2004--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #include "engraver.hh"
@@ -14,9 +14,9 @@ class Grace_engraver : public Engraver
 {
   void consider_change_grace_settings ();
 protected:
-  PRECOMPUTED_VIRTUAL void start_translation_timestep ();
+  void start_translation_timestep ();
   virtual void derived_mark () const;
-  virtual void initialize (); 
+  virtual void initialize ();
 
   TRANSLATOR_DECLARATIONS (Grace_engraver);
   Moment last_moment_;
@@ -27,7 +27,7 @@ public:
 Grace_engraver::Grace_engraver ()
 {
   grace_settings_ = SCM_EOL;
-  last_moment_ = Moment (Rational (-1,1));
+  last_moment_ = Moment (Rational (-1, 1));
 }
 
 void
@@ -70,9 +70,7 @@ Grace_engraver::consider_change_grace_settings ()
 
          Context *c = context ();
          while (c && !c->is_alias (context_name))
-           {
-             c = c->get_parent_context ();
-           }
+           c = c->get_parent_context ();
 
          if (c)
            {
@@ -83,13 +81,13 @@ Grace_engraver::consider_change_grace_settings ()
            }
          else
            {
-             programming_error ("can't find context");
+             programming_error ("cannot find context: ");
              scm_display (context_name, scm_current_error_port ());
            }
        }
     }
 
-  last_moment_ = now_mom();
+  last_moment_ = now_mom ();
 }
 
 void
@@ -108,8 +106,15 @@ Grace_engraver::start_translation_timestep ()
 #include "translator.icc"
 
 ADD_TRANSLATOR (Grace_engraver,
-               /* descr */ "Set font size and other properties for grace notes.",
-               /* creats*/ "",
-               /* accepts */ "",
-               /* reads */ "graceSettings",
-               /* write */ "");
+               /* doc */
+               "Set font size and other properties for grace notes.",
+
+               /* create */
+               "",
+
+               /* read */
+               "graceSettings ",
+
+               /* write */
+               ""
+               );