tie_column_ = 0;
}
- if (!wait)
- heads_to_tie_.clear ();
+ vector<Head_event_tuple> new_heads_to_tie;
for (vsize i = 0; i < now_heads_.size (); i++)
{
Stream_event *left_ev
= unsmob_stream_event (head->get_property ("cause"));
+ if (!left_ev)
+ {
+ // may happen for ambituses
+ continue;
+ }
+
+
SCM left_articulations = left_ev->get_property ("articulations");
Music *tie_event = 0;
}
event_tup.end_moment_ = end;
- heads_to_tie_.push_back (event_tup);
+ new_heads_to_tie.push_back (event_tup);
}
}
+ if (!wait && new_heads_to_tie.size ())
+ heads_to_tie_.clear ();
+
+ // hmmm, how to do with copy() ?
+ for (vsize i = 0; i < new_heads_to_tie.size (); i++)
+ heads_to_tie_.push_back (new_heads_to_tie[i]);
+
event_ = 0;
now_heads_.clear ();
}