]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/global-translator.cc
release: 1.2.7
[lilypond.git] / lily / global-translator.cc
index d6785e6d052fc27a28dd3ea7b388145a9b968e75..8afb5771604035d7b0c324419e19567c87eb9b01 100644 (file)
@@ -1,12 +1,14 @@
 /*
-  global-translator.cc -- implement 
+  global-translator.cc -- implement Global_translator
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c)  1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 #include "global-translator.hh"
+#include "music-iterator.hh"
+#include "debug.hh"
 
 Global_translator::Global_translator()
 {
@@ -47,7 +49,7 @@ Global_translator::prepare (Moment m)
 }
 
 Moment
-Global_translator::now_moment () const
+Global_translator::now_mom () const
 {
   return now_mom_;
 }
@@ -59,3 +61,42 @@ Global_translator::get_output_p()
 {
   return 0;
 }
+
+void
+Global_translator::process ()
+{
+}
+void
+Global_translator::start ()
+{
+}
+void
+Global_translator::finish ()
+{
+}
+
+void
+Global_translator::run_iterator_on_me (Music_iterator * iter)
+{
+  while (iter->ok() || moments_left_i ())
+    {
+      Moment w;
+      w.set_infinite (1);
+      if (iter->ok())
+       {
+         w = iter->next_moment();
+         DOUT << "proccing: " << w << '\n';
+         if (!lily_monitor->silent_b ("walking"))
+           iter->print();
+       }
+      
+      modify_next (w);
+      prepare (w);
+      
+      if (!lily_monitor->silent_b ("walking"))
+       print();
+
+      iter->process_and_next (w);
+      process();
+    }
+}