On Tue, Mar 3, 2015 at 3:44 PM, David Nalesnik <[email protected]>
wrote:

> Harm,
>
> On Tue, Mar 3, 2015 at 3:30 PM, Thomas Morley <[email protected]>
> wrote:
>>
>>
>> thanks for testing. So this function may use as a test-case.
>>
>> No idea whats causing this bug, though. And because I'm not able to
>> reproduce it, I can't help furthermore :(
>>
>
> I don't think I could do anything either.  I wouldn't know how to build
> LilyPond for Windows to verify any fix...
>
>
An observation.  In the following snippet, you'll note in the log output
 that the default-direction of the downstemmed F and B is 0--CENTER.  This
means that Stem::calc-direction (in lily/stem.cc) will take the property
'neutral-direction.  This property is supposed to specify the direction of
a note on the midline--B only in our case.  F should have a
default-direction of 1.

 \version "2.19.16"

staffSize = #(define-music-function (parser location new-size)
               (number?)
                #{
                  \set fontSize = #new-size
                  \override StaffSymbol.staff-space = #(magstep new-size)
                  \override StaffSymbol.thickness = #(magstep new-size)
                #})

Ab = \relative c' { f4 g a b c d e f }

\score {
  \new Staff  \with { \staffSize #2 }
  {
    \override Stem.after-line-breaking =
    #(lambda (grob)
       (format #t "~a default-direction: ~a~%"
         grob
         (ly:grob-property grob 'default-direction)))
    \Ab
  }
  \layout { }
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to