Molecule
G_script::get_molecule(Direction d) const
{
- return lookup_l ()->afm_find ("scripts-" + indices_drul_[d]);
+ SCM s = get_elt_property (molecule_scm_sym);
+ assert (s != SCM_BOOL_F);
+
+ s = SCM_CDR(s);
+ SCM key = SCM_CAR (s);
+ if (key == ly_symbol ("feta"))
+ {
+ return lookup_l ()->afm_find ("scripts-" +
+ ly_scm2string (index_cell (SCM_CDR (s), d)));
+ }
+ else if (key == ly_symbol ("accordion"))
+ {
+ return lookup_l ()->accordion (SCM_CDR(s));
+ }
+
+ else assert (false);
+
+ return Molecule ();
}
G_script::do_pre_processing ()
{
Graphical_element * e
- = staff_side_l_->dim_cache_[X_AXIS].parent_l_->element_l();
+ = staff_side_l_->dim_cache_[X_AXIS]->parent_l_->element_l();
translate_axis (e->extent (X_AXIS).center (), X_AXIS);
}
{
staff_side_l_ = g;
add_dependency (g);
- dim_cache_[Y_AXIS].parent_l_ = & g->dim_cache_[Y_AXIS];
+ dim_cache_[Y_AXIS]->parent_l_ = g->dim_cache_[Y_AXIS];
}
Molecule*
void
G_script::do_print () const
{
- DOUT << "Indices: " << indices_drul_[LEFT] << ", " << indices_drul_[RIGHT];
+
}