lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Re: not-so-ancient flags


From: Han-Wen Nienhuys
Subject: Re: [PATCH] Re: not-so-ancient flags
Date: Sat, 13 Dec 2008 13:04:25 -0200

On Sat, Dec 13, 2008 at 11:48 AM, Reinhold Kainhofer
<address@hidden> 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 - address@hidden - http://www.xs4all.nl/~hanwen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]