lilypond-devel
[Top][All Lists]
Advanced

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

Re: flags, beams and stem length in forced directions - output improveme


From: Janek Warchoł
Subject: Re: flags, beams and stem length in forced directions - output improvement
Date: Mon, 24 Jan 2011 00:08:26 +0100

2011/1/23 Carl Sorensen <address@hidden>:
>
> Well, you could call calc_length to get the stem length, since you have the
> stem grob in the form of me, i.e.
>
> Real length = robust_scm2double (me->calc_length (smob));
>
> If you want to, you could try adding a saved value for the length so you
> don't have to make this call twice.
>
> That would involve modifying lily/include/stem.hh so that you had a private
> variable Real length_, and then at the end of Stem::calc_length you would do
> an assignment length_ = length; (just before return scm_from_double
> (length);)
>
> I would probably take the latter approach, since we have lots of stems in
> the music and I think it would be significantly faster, but only make a
> minor difference in storage space.

I've tried this but failed :(
Finally i've got it working the other way with some help from a friend of mine.
I see the end now :) and i'll post results when i finish, perhaps on wednesday.
I need to get rid of that spikes in flags now.

cheers,
Janek



reply via email to

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