Rest::do_add_processing ()
{
if (balltype_i_ == 0)
- position_i_ += 2; // guh.
+ set_position (position_f () + 2);
Rhythmic_head::do_add_processing ();
}
{
style = ly_scm2string (style_sym);
}
-
- Molecule s(lookup_l ()->rest (balltype_i_, ledger_b, style));
- Molecule * m = new Molecule ( Molecule (s));
- return m;
+ String idx = ("rests-") + to_str (balltype_i_) + (ledger_b ? "o" : "") + style;
+
+ return new Molecule(lookup_l ()->afm_find (idx));
}