}
- SCM smp = get_property ("measurePosition");
- Moment mp = (unsmob_moment (smp)) ? *unsmob_moment (smp) : Moment (0);
+
+ Moment mp(robust_scm2moment (get_property ("measurePosition"), Moment (0));
if (last_rest_)
{
bar_seen_ = false;
- SCM smp = get_property ("measurePosition");
- Moment mp = (unsmob_moment (smp)) ? *unsmob_moment (smp) : Moment (0);
+ Moment mp(robust_scm2moment (get_property ("measurePosition"), Moment (0));
Moment now =now_mom ();
if (mmrest_