lilypond-devel
[Top][All Lists]
Advanced

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

Re: Attaches bound info to beam for better normalized-endpoint calculati


From: address@hidden
Subject: Re: Attaches bound info to beam for better normalized-endpoint calculations. (issue4605047)
Date: Wed, 22 Jun 2011 23:48:25 +0200

On Jun 22, 2011, at 11:40 PM, Neil Puttock wrote:

> On 16 June 2011 08:18,  <address@hidden> wrote:
> 
>> left-bound-info and right-bound-info are calculated at the beginning of
>> Line_spanner::print, so this setting of Beam properties, albeit late in
>> the game, would be in keeping with the stage at which these properties
>> are calculated in the Line_spanner.
> 
> They're calculated via callbacks, not directly in the C++ code.

In this present case, I could see the bound info being calculated via a 
callback that fetches the 'quantized position property for the Y values, but 
the X values would still need to be calculated by consulting the normal stems à 
la lines 559-570.  Were I to place the calculation in a callback, it would 
require a code dup of these lines.  To avoid this, I could create a property 
called x-positions and change the name of positions to y-positions and 
quantized positions to quantized-y-positions.  Then, I'd put lines 559-570 in a 
separate callback for the X positions.  Lemme know if this sounds good.

Cheers,
MS


reply via email to

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