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

> On 16 June 2011 08:18,  <mts...@gmail.com> 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
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to