+ if (scm_is_string (get_property ("whichBar")))
+ melody_item_ = 0;
+}
+
+void
+Melody_engraver::stop_translation_timestep ()
+{
+ if (stem_
+ && !is_direction (stem_->get_property_data ("neutral-direction")))
+ {
+ extract_grob_set (stem_, "rests", rests);
+ if (rests.size ())
+ melody_item_ = 0;
+ else
+ {
+ if (!melody_item_)
+ melody_item_ = make_item ("MelodyItem", stem_->self_scm ());