--- /dev/null
+\version "2.10.0"
+
+\header{
+texidoc="
+The @code{Completion_heads_engraver} correctly handles notes that need to be split into more than 2 parts.
+"
+}
+
+\layout { ragged-right= ##t }
+
+
+\new Voice \with {
+ \remove "Note_heads_engraver"
+ \consists "Completion_heads_engraver"
+} \relative c'{
+ \time 2/4
+ c4.. c4. c4. c2 c1
+}
{
note_dur = Duration (nb.main_part_, false);
- Moment next = now;
- next.main_part_ += note_dur.get_length ();
-
- get_global_context ()->add_moment_to_process (next);
- do_nothing_until_ = next.main_part_;
+ do_nothing_until_ = now.main_part_ + note_dur.get_length ();
}
if (orig)
left_to_do_ -= note_dur.get_length ();
+ if (left_to_do_)
+ get_global_context ()->add_moment_to_process (now.main_part_ + left_to_do_);
/*
don't do complicated arithmetic with grace notes.
*/