[Top][All Lists]

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

Re: Getting the stem thickness in Scheme

From: Han-Wen Nienhuys
Subject: Re: Getting the stem thickness in Scheme
Date: Wed, 10 Sep 2008 12:00:36 -0300

On Wed, Sep 10, 2008 at 8:43 AM, Reinhold Kainhofer
<address@hidden> wrote:
> Hash: SHA1
> To properly implement the straight flag style in scheme, I need the thickness
> of the stem in real coordinates. Is there any way to get this value in
> scheme, given the stem grob? The Stem C++ class has the method thickness (),
> which gives exactly the desired value, but I don't see a way to get it from
> scheme, other than adding a new scheme callback function stem_thickness
> (ly:stem::stem-thickness), which calls thickness(stem). Is this the right
> approach?

Stem::thickness is a convenience wrapper for the C++ part.  I think
creating a Guile wrapper for Staff_symbol_referencer::line_thickness
is the easy solution.  Another option is creating a
'absolute-thickness which is not relative to the line thickness but to
the global staff-space, and use that throughout Lilypond for all
thickness measures.

Han-Wen Nienhuys - address@hidden -

reply via email to

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