source file of the GNU LilyPond music typesetter
- (c) 2000--2001 Jan Nieuwenhuizen <janneke@gnu.org>
+ (c) 2000--2004 Jan Nieuwenhuizen <janneke@gnu.org>
+
+ Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
#include "engraver.hh"
protected:
virtual void acknowledge_grob (Grob_info);
- virtual void create_grobs ();
+ virtual void process_acknowledged_grobs ();
virtual void stop_translation_timestep ();
private:
void
Span_arpeggio_engraver::acknowledge_grob (Grob_info info)
{
- if (info.origin_trans_l_arr (this).size ()
- && Arpeggio::has_interface (info.grob_l_))
+ if (info.origin_transes (this).size ()
+ && Arpeggio::has_interface (info.grob_))
{
- arpeggios_.push (info.grob_l_);
+ arpeggios_.push (info.grob_);
}
}
void
-Span_arpeggio_engraver::create_grobs ()
+Span_arpeggio_engraver::process_acknowledged_grobs ()
{
/*
- connectArpeggios is slightly brusque; we should really read a elt
+ connectArpeggios is slightly brusque; we should really read a grob
property of the caught non-span arpeggios. That way, we can have
both non-connected and connected arps in one pianostaff.
-
*/
if (!span_arpeggio_ && arpeggios_.size () > 1
&& to_boolean (get_property ("connectArpeggios")))
{
- span_arpeggio_ = new Item (get_property ("Arpeggio"));
- announce_grob (span_arpeggio_, 0);
+ span_arpeggio_ = make_item ("Arpeggio");
+ announce_grob(span_arpeggio_, SCM_EOL);
}
}
{
for (SCM s = arpeggios_[i]->get_grob_property ("stems");
gh_pair_p (s); s = ly_cdr (s))
- Group_interface::add_thing (span_arpeggio_, "stems", ly_car (s));
+ Group_interface::add_thing (span_arpeggio_, ly_symbol2scm ("stems"), ly_car (s));
for (SCM s = arpeggios_[i]->get_grob_property ("side-support-elements");
gh_pair_p (s); s = ly_cdr (s))
- Group_interface::add_thing (span_arpeggio_, "side-support-elements", ly_car (s));
+ Group_interface::add_thing (span_arpeggio_, ly_symbol2scm ("side-support-elements"), ly_car (s));
/*
we can't kill the children, since we don't want to the
previous note to bump into the span arpeggio; so we make
it transparent. */
- arpeggios_[i]->set_grob_property ("molecule-callback", SCM_BOOL_T);
+ arpeggios_[i]->set_grob_property ("molecule-callback", SCM_EOL);
}
typeset_grob (span_arpeggio_);
ENTER_DESCRIPTION(Span_arpeggio_engraver,
/* descr */ "",
/* creats*/ "Arpeggio",
-/* acks */ "arpeggio-interface",
+/* accepts */ "",
+/* acks */ "arpeggio-interface",
/* reads */ "connectArpeggios",
/* write */ "");