lilypond-user
[Top][All Lists]
Advanced

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

Re: centering text on a measure


From: David Nalesnik
Subject: Re: centering text on a measure
Date: Thu, 29 Sep 2011 20:26:01 -0500

Hi Harm,

On Thu, Sep 29, 2011 at 5:59 PM, Thomas Morley <address@hidden> wrote:

Hi David,

I thought a while about your "hackishness" :)

As a first step it seems to be possible to add a grob-custom-property to define-grob-properties.scm in some way (thanks to Arnold from the german lilypond forum, who had the idea http://www.lilypondforum.de/index.php).

The code below gives only the name, description and the type of argument of the new grob-custom-property. But the little test shows no problems and no warning in the log.

[snip]

Wonderful!  Thank you so much!  The log now offers no comment on my hackery :)

I tried this with a two-voice example (see center-between.ly), and sure enough, the problem with "choosing" the wrong grobs to center between disappears.

I've also attached a revision of another function which aligns a grob to a single other grob in specified ways.   (This was discussed at http://www.mail-archive.com/address@hidden/msg62226.html)

Best,
David



Attachment: center-between.ly
Description: Binary data

Attachment: alignGrob_rev.ly
Description: Binary data


reply via email to

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