\book {
\score {
- {\repeat unfold 30 {a b c d}}
+ {\repeat unfold 40 {a b c d}}
}
}
\ No newline at end of file
\version "2.10.0"
-\paper {
- ragged-right = ##t
- indent = 0
-}
-
-\relative c''
-{
- \override Score.SpacingSpanner #'strict-note-spacing = ##t
- \set Score.proportionalNotationDuration = #(ly:make-moment 1 12)
- c8[ \grace { c16[ c] } c8 c8 c8]
- c2
-}
+<<
+ \override Score.SpacingSpanner #'strict-grace-spacing = ##t
+ \new Staff {
+ c'4
+ \afterGrace
+ c'4
+ { c'16[ c' c' c'] c'[ c' c' c'] }
+ c'4
+ }
+ \new Staff {
+ c'16[ c'16 c'16 c'16]
+ c'16[ c'16 c'16 c'16]
+ c'4
+ }
+>>
vector<Break_node> state_;
- vsize final_page_num (Break_node const &b);
+ vsize total_page_count (Break_node const &b);
Break_node put_systems_on_pages (vsize start,
vsize end,
vsize configuration,
return ret;
}
-/* "final page" meaning the number of the final right-hand page,
- which always has an odd page number */
+/* The number of pages taken up by a Break_node, including
+ the blank page if there is one */
vsize
-Page_turn_page_breaking::final_page_num (Break_node const &b)
+Page_turn_page_breaking::total_page_count (Break_node const &b)
{
vsize end = b.first_page_number_ + b.page_count_;
- return end - 1 + (end % 2);
+ return end - 1 + (end % 2) - b.first_page_number_;
}
extern bool debug_page_breaking_scoring;
if (isinf (cur.demerits_)
|| (cur.page_count_ + (p_num % 2) > 2
&& (!isinf (this_start_best.demerits_))
- && final_page_num (cur) > final_page_num (this_start_best)))
+ && total_page_count (cur) > total_page_count (this_start_best)))
{
ok_page = false;
break;
if (Note_spacing::has_interface (wish))
{
Real inc = options->increment_;
- if (Grob *gsp = unsmob_grob (left_col->get_object ("grace-spacing")))
+ Grob *gsp = unsmob_grob (left_col->get_object ("grace-spacing"));
+ if (gsp && Paper_column::when_mom (left_col).grace_part_)
{
Spacing_options grace_opts;
grace_opts.init_from_grob (gsp);
(define pure-functions
(list
parenthesize-elements
+ ly:rest::y-offset-callback
ly:staff-symbol-referencer::callback
ly:staff-symbol::height))