bug-gnu-music
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: point bug in lily 1.5.2 / 1.5.3


From: Mats Bengtsson
Subject: Re: point bug in lily 1.5.2 / 1.5.3
Date: Thu, 02 Aug 2001 15:21:12 +0200

>               Hello,
>       Look at the fouth point in the first bar. He's too low.
>       All the other point in this little score are good.
>               nemo.

This problem with the placement of the staccato dots turned out
to be quite intricate. In the program, the position is rounded
to end up in the middle between the staff lines. However, for 
the staccato dots, the sizes and paddings and other constants
happen to add up such that the desired position (before rounding)
ended up exactly on the staff lines. However, because of the
limited word length, used to represent the numbers, the desired
positions end up like 1.99999998, 3.00000001 which gets rounded
upwards to 2 and 4, respectively. I will include a fix in a 
larger patch later this week, but in the mean time, one ugly
workaround is to apply the following change:

diff -u scm/grob-description.scm.orig scm/grob-description.scm
--- scm/grob-description.scm.orig       Thu Aug  2 15:19:49 2001
+++ scm/grob-description.scm    Thu Aug  2 15:20:15 2001
@@ -466,7 +466,7 @@
        (Script . (
                ;; don't set direction here: it breaks staccato.
                (molecule-callback . ,Script::brew_molecule)
-               (padding . 0.3) 
+               (padding . 0.28) 
                (X-offset-callbacks . 
(,Side_position_interface::centered_on_parent))
                (before-line-breaking-callback . ,Script::before_line_breaking)
                (meta . ,(grob-description "Script" script-interface 
side-position-interface font-interface))


   /Mats





reply via email to

[Prev in Thread] Current Thread [Next in Thread]