]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/metronome-engraver.cc
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / lily / metronome-engraver.cc
index 35b8f780be8b84330d1c53c972eec840a3b7ec55..21eb711a24636c21f8c480c8238ead3397b5f8fa 100644 (file)
@@ -3,16 +3,17 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1998--2005 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c) 1998--2006 Jan Nieuwenhuizen <janneke@gnu.org>
 */
 
 #include <cctype>
+using namespace std;
+
+#include "engraver.hh"
 
 #include "note-column.hh"
-#include "bar-line.hh"
-#include "time-signature.hh"
-#include "engraver-group-engraver.hh"
 #include "context.hh"
+#include "grob-array.hh"
 
 /**
    put stuff over or next to  bars.  Examples: bar numbers, marginal notes,
@@ -29,9 +30,9 @@ protected:
 
   void create_items (Music *);
 protected:
-  PRECOMPUTED_VIRTUAL void stop_translation_timestep ();
+  void stop_translation_timestep ();
   virtual bool try_music (Music *ev);
-  PRECOMPUTED_VIRTUAL void process_music ();
+  void process_music ();
 };
 
 Metronome_mark_engraver::Metronome_mark_engraver ()
@@ -47,7 +48,8 @@ Metronome_mark_engraver::stop_translation_timestep ()
     {
       Grob *mc = unsmob_grob (get_property ("currentMusicalColumn"));
       text_->set_parent (mc, X_AXIS);
-      text_->set_object ("side-support-elements", get_property ("stavesFound"));
+      text_->set_object ("side-support-elements",
+                        grob_list_to_grob_array (get_property ("stavesFound")));
 
       text_ = 0;
     }
@@ -88,12 +90,12 @@ Metronome_mark_engraver::process_music ()
 #include "translator.icc"
 
 ADD_TRANSLATOR (Metronome_mark_engraver,
-               /* descr */ "Engrave metro nome marking. This delegates the formatting work "
+               /* doc */ "Engrave metro nome marking. This delegates the formatting work "
                "to the function in the metronomeMarkFormatter property. "
                "The mark is put over all staves. "
                "The staves are taken from the @code{stavesFound} property, "
                "which is maintained by @code{@ref{Staff_collecting_engraver}}. ",
-               /* creats*/ "MetronomeMark",
-               /* accepts */ "metronome-change-event",
-               /* reads */ "stavesFound metronomeMarkFormatter",
+               /* creat*/ "MetronomeMark",
+               /* accept */ "metronome-change-event",
+               /* read */ "stavesFound metronomeMarkFormatter",
                /* write */ "");