Item *trill_group_;
Item *trill_accidental_;
- Link_array<Grob> heads_;
+ vector<Grob*> heads_;
void make_trill (Music *);
};
void
Pitched_trill_engraver::acknowledge_dots (Grob_info info)
{
- heads_.push (info.grob ());
+ heads_.push_back (info.grob ());
}
void
Pitched_trill_engraver::acknowledge_note_head (Grob_info info)
{
- heads_.push (info.grob ());
+ heads_.push_back (info.grob ());
}
void
SCM handle = scm_assoc (key, keysig);
bool print_acc
- = (handle == SCM_BOOL_F)
- || p->get_alteration () == 0;
+ = (handle == SCM_BOOL_F) || p->get_alteration () == 0;
if (trill_head_)
{
+ c0));
trill_group_ = make_item ("TrillPitchGroup", mus->self_scm ());
+ trill_group_->set_parent (trill_head_, Y_AXIS);
Axis_group_interface::add_element (trill_group_, trill_head_);
trill_accidental_->set_property ("accidentals", scm_list_1 (scm_from_int (p->get_alteration ())));
Side_position_interface::add_support (trill_accidental_, trill_head_);
trill_head_->set_object ("accidental-grob", trill_accidental_->self_scm ());
- trill_group_->set_parent (trill_head_, Y_AXIS);
- Axis_group_interface::add_element (trill_group_, trill_accidental_);
trill_accidental_->set_parent (trill_head_, Y_AXIS);
+ Axis_group_interface::add_element (trill_group_, trill_accidental_);
}
}
Pitched_trill_engraver::stop_translation_timestep ()
{
if (trill_group_)
- for (int i = 0; i < heads_.size (); i++)
+ for (vsize i = 0; i < heads_.size (); i++)
Side_position_interface::add_support (trill_group_, heads_[i]);
heads_.clear ();