]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/timing-translator.cc
''
[lilypond.git] / lily / timing-translator.cc
index 79b741034c2c16876ca6354bbbe56766322a0d26..f92b598a41e116ef834ed607bfedc96b8b39f088 100644 (file)
@@ -4,7 +4,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c)  1997--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 #include "debug.hh"
 #include "global-translator.hh"
 #include "multi-measure-rest.hh"
 
-/*
-  TODO: change the rest of lily, so communication with
-  Timing_translator is only done through properties.  This means the
-  class declaration can go here.  */
-bool
-Timing_translator::try_music (Music*r)
-{
-  if (dynamic_cast<Barcheck_req*> (r))
-    {
-      check_ = r;
-      return true;
-    }
-  return false;
-}
-
-void
-Timing_translator::process_music ()
-{
-  if (check_ && measure_position ().main_part_)
-    {
-      check_->origin ()->warning (_f ("barcheck failed at: %s", 
-                                     measure_position ().str ()));
-      Moment zero; 
-      
-      if (!to_boolean (get_property ("barCheckNoSynchronize")))
-       daddy_trans_l_->set_property ("measurePosition", zero.smobbed_copy ());
-    }
-}
 
 void
 Timing_translator::stop_translation_timestep ()
 {
-  check_ = 0;
-  
   Translator *t = this;
   Global_translator *global_l =0;
   do
@@ -79,7 +49,6 @@ Timing_translator::stop_translation_timestep ()
     }
 }
 
-
 void
 Timing_translator::initialize ()
 {
@@ -127,7 +96,6 @@ Timing_translator::measure_position () const
 void
 Timing_translator::start_translation_timestep ()
 {
-  check_ = 0;
   Translator *t = this;
   Global_translator *global_l =0;
   do
@@ -184,3 +152,4 @@ Timing_translator::start_translation_timestep ()
   daddy_trans_l_->set_property ("measurePosition", measposp.smobbed_copy ());
 }
 
+ENTER_DESCRIPTION (Timing_translator, "","","","","" );