CVSROOT:        /cvsroot/lilypond
Module name:    lilypond
Branch:         
Changes by:     Han-Wen Nienhuys <[EMAIL PROTECTED]>    05/04/18 15:28:33

Modified files:
        .              : ChangeLog 
        lily           : stem.cc 

Log message:
        (calc_stem_info): add minimum Y extent of
        stem-tremolo.  Fixes: bugs/tremolo-stem-length-beamed

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/lilypond/lilypond/ChangeLog.diff?tr1=1.3464&tr2=1.3465&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/lilypond/lilypond/lily/stem.cc.diff?tr1=1.269&tr2=1.270&r1=text&r2=text

Patches:
Index: lilypond/ChangeLog
diff -u lilypond/ChangeLog:1.3464 lilypond/ChangeLog:1.3465
--- lilypond/ChangeLog:1.3464   Mon Apr 18 15:18:16 2005
+++ lilypond/ChangeLog  Mon Apr 18 15:28:33 2005
@@ -1,5 +1,8 @@
 2005-04-18  Han-Wen Nienhuys  <[EMAIL PROTECTED]>
 
+       * lily/stem.cc (calc_stem_info): add minimum Y extent of
+       stem-tremolo.  Fixes: bugs/tremolo-stem-length-beamed
+
        * lily/percent-repeat-engraver.cc (try_music): add measure before
        next_moment to future processing moment. Fixes:
        percent-repeat-mm-rest.ly
Index: lilypond/lily/stem.cc
diff -u lilypond/lily/stem.cc:1.269 lilypond/lily/stem.cc:1.270
--- lilypond/lily/stem.cc:1.269 Tue Apr 12 22:49:27 2005
+++ lilypond/lily/stem.cc       Mon Apr 18 15:28:33 2005
@@ -878,6 +878,13 @@
     /* stem only extends to center of beam */
     - 0.5 * beam_thickness;
 
+  if (Grob *tremolo = unsmob_grob (me->get_property ("tremolo-flag")))
+    {
+      Interval y_ext = tremolo->extent (tremolo, Y_AXIS);
+      y_ext.widen (0.5);       // FIXME. Should be tunable? 
+      minimum_length = minimum_length >? y_ext.length ();
+    }
+  
   ideal_y *= my_dir;
   Real minimum_y = note_start + minimum_length;
   Real shortest_y = minimum_y * my_dir;


_______________________________________________
Lilypond-cvs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-cvs

Reply via email to