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,
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 ()
{
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;
}
#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",
- /* acks */ "",
- /* reads */ "stavesFound metronomeMarkFormatter",
+ /* create */ "MetronomeMark",
+ /* accept */ "metronome-change-event",
+ /* read */ "stavesFound metronomeMarkFormatter",
/* write */ "");