My bad, sorry. Patch attached.

2006-04-25  Joe Neeman <[EMAIL PROTECTED]>

        * lily/stem-tremolo.cc (print): fix whole note tremolo placement
        * input/regression/stem-tremolo.ly: add 2 more whole note examples

On Tue, 25 Apr 2006 08:34, Panteck wrote:
> Windows XP, Lilypond 2.8.1-4
>
> Whole note tremolos look really bad, but quarter note tremolos on the same
> pitch look fine:
>
> \version "2.8.1"
>
> \score
> {
>  \new Staff
>  {
>   \clef bass
>   \time 4/4
>   \key c \major
>
>   a,1:32 b,: c: d: e: f: g: a: b: c':
>   \break
>   a,4:32 b,: c: d: e: f: g: a: b: c': r2
>  }
> }
>
> --Steven
Index: lily/stem-tremolo.cc
===================================================================
RCS file: /sources/lilypond/lilypond/lily/stem-tremolo.cc,v
retrieving revision 1.102
diff -u -r1.102 stem-tremolo.cc
--- lily/stem-tremolo.cc	18 Apr 2006 09:15:45 -0000	1.102
+++ lily/stem-tremolo.cc	25 Apr 2006 08:25:03 -0000
@@ -202,8 +202,8 @@
       /* we shouldn't position relative to the end of the stem since the stem
          is invisible */
       vector<int> 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);
 
Index: input/regression/stem-tremolo.ly
===================================================================
RCS file: /sources/lilypond/lilypond/input/regression/stem-tremolo.ly,v
retrieving revision 1.36
diff -u -r1.36 stem-tremolo.ly
--- input/regression/stem-tremolo.ly	30 Mar 2006 10:33:12 -0000	1.36
+++ input/regression/stem-tremolo.ly	25 Apr 2006 08:25:03 -0000
@@ -21,7 +21,8 @@
   \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 
_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to