Multi_measure_rest_engraver::Multi_measure_rest_engraver ()
{
last_command_item_ = 0;
- bar_seen_ = false;
+
+ /*
+ For the start of a score.
+ */
+ bar_seen_ = true;
start_measure_ = 0;
mmrest_ = 0;
last_rest_ = 0;
= scm_to_int (get_property ("currentBarNumber"));
}
- bar_seen_ = scm_is_string (get_property ("whichBar"));
+ bar_seen_ = bar_seen_ || scm_is_string (get_property ("whichBar"));
}
void
Multi_measure_rest_engraver::stop_translation_timestep ()
{
- /*
- We can not do this earlier, as breakableSeparationItem is not yet there.
- */
-
+ /* We cannot do this earlier, as breakableSeparationItem is not yet
+ there. */
if (bar_seen_)
{
Grob *cmc = unsmob_grob (get_property ("breakableSeparationItem"));
if (!cmc)
cmc = unsmob_grob (get_property ("currentCommandColumn"));
- /*
- Ugh, this is a kludge - need this for multi-measure-rest-grace.ly
- */
+ /* Ugh, this is a kludge - need this for multi-measure-rest-grace.ly */
last_command_item_ = dynamic_cast<Item *> (cmc);
}
}
text_events_.clear ();
+ bar_seen_ = false;
}
void
rest_ev_ = 0;
}
- bar_seen_ = false;
-
Moment mp (robust_scm2moment (get_property ("measurePosition"), Moment (0)));
Moment now = now_mom ();