lilypond-devel
[Top][All Lists]
Advanced

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

Re: Problem calling scheme code from C++


From: Han-Wen Nienhuys
Subject: Re: Problem calling scheme code from C++
Date: Thu, 21 Aug 2008 12:12:39 -0300

On Thu, Aug 21, 2008 at 11:51 AM, Reinhold Kainhofer
<address@hidden> wrote:
> A current sample file highlighting the power of flags created with scheme
> functions can be found at:
> http://www.fam.tuwien.ac.at/~reinhold/temp/flags.pdf
> http://www.fam.tuwien.ac.at/~reinhold/temp/flags.ly
>
> The straight flags still use the glyphs that we designed a while ago, but the
> test-flag style (the last one in the pdf) uses a custom scheme function to
> create the stencils for the flags.
>
> Cheers,
> Reinhold
>
> PS: I saw that Stem::flag() is called twice for each flag (one is in
> Stem::width for determining the width). Thus each flag stencil is created
> twice. Wouldn't it be better to store the flag in the first call (e.g. in a
> propety of the stem) and only create it if that was not done already?

It's a possibility, but I am not sure if it is worth the effort.  In
any event, this is orthogonal to your patch, right?

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




reply via email to

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