]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/stem-engraver.cc
* lily/include/translator.icc: new file.
[lilypond.git] / lily / stem-engraver.cc
index a469c78cb1a66b70063ab37bd71cc1ea07f97845..e9369c1842bb3dde853616f284ee07e7049f6efd 100644 (file)
@@ -34,7 +34,7 @@ protected:
   void make_stem (Grob_info);
 
   virtual void acknowledge_grob (Grob_info);
-  virtual void stop_translation_timestep ();
+  PRECOMPUTED_VIRTUAL void stop_translation_timestep ();
   virtual bool try_music (Music *);
 };
 
@@ -100,8 +100,8 @@ Stem_engraver::make_stem (Grob_info gi)
             tremolo-type minus the number of flags of the note itself.  */
          tremolo_->set_property ("flag-count", scm_int2num (tremolo_flags));
          tremolo_->set_parent (stem_, X_AXIS);
-         stem_->set_property ("tremolo-flag", tremolo_->self_scm ());
-         tremolo_->set_property ("stem", stem_->self_scm ());
+         stem_->set_object ("tremolo-flag", tremolo_->self_scm ());
+         tremolo_->set_object ("stem", stem_->self_scm ());
        }
     }
 }
@@ -171,6 +171,8 @@ Stem_engraver::try_music (Music *m)
   return false;
 }
 
+#include "translator.icc"
+
 ADD_TRANSLATOR (Stem_engraver,
                /* descr */ "Create stems and single-stem tremolos.  It also works together with "
                "the beam engraver for overriding beaming.",