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 ()),
- 0);
+ ly_symbol2scm ("id"), scm_makfrom0str (id.c_str ()));
return new_context;
}
return val;
}
+/*
+Called by the send_stream_event macro. props is a 0-terminated array of
+properties and corresponding values, interleaved. This method should not
+be called from any other place than the send_stream_event macro.
+*/
void
Context::internal_send_stream_event (SCM type, SCM props[])
{
set_context_property_on_children (trg, sym, ly_deep_copy (val));
}
}
+
+bool
+melisma_busy (Context *tr)
+{
+ SCM melisma_properties = tr->get_property ("melismaBusyProperties");
+ bool busy = false;
+
+ for (; scm_is_pair (melisma_properties);
+ melisma_properties = scm_cdr (melisma_properties))
+ busy = busy || to_boolean (tr->internal_get_property (scm_car (melisma_properties)));
+
+ return busy;
+}