2011/1/23 Carl Sorensen <c_soren...@byu.edu>:
>
> 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

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to