From 47cb9b67860f2977533c7a6ab18d957c0cabce71 Mon Sep 17 00:00:00 2001 From: Joe Neeman Date: Wed, 24 May 2006 23:22:24 +0000 Subject: [PATCH] lily/stem-tremolo.cc (print): fix whole note tremolo placement input/regression/stem-tremolo.ly: add 2 more whole note examples --- ChangeLog | 5 +++++ input/regression/stem-tremolo.ly | 3 ++- lily/stem-tremolo.cc | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index d05689f3d5..aa457b332c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-05-25 Joe Neeman + + * lily/stem-tremolo.cc (print): fix whole note tremolo placement + * input/regression/stem-tremolo.ly: add 2 more whole note examples + 2006-05-24 Han-Wen Nienhuys * configure.in (LINK_GXX_STATICALLY): use "" to allow $ diff --git a/input/regression/stem-tremolo.ly b/input/regression/stem-tremolo.ly index 6cc2729daf..ab8283adff 100644 --- a/input/regression/stem-tremolo.ly +++ b/input/regression/stem-tremolo.ly @@ -21,7 +21,8 @@ a fixed distance from the note head. \textSpannerUp \override TextScript #'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: + a':32 a,,:32 + a'4:4 c:8 a:16 c:32 a a: a2: \break \stemUp a4:32 a'4:64 diff --git a/lily/stem-tremolo.cc b/lily/stem-tremolo.cc index b3ea13d30d..8cd012024a 100644 --- a/lily/stem-tremolo.cc +++ b/lily/stem-tremolo.cc @@ -216,8 +216,8 @@ Stem_tremolo::print (SCM grob) /* we shouldn't position relative to the end of the stem since the stem is invisible */ vector nhp = Stem::note_head_positions (stem); - Real note_head = (stemdir == UP ? nhp.back () : nhp[0]); - end_y = note_head + stemdir * 2.0; + Real note_head = (stemdir == UP ? nhp.back () : nhp[0]) * ss / 2; + end_y = note_head + stemdir * 1.5; } mol.translate_axis (end_y, Y_AXIS); -- 2.39.5