I haven't looked at your patch or the implementation, but suddenly remembered about http://lists.gnu.org/archive/html/lilypond-devel/2008-11/msg00405.html
which seems to indicate that a binary search was already done.

   /Mats

Neil Puttock wrote:
Hi,

Please review this patch here:

http://codereview.appspot.com/8874/show

I've revised the \left-brace command extensively so it uses a binary
search to find the closest matching fetaBrace.

You might notice that the braces produced are slightly smaller than
the equivalent SystemStartBrace grobs for the same point size, but
this is due to the fact that the StaffSymbol is widened by half a
thickness in ly:staff-symbol::height. For a standard 20 point stave,
this results in a selection of brace101 instead of the exact 20 pt
brace, brace97.

Regards,
Neil


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

--
=============================================
        Mats Bengtsson
        Signal Processing
        School of Electrical Engineering
        Royal Institute of Technology (KTH)
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: mats.bengts...@ee.kth.se
        WWW: http://www.s3.kth.se/~mabe
=============================================



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

Reply via email to