/*
delay typeset until we're at the next moment, so we can silence custodes at the end of the piece.
*/
- for (int i = custodes_.size (); i--;)
- {
- typeset_grob (custodes_[i]);
- }
pitches_.clear ();
custos_permitted = false;
void
Custos_engraver::process_acknowledged_grobs ()
{
- if (gh_string_p (get_property ("whichBar")))
+ if (ly_c_string_p (get_property ("whichBar")))
custos_permitted = true;
if (custos_permitted)
int p = pitches_[i].steps ();
SCM c0 = get_property ("middleCPosition");
- if (gh_number_p (c0))
- p += gh_scm2int (c0);
+ if (ly_c_number_p (c0))
+ p += ly_scm2int (c0);
c->set_property ("staff-position",
- gh_int2scm (p));
+ scm_int2num (p));
}
Item*
Custos_engraver::create_custos ()
{
- Item* custos = make_item ("Custos");
+ Item* custos = make_item ("Custos", SCM_EOL);
+
- announce_grob (custos, SCM_EOL);
custodes_.push (custos);
return custos;
for (int i = custodes_.size (); i--;)
{
custodes_[i]->suicide ();
- typeset_grob (custodes_[i]);
}
custodes_.clear ();
}