lilypond-auto
[Top][All Lists]
Advanced

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

[Lilypond-auto] Issue 4310 in lilypond: Stem direction calculation is un


From: lilypond
Subject: [Lilypond-auto] Issue 4310 in lilypond: Stem direction calculation is unreliable
Date: Wed, 04 Mar 2015 06:08:59 +0000

Status: Accepted
Owner: ----
Labels: Type-Critical regression

New issue 4310 by address@hidden: Stem direction calculation is unreliable
https://code.google.com/p/lilypond/issues/detail?id=4310

\version "2.19.16"
\new Staff {
  \set Staff.fontSize = #2
  \override Staff.StaffSymbol.staff-space = #(magstep 2)
  \override Staff.StaffSymbol.thickness = #(magstep 2)
  \override Stem.after-line-breaking =
  #(lambda (grob)
  (format #t "~a default-direction: ~a~%"
  grob
  (ly:grob-property grob 'default-direction)))
  \relative f { f4 g a b c d e f g a b c d e f g } }

sets bad stem directions, and prints occasional erroneous 0s for default-direction. Reported at
<https://lists.gnu.org/archive/html/lilypond-user/2015-03/msg00081.html>

Looks like improper use of floating point pair (Interval) in stem.cc
 661   Interval hp = head_positions (me);
 662   if (!hp.is_empty ())
should be simply  if (head_count(me))

The change of gcc version with 2.19.16 will probably reveal more cases of sloppy code.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings



reply via email to

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