use guile to set specific extra-offset values if stem direction is up or down

2012-05-21 Thread padovani
Hello, I'm dealing with special noteheads I've designed and I need to move the stem and the flag differently if stem direction is up or down. I would like to create a guile lisp clause that sets the extra-offset value accordingly to the Stem position. I was trying this, but it does not

Re: use guile to set specific extra-offset values if stem direction is up or down

2012-05-21 Thread David Nalesnik
Hi José, On Mon, May 21, 2012 at 9:09 AM, padovani zepadovani.li...@gmail.comwrote: Hello, I'm dealing with special noteheads I've designed and I need to move the stem and the flag differently if stem direction is up or down. I would like to create a guile lisp clause that sets the

Re: use guile to set specific extra-offset values if stem direction is up or down

2012-05-21 Thread padovani
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

Re: use guile to set specific extra-offset values if stem direction is up or down

2012-05-21 Thread David Nalesnik
Hi José, On Mon, May 21, 2012 at 10:20 AM, padovani zepadovani.li...@gmail.comwrote: 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

Re: use guile to set specific extra-offset values if stem direction is up or down

2012-05-21 Thread padovani
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.comwrote: Em 5/21/12 11:44 AM, David Nalesnik

Re: use guile to set specific extra-offset values if stem direction is up or down

2012-05-21 Thread David Nalesnik
José, On Mon, May 21, 2012 at 11:02 AM, padovani zepadovani.li...@gmail.comwrote: Oh, I'm sorry... I was reading everything in a hurry and didn't got the second part of your message. No problem! I learned something new about ly:stem::calc-direction because of your email: didn't know that it

Re: use guile to set specific extra-offset values if stem direction is up or down

2012-05-21 Thread padovani
Hi again, so.. as the flags are now separate objects (2.15.38), I'm having problems to move them to the same place that I am moving the stems... if I just reproduce the lambda function I am using with Stems with flags, it does not work... \once \override Stem #'extra-offset =

Re: use guile to set specific extra-offset values if stem direction is up or down

2012-05-21 Thread David Nalesnik
Hi José, On Mon, May 21, 2012 at 12:25 PM, padovani zepadovani.li...@gmail.comwrote: Hi again, so.. as the flags are now separate objects (2.15.38), I'm having problems to move them to the same place that I am moving the stems... if I just reproduce the lambda function I am using with Stems

Re: use guile to set specific extra-offset values if stem direction is up or down

2012-05-21 Thread David Nalesnik
Hi again, It would be possible to offset both of them, but I think you might be better served by approaching the problem from a different angle. You can control the relative positioning of stem and note head through 'stem-attachment, which is a property of NoteHead. The flag will move

Re: use guile to set specific extra-offset values if stem direction is up or down

2012-05-21 Thread padovani
Em 5/21/12 3:03 PM, David Nalesnik escreveu: Sorry to take the Scheme fun out of it... (if this is in fact gives you what you want!) That's it! No need of the Scheme part of the Scheme fun! :) Thank you very much! -- http://zepadovani.info ___