source file of the GNU LilyPond music typesetter
- (c) 2000--2006 Juergen Reuter <reuter@ipd.uka.de>,
+ (c) 2000--2009 Juergen Reuter <reuter@ipd.uka.de>,
Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
#include "bar-line.hh"
#include "item.hh"
#include "note-head.hh"
+#include "pitch.hh"
#include "staff-symbol-referencer.hh"
+#include "stream-event.hh"
#include "warn.hh"
-#include "pitch.hh"
#include "translator.icc"
}
void
-Custos_engraver::acknowledge_bar (Grob_info info)
+Custos_engraver::acknowledge_bar (Grob_info /* info */)
{
- (void) info;
custos_permitted_ = true;
}
void
Custos_engraver::acknowledge_note_head (Grob_info info)
{
- Music *m = info.music_cause ();
- if (m && m->is_mus_type ("note-event"))
+ Stream_event *ev = info.event_cause ();
+ if (ev && ev->in_event_class ("note-event"))
{
/*
don't look at the staff-position, since we can't be sure
whether Clef_engraver already applied a vertical shift.
*/
- pitches_.push_back (*unsmob_pitch (m->get_property ("pitch")));
+ pitches_.push_back (*unsmob_pitch (ev->get_property ("pitch")));
}
}
ADD_ACKNOWLEDGER (Custos_engraver, note_head);
ADD_TRANSLATOR (Custos_engraver,
- /* doc */ "",
- /* create */ "Custos",
- /* accept */ "",
- /* read */ "",
- /* write */ "");
+ /* doc */
+ "Engrave custodes.",
+
+ /* create */
+ "Custos ",
+
+ /* read */
+ "",
+
+ /* write */
+ ""
+ );