- Music * o = props_[i];
- SCM pred = o->get_property ("predicate");
-
- if (ly_is_procedure (pred))
- {
- /*
- should typecheck pred.
- */
- SCM result = scm_call_1 (pred, inf.grob ()->self_scm ());
- if (to_boolean (result))
- {
- SCM sym = o->get_property ("grob-property");
- SCM val = o->get_property ("grob-value");
- inf.grob ()->internal_set_property (sym, val);
- }
- }
- else
- {
- Context * d = inf.context ();
- SCM proc = o->get_property ("procedure");
- scm_call_3 (proc,
- inf.grob ()->self_scm (),
- d->self_scm (),
- context ()->self_scm ());
- }
+ Stream_event *o = props_[i];
+ Context *d = inf.context ();
+ SCM proc = o->get_property ("procedure");
+ scm_call_3 (proc,
+ inf.grob ()->self_scm (),
+ d->self_scm (),
+ context ()->self_scm ());