return ret.smobbed_copy ();
}
-MAKE_SCHEME_CALLBACK (Axis_group_interface, calc_pure_next_staff_spacing, 3)
+MAKE_SCHEME_CALLBACK (Axis_group_interface, calc_pure_staff_staff_spacing, 3)
SCM
-Axis_group_interface::calc_pure_next_staff_spacing (SCM smob, SCM start, SCM end)
+Axis_group_interface::calc_pure_staff_staff_spacing (SCM smob, SCM start, SCM end)
{
- return calc_maybe_pure_next_staff_spacing (unsmob_grob (smob),
+ return calc_maybe_pure_staff_staff_spacing (unsmob_grob (smob),
true,
scm_to_int (start),
scm_to_int (end));
}
-MAKE_SCHEME_CALLBACK (Axis_group_interface, calc_next_staff_spacing, 1)
+MAKE_SCHEME_CALLBACK (Axis_group_interface, calc_staff_staff_spacing, 1)
SCM
-Axis_group_interface::calc_next_staff_spacing (SCM smob)
+Axis_group_interface::calc_staff_staff_spacing (SCM smob)
{
- return calc_maybe_pure_next_staff_spacing (unsmob_grob (smob),
+ return calc_maybe_pure_staff_staff_spacing (unsmob_grob (smob),
false,
0,
INT_MAX);
}
SCM
-Axis_group_interface::calc_maybe_pure_next_staff_spacing (Grob *me, bool pure, int start, int end)
+Axis_group_interface::calc_maybe_pure_staff_staff_spacing (Grob *me, bool pure, int start, int end)
{
Grob *grouper = unsmob_grob (me->get_object ("staff-grouper"));
{
Grob *last_in_group = Staff_grouper_interface::get_maybe_pure_last_grob (grouper, pure, start, end);
if (me == last_in_group)
- return grouper->get_maybe_pure_property ("after-last-staff-spacing", pure, start, end);
+ return grouper->get_maybe_pure_property ("staffgroup-staff-spacing", pure, start, end);
else
- return grouper->get_maybe_pure_property ("between-staff-spacing", pure, start, end);
+ return grouper->get_maybe_pure_property ("staff-staff-spacing", pure, start, end);
}
- return me->get_maybe_pure_property ("default-next-staff-spacing", pure, start, end);
+ return me->get_maybe_pure_property ("default-staff-staff-spacing", pure, start, end);
}
Real
"Y-common "
"adjacent-pure-heights "
"axes "
- "default-next-staff-spacing "
+ "default-staff-staff-spacing "
"elements "
- "inter-loose-line-spacing "
- "inter-staff-spacing "
+ "nonstaff-nonstaff-spacing "
+ "nonstaff-relatedstaff-spacing "
"max-stretch "
- "non-affinity-spacing "
- "next-staff-spacing "
+ "nonstaff-unrelatedstaff-spacing "
+ "staff-staff-spacing "
"no-alignment "
"pure-Y-common "
"pure-relevant-grobs "
DECLARE_SCHEME_CALLBACK (combine_skylines, (SCM smob));
DECLARE_SCHEME_CALLBACK (print, (SCM smob));
DECLARE_SCHEME_CALLBACK (adjacent_pure_heights, (SCM));
- DECLARE_SCHEME_CALLBACK (calc_next_staff_spacing, (SCM));
- DECLARE_SCHEME_CALLBACK (calc_pure_next_staff_spacing, (SCM, SCM, SCM));
+ DECLARE_SCHEME_CALLBACK (calc_staff_staff_spacing, (SCM));
+ DECLARE_SCHEME_CALLBACK (calc_pure_staff_staff_spacing, (SCM, SCM, SCM));
DECLARE_SCHEME_CALLBACK (calc_pure_relevant_grobs, (SCM));
DECLARE_SCHEME_CALLBACK (calc_pure_relevant_items, (SCM));
DECLARE_SCHEME_CALLBACK (calc_pure_relevant_spanners, (SCM));
static Interval staff_extent (Grob *me, Grob *ref, Axis, Grob *staff, Axis);
static SCM calc_common (Grob *, Axis);
static Real minimum_distance (Grob*, Grob*, Axis);
- static SCM calc_maybe_pure_next_staff_spacing (Grob*, bool, int, int);
+ static SCM calc_maybe_pure_staff_staff_spacing (Grob*, bool, int, int);
DECLARE_GROB_INTERFACE();
};
}
Spring spring (0.5, 0.0);
- SCM spec = elts[last_spaceable_staff]->get_property ("next-staff-spacing");
+ SCM spec = elts[last_spaceable_staff]->get_property ("staff-staff-spacing");
alter_spring_from_spacing_spec (spec, &spring);
springs_.push_back (spring);
if (is_spaceable (before))
{
if (is_spaceable (after))
- return before->get_maybe_pure_property ("next-staff-spacing", pure, start, end);
+ return before->get_maybe_pure_property ("staff-staff-spacing", pure, start, end);
else
{
Direction affinity = to_dir (after->get_maybe_pure_property ("staff-affinity", pure, start, end));
return (affinity == DOWN)
- ? add_stretchability (after->get_maybe_pure_property ("non-affinity-spacing", pure, start, end),
+ ? add_stretchability (after->get_maybe_pure_property ("nonstaff-unrelatedstaff-spacing", pure, start, end),
LARGE_STRETCH)
- : after->get_maybe_pure_property ("inter-staff-spacing", pure, start, end);
+ : after->get_maybe_pure_property ("nonstaff-relatedstaff-spacing", pure, start, end);
}
}
else
{
Direction affinity = to_dir (before->get_maybe_pure_property ("staff-affinity", pure, start, end));
return (affinity == UP)
- ? add_stretchability (before->get_maybe_pure_property ("non-affinity-spacing", pure, start, end),
+ ? add_stretchability (before->get_maybe_pure_property ("nonstaff-unrelatedstaff-spacing", pure, start, end),
LARGE_STRETCH)
- : before->get_maybe_pure_property ("inter-staff-spacing", pure, start, end);
+ : before->get_maybe_pure_property ("nonstaff-relatedstaff-spacing", pure, start, end);
}
else
{
after_affinity = before_affinity;
}
if (before_affinity != UP)
- return before->get_maybe_pure_property ("inter-loose-line-spacing", pure, start, end);
+ return before->get_maybe_pure_property ("nonstaff-nonstaff-spacing", pure, start, end);
else if (after_affinity != DOWN)
- return before->get_maybe_pure_property ("inter-loose-line-spacing", pure, start, end);
- return add_stretchability (before->get_maybe_pure_property ("non-affinity-spacing", pure, start, end),
+ return before->get_maybe_pure_property ("nonstaff-nonstaff-spacing", pure, start, end);
+ return add_stretchability (before->get_maybe_pure_property ("nonstaff-unrelatedstaff-spacing", pure, start, end),
LARGE_STRETCH);
}
}
"A grob that collects staves together.",
/* properties */
- "between-staff-spacing "
- "after-last-staff-spacing "
+ "staff-staff-spacing "
+ "staffgroup-staff-spacing "
);
;;
(add-stem-support ,boolean? "If set, the @code{Stem} object is
included in this script's support.")
- (after-last-staff-spacing ,list? "An alist of spacing variables
+ (staffgroup-staff-spacing ,list? "An alist of spacing variables
that controls the spacing after the last staff in this staff group.
-See @var{next-staff-spacing} for a description of the elements of
+See @var{staff-staff-spacing} for a description of the elements of
this alist.")
(after-line-breaking ,boolean? "Dummy property, used to trigger
callback for @code{after-line-breaking}.")
(before-line-breaking ,boolean? "Dummy property, used to trigger
a callback function.")
(between-cols ,pair? "Where to attach a loose column to.")
- (between-staff-spacing ,list? "An alist of spacing variables
+ (staff-staff-spacing ,list? "An alist of spacing variables
that controls the spacing between staves within this staff group.
-See @var{next-staff-spacing} for a description of the elements of
+See @var{staff-staff-spacing} for a description of the elements of
this alist.")
(bound-details ,list? "An alist of properties for determining
attachments of spanners to edges.")
whitespace. If negative, no line is drawn at all.")
(default-direction ,ly:dir? "Direction determined by note head
positions.")
- (default-next-staff-spacing ,list? "An alist of spacing variables
+ (default-staff-staff-spacing ,list? "An alist of spacing variables
that controls the spacing between this staff and the next.
-See @var{next-staff-spacing} for a description of the elements of
+See @var{staff-staff-spacing} for a description of the elements of
this alist.")
(details ,list? "Alist of parameters for detailed grob behavior.
More information on the allowed parameters for a grob can be found by
configuration to this index, and print the respective scores.")
(inspect-quants ,number-pair? "If debugging is set, set beam and
slur quants to this position, and print the respective scores.")
- (inter-loose-line-spacing ,list? "Specifies how to vertically
+ (nonstaff-nonstaff-spacing ,list? "Specifies how to vertically
position a non-spaced line relative to the other non-spaced lines
-around it. See @var{next-staff-spacing} for the format of this list.")
- (inter-staff-spacing ,list? "Specifies how to vertically
+around it. See @var{staff-staff-spacing} for the format of this list.")
+ (nonstaff-relatedstaff-spacing ,list? "Specifies how to vertically
position a non-spaced line relative to the staff for which it
-has affinity. See @var{next-staff-spacing} for the format of this list.")
+has affinity. See @var{staff-staff-spacing} for the format of this list.")
;;
to flip the direction of custos stem.")
(next ,ly:grob? "Object that is next relation (e.g., the lyric
syllable following an extender).")
- (next-staff-spacing ,list? "An alist of properties used to position
+ (staff-staff-spacing ,list? "An alist of properties used to position
the next staff in the system. The symbols that can be defined in the alist
are
@itemize @bullet
object.")
(no-stem-extend ,boolean? "If set, notes with ledger lines do not
get stems extending to the middle staff line.")
- (non-affinity-spacing ,list? "An alist of spacing variables
+ (nonstaff-unrelatedstaff-spacing ,list? "An alist of spacing variables
that controls the spacing from a loose line (see @var{staff-affinity})
to the staff for which the loose line does not have affinity.
-See @var{next-staff-spacing} for a description of the elements of
+See @var{staff-staff-spacing} for a description of the elements of
this alist.")
(non-default ,boolean? "Set for manually specified clefs.")
(non-musical ,boolean? "True if the grob belongs to a
(StaffGrouper
. (
- (between-staff-spacing . ((space . 9)
+ (staff-staff-spacing . ((space . 9)
(minimum-distance . 7)
(padding . 1)))
- (after-last-staff-spacing . ((space . 10.5)
+ (staffgroup-staff-spacing . ((space . 10.5)
(minimum-distance . 8)
(padding . 1)))
(meta . ((class . Spanner)
. (
(adjacent-pure-heights . ,ly:axis-group-interface::adjacent-pure-heights)
(axes . (,Y))
- (default-next-staff-spacing . ((space . 9)
+ (default-staff-staff-spacing . ((space . 9)
(minimum-distance . 8)
(padding . 1)))
- (next-staff-spacing . ,ly:axis-group-interface::calc-next-staff-spacing)
- (non-affinity-spacing . ((padding . 0.5)))
+ (staff-staff-spacing . ,ly:axis-group-interface::calc-staff-staff-spacing)
+ (nonstaff-unrelatedstaff-spacing . ((padding . 0.5)))
(stencil . ,ly:axis-group-interface::print)
(vertical-skylines . ,ly:hara-kiri-group-spanner::calc-skylines)
(X-extent . ,ly:axis-group-interface::width)
(define pure-conversions-alist
`(
(,ly:accidental-interface::height . ,ly:accidental-interface::pure-height)
- (,ly:axis-group-interface::calc-next-staff-spacing . ,ly:axis-group-interface::calc-pure-next-staff-spacing)
+ (,ly:axis-group-interface::calc-staff-staff-spacing . ,ly:axis-group-interface::calc-pure-staff-staff-spacing)
(,ly:axis-group-interface::height . ,ly:axis-group-interface::pure-height)
(,ly:grob::stencil-height . ,pure-stencil-height)
(,ly:hara-kiri-group-spanner::y-extent . ,ly:hara-kiri-group-spanner::pure-height)