On Sat, Dec 13, 2008 at 11:48 AM, Reinhold Kainhofer
<reinh...@kainhofer.com> wrote:

>> I've been watching this thread, and successive Lilypond versions, to see
>> what's happening about the straight flags that I offered to sponsor in the
>> first post of the thread.
>
> There is some code already existing (but commented out) in flag-styles.scm.
> Attached is an example of my current version plus the patch to get them.
>
> However, I'm running into some problems:
> - -) How can I obtain the line-thickness. It's not a property of the stem grob
>    and in the flag formatting function I don't have the curent layout object
>    available...

YOu can get to the layout object from any grob.

> - -) How can I obtain the width of a black notehead? In particular, for grace
>    notes the flag needs to be scaled according to the note head, so the
>    staff-space can't be used for this.

There is no good way. beam.cc hardcodes it.

> - -) What's the best way to convert an angle/length pair of polar coordinates
>    (angle given in degree) to cartesian coordinates in scheme / guile? I
>    don't want it as a complex number, but as a pair of reals...

Well, both are equivalent, so I think using complex numbers is
actually the quickest.





-- 
Han-Wen Nienhuys - han...@xs4all.nl - http://www.xs4all.nl/~hanwen


_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to