]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/timing-engraver.cc
(LY_DEFINE): use Scheme style naming for
[lilypond.git] / lily / timing-engraver.cc
index a6153a90bfe925ba26a1a2ae35349b2c4c4036d6..53b326cd511932ac76641ef7ba3e54cba303e3ac 100644 (file)
@@ -3,10 +3,9 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
-#include "translator-group.hh"
-
+#include "context.hh"
 #include "grob-info.hh"
 #include "multi-measure-rest.hh"
 #include "timing-translator.hh"
@@ -60,7 +59,7 @@ Timing_engraver::start_translation_timestep ()
     {
       Moment mlen = Moment (measure_length ());
       unsmob_grob (get_property ("currentCommandColumn"))
-       ->set_grob_property ("measure-length", mlen.smobbed_copy ()); 
+       ->set_property ("measure-length", mlen.smobbed_copy ()); 
     }
   
   if (!gh_string_p (which) && to_boolean (automatic_bars))
@@ -74,14 +73,14 @@ Timing_engraver::start_translation_timestep ()
        }
     }
 
-  daddy_trans_->set_property ("whichBar", which);
+  daddy_context_->set_property ("whichBar", which);
 }
 
 void
 Timing_engraver::stop_translation_timestep ()
 {
   Timing_translator::stop_translation_timestep ();
-  daddy_trans_->set_property ("whichBar", SCM_EOL);
+  daddy_context_->set_property ("whichBar", SCM_EOL);
   last_moment_ = now_mom ();
 }