[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add showFirstLength property
From: |
Valentin Villenave |
Subject: |
Re: [PATCH] Add showFirstLength property |
Date: |
Fri, 10 Oct 2008 22:01:55 +0200 |
2008/10/10 Han-Wen Nienhuys <address@hidden>:
> void
> Global_context::run_iterator_on_me (Music_iterator *iter)
> {
> prev_mom_.set_infinite (-1);
> now_mom_.set_infinite (-1);
> Moment final_mom = iter->get_music ()->get_length ();
>
> I would do this Q&D by overwriting the 'length property of the top
> music expression, which will be still a lot faster.
Hi Han-Wen,
I assume you're referring to the function in global-context.cc, but I
can hardly say I understand anything to it :-) Do you want this to
replace the use of ly:get-length as a Scheme function?
I was afraid such features might be slower in Scheme than in C++; that
being said, I am not able (yet) to implement anything in C++ on my
own. (in ten years from now, maybe...)
Neil: Debussy suddenly looks a lot easier :-)
Cheers,
Valentin