- Music * o = props_[i];
- SCM pred = o->get_mus_property ("predicate");
-
- /*
- should typecheck pred.
- */
- SCM result=gh_apply (pred,
- scm_list_n (inf.grob_->self_scm (), SCM_UNDEFINED));
- if (to_boolean (result))
- {
- SCM sym = o->get_mus_property ("grob-property");
- SCM val = o->get_mus_property ("grob-value");
- inf.grob_->internal_set_grob_property (sym, val);
- }
+ 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 ());