|
From: | padovani |
Subject: | use guile to set specific extra-offset values if stem direction is up or down |
Date: | Mon, 21 May 2012 11:09:41 -0300 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 |
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 work...\once \override Stem #'extra-offset = #(if (eqv? ly:stem::calc-direction UP) '(-0.02 . -0.25) '(0.02 . 0.25))
(also tried this...\once \override Stem #'extra-offset = #(if (ly:dir? ly:stem::calc-direction UP) '(-0.02 . -0.25) '(0.02 . 0.25))
) any tips? thanks josé -- http://zepadovani.info
[Prev in Thread] | Current Thread | [Next in Thread] |