2003-06-16 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ * lily/slur.cc: remove slur over rest warnings.
+
* lily/note-spacing.cc (get_spacing): include left part of right
object in fixed space. This fixes stretched space before
accidentals.
}
-\score {\notes {
+\score {\notes {
< \context Staff = SA {
- c2
+ c'2
\clef bass e16 f a
\clef treble b
}
\context Staff = SB {
- c4 c4 c4
+ c'4 c'4 c'4
}>
}
\paper { raggedright = ##t
\score { \notes \relative c'' \context Staff {
\property Voice.autoBeaming = ##f
- a8-[ a8 a8 a8] a8 a8 a8 a8
+ a8-[ a8 a8 a8]
+ a8 a8 a8 a8
}
\paper {
%stafflinethickness = 0.0
FIXED also includes the left part of the right object.
*/
*fixed =
- (left_head_wid.empty_b () ? increment : left_head_wid[RIGHT])
+ (left_head_wid.empty_b () ? increment :
+ /*
+ Size of the head:
+ */
+ (left_head_wid[RIGHT]+
+
+ /*
+ What's sticking out of the head, eg. a flag:
+ */
+ (extents[LEFT][RIGHT] - left_head_wid[RIGHT])/2))
+
+ /*
+ What is sticking out of the right note:
+ */
+ (extents[RIGHT].empty_b() ? 0.0 : - extents[RIGHT][LEFT] / 2);
/*
void
Slur::add_column (Grob*me, Grob*n)
{
- if (!gh_pair_p (n->get_grob_property ("note-heads")))
- me->warning (_ ("Putting slur over rest."));
-
Pointer_group_interface::add_grob (me, ly_symbol2scm ("note-columns"), n);
me->add_dependency (n);
if (!stem)
{
- me->warning (_ ("Slur over rest?"));
+ programming_error ("No stem for note column?");
o[X_AXIS] = col->relative_coordinate (common[X_AXIS], X_AXIS);
o[Y_AXIS] = col->relative_coordinate (common[Y_AXIS], Y_AXIS);
return o;