- Music *mus = info.music_cause ();
- if (mus
- && mus->is_mus_type ("trill-span-event")
- && to_dir (mus->get_property ("span-direction")) == START
- && unsmob_pitch (mus->get_property ("pitch")))
- make_trill (mus);
+ Stream_event *ev = info.event_cause ();
+ if (ev
+ && ev->in_event_class ("trill-span-event")
+ && to_dir (ev->get_property ("span-direction")) == START
+ && unsmob_pitch (ev->get_property ("pitch")))
+ make_trill (ev);