* lily/tie.cc (set_default_control_points): robustness fix.
2006-05-16 Han-Wen Nienhuys <hanwen@lilypond.org>
+ * lily/context.cc (internal_send_stream_event): thinko fix.
+
+ * lily/tie.cc (set_default_control_points): robustness fix.
+
* python/musicxml.py (Part.interpret): don't complain about
incomplete measures.
ly_symbol2scm ("unique"), scm_int2num (unique),
ly_symbol2scm ("ops"), ops,
ly_symbol2scm ("type"), cdef->get_context_name (),
- ly_symbol2scm ("id"), scm_makfrom0str (id.c_str ()));
+ ly_symbol2scm ("id"), scm_makfrom0str (id.c_str ()),
+ 0);
return new_context;
}
Context::internal_send_stream_event (SCM type, SCM props[])
{
Stream_event *e = new Stream_event (this, type);
- for (int i = 0; props[i]; i++)
- {
- assert(props[i+1]);
- e->internal_set_property (props[i], props[i+1]);
- }
+ for (int i = 0; props[i]; i += 2)
+ {
+ e->internal_set_property (props[i], props[i+1]);
+ }
event_source_->broadcast (e);
e->unprotect ();
}
Music::send_to_context (Context *c)
{
send_stream_event (c, "MusicEvent",
- ly_symbol2scm("music"), self_scm ());
+ ly_symbol2scm("music"), self_scm (), 0);
}
Music *
Tie_specification spec = problem.get_tie_specification (0);
spec.has_manual_dir_ = true;
spec.manual_dir_ = get_grob_direction (me);
+
+ if (me->is_live ())
+ {
+ Tie_configuration conf
+ = problem.find_optimal_tie_configuration (spec);
- Tie_configuration conf
- = problem.find_optimal_tie_configuration (spec);
-
- set_control_points (me, problem.common_x_refpoint (),
- conf, problem.details_);
+ set_control_points (me, problem.common_x_refpoint (),
+ conf, problem.details_);
+ }
}
-
void
Tie::set_control_points (Grob *me,
Grob *common,