(c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
-#include <ctype.h>
+#include <cctype>
#include "rhythmic-head.hh"
#include "output-def.hh"
Link_array<Music> scratch_note_reqs_;
Moment note_end_mom_;
- bool first_b_;
+ bool is_first_;
Rational left_to_do_;
Rational do_nothing_until_;
void
Completion_heads_engraver::initialize ()
{
- first_b_ = false;
+ is_first_ = false;
}
bool
{
note_reqs_.push (m);
- first_b_ = true;
+ is_first_ = true;
Moment musiclen = m->get_length ();
Moment now = now_mom ();
}
else if (m->is_mus_type ("busy-playing-event"))
{
- return note_reqs_.size ();
+ return note_reqs_.size() && is_first_;
}
return false;
void
Completion_heads_engraver::process_music ()
{
- if (!first_b_ && !left_to_do_)
+ if (!is_first_ && !left_to_do_)
return ;
- first_b_ = false;
+ is_first_ = false;
Moment now = now_mom ();
if (do_nothing_until_ > now.main_part_)