Oh, I'm sorry... I was reading everything in a hurry and didn't got the
second part of your message.

Thank you again!

2012/5/21 David Nalesnik <david.nales...@gmail.com>

> Hi José,
>
> On Mon, May 21, 2012 at 10:20 AM, padovani <zepadovani.li...@gmail.com>wrote:
>
>> Em 5/21/12 11:44 AM, David Nalesnik escreveu:
>>
>>    \override Stem #'extra-offset =
>>>     #(lambda (grob) (if (eqv? (ly:stem::calc-direction grob) UP)
>>> '(-0.02 . -0.25) '(0.02 . 0.25)))
>>>
>>
>> Hello David,
>>
>> thank you very much!
>>
>> Now I see that ly:stem::calc-direction only gives me the standard Stem
>> direction, but if I am using some \stemDown or \stemUp before the note, the
>> lambda function will ignore the actual direction of the Stem and adjust
>> stem offsets accordingly to the standard direction.
>>
>> Do you (or anybody else) know a way to access the actual direction of the
>> Stem?
>>
>
> Yes, in this instance the second option I gave (using ly:grob-property to
> look up 'direction) will give you the proper direction after a \stemUp or
> \stemDown.
>
> -David
>
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to