-\version "2.13.1"
+\version "2.13.42"
#(set-default-paper-size "a6")
\header {
- texidoc = "The min-systems-per-page variable takes precedence over
-the desire not to overfill a page."
+ texidoc = "
+The min-systems-per-page variable takes precedence over
+the desire not to overfill a page. In this case, systems will
+overlap because they are forced to be on the page.
+"
}
\book {
}
\repeat unfold 21 { c'1 }
-}
\ No newline at end of file
+}
if (!spacer.fits ())
{
- Real overflow = spacer.configuration_length (spacer.force ()) - page_height_;
- vsize space_count = solution_.size ();
- for (vsize i = 0; i < space_count; i++)
- solution_[i] -= (i + 1) * overflow / space_count;
+ Real overflow = spacer.configuration_length (spacer.force ())
+ - page_height_;
warning (_f ("couldn't fit music on page: overflow is %f",
overflow));
warning (_ ("compressing music to fit"));
+ vsize space_count = solution_.size ();
+ Real spacing_increment = overflow / (space_count - 2);
+ for (vsize i = 2; i < space_count; i++)
+ solution_[i] -= (i-1) * spacing_increment;
}
}