lilypond-devel
[Top][All Lists]
Advanced

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

Re: Using \lookup to extract glyphs


From: Mats Bengtsson
Subject: Re: Using \lookup to extract glyphs
Date: Fri, 28 Nov 2008 11:20:07 +0100
User-agent: Thunderbird 2.0.0.5 (X11/20070716)

It would be nice if the argument was the desired height measured in points (or perhaps in staff spaces) instead of the current numerical argument where you need a lot of trial and error. If it was in points, then you could easily relate it to the height of one staff, which is 20pt by default.

Unfortunately, it seems that the mapping from brace number to height is non-linear (possibly piecewise linear). I don't have the time right now to figure out the exact relationship.

  /Mats

Neil Puttock wrote:
2008/11/27 Trevor Daniels <address@hidden>:
Valentin Villenave wrote Thursday, November 27, 2008 8:41 AM

... either two commands with the size as an argument,

\left-brace #20
\right-brace #40
This is my preference.  The functions would need to check
the size for validity, though, as no error message is
produced if an invalid sized brace is used.  LilyPond
just ignores it silently.

I've uploaded a patch here, if anybody's interested in reviewing it:
http://codereview.appspot.com/8874/show

I've followed the example of \musicglyph in that it will complain if
the glyph name isn't recognized.

Cheers,
Neil


_______________________________________________
lilypond-devel mailing list
address@hidden
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: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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