-2002-05-03 Mats Bengtsson <mats.bengtsson@s3.kth.se>
+2002-05-04 Han-Wen <hanwen@cs.uu.nl>
- * lily/chord-tremolo-engraver.cc (try_music): Handle chord
- tremolos of dotted duration.
+ * lily/stem.cc (off_callback): invisible stem over whole note is
+ centered on note now.
-2002-05-04 Han-Wen <hanwen@cs.uu.nl>
+ * lily/stem-engraver.cc (acknowledge_grob): X_AXIS Parent of
+ stem-tremolo is stem now.
* input/mozart-hrn*.ly: many corrections.
(check_concave): skip Stolba concaveness check if we have a knee
on outer stems.
+2002-05-03 Mats Bengtsson <mats.bengtsson@s3.kth.se>
+
+ * lily/chord-tremolo-engraver.cc (try_music): Handle chord
+ tremolos of dotted duration.
+
2002-05-03 Han-Wen <hanwen@cs.uu.nl>
* mf/feta-klef.mf: more twiddling with G clef. Almost straight
\score{
\context Voice\notes \relative c''{
- \property Voice.Text \set #'direction = #1
+ \property Voice.TextScript \set #'direction = #1
\property Voice.TextScript \set #'padding = #5
a1:4^":4" a:8^":8" c:16^":16" a:32^":32" a^"x" a:^":"
a4:4 c:8 a:16 c:32 a a: a2:
tremolo_flags = 0;
tremolo_p_->set_grob_property ("flag-count",
gh_int2scm (tremolo_flags));
+ tremolo_p_->set_parent (stem_p_, X_AXIS);
}
}
// ugh, rather calc from Stem_tremolo_req
int beams_i = Stem::beam_count (stem, RIGHT)
>? Stem::beam_count (stem, LEFT);
- mol.translate (Offset (stem->relative_coordinate (0, X_AXIS)
- - me->relative_coordinate (0, X_AXIS),
+ mol.translate (Offset (0,
Stem::stem_end_position (stem) * ss / 2 -
Directional_element_interface::get (beam)
* beams_i * interbeam));
Real dy = Stem::stem_end_position (stem) * ss / 2;
dy -= mol.extent (Y_AXIS).length () / 2 * Stem::get_direction (stem);
- /*
- uhg. Should use relative coords and placement
- */
- Real whole_note_correction;
- if (Stem::invisible_b (stem))
- {
- Grob *hed = Stem::support_head (stem);
- whole_note_correction = -Stem::get_direction (stem)
- *hed->extent (hed, X_AXIS).length () / 2;
- }
- else
- whole_note_correction = 0;
-
- mol.translate (Offset (stem->relative_coordinate (0, X_AXIS)
- - me->relative_coordinate (0, X_AXIS) +
- whole_note_correction, dy));
+ mol.translate (Offset (0, dy));
}
return mol.smobbed_copy ();
Real r=0;
- if (invisible_b (me))
+ if (head_count (me) == 0)
{
return gh_double2scm (0.0);
}
{
Interval head_wid = Note_head::head_extent(f, X_AXIS);
- Real attach =
- Note_head::stem_attachment_coordinate(f, X_AXIS);
+
+ Real attach =0.0;
+
+ if (invisible_b (me))
+ {
+ attach = 0.0;
+ }
+ else
+ attach = Note_head::stem_attachment_coordinate(f, X_AXIS);
Direction d = get_direction (me);