lilypond-devel
[Top][All Lists]
Advanced

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

Re: Getting the stem thickness in Scheme


From: Reinhold Kainhofer
Subject: Re: Getting the stem thickness in Scheme
Date: Thu, 11 Sep 2008 22:29:10 +0200
User-agent: KMail/1.9.10

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Mittwoch, 10. September 2008 schrieb Han-Wen Nienhuys:
> On Wed, Sep 10, 2008 at 8:43 AM, Reinhold Kainhofer
>
> <address@hidden> wrote:
> >
> > 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.  

I implemented this now (and already use it in the flags-in-scheme regression 
test case):
http://codereview.appspot.com/5073

Okay to push?

Cheers,
Reinhold
- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIyX+WTqjEwhXvPN0RAvy2AJsHeJvIIylmGgx+cAlRX6tQ+D381gCdGA02
t8i/l7vg+6w0BsfJbS0zYsw=
=tgh/
-----END PGP SIGNATURE-----




reply via email to

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