bug-lilypond
[Top][All Lists]
Advanced

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

Re: Lyrics break estimation of vertical spacing


From: Boris Shingarov
Subject: Re: Lyrics break estimation of vertical spacing
Date: Mon, 29 Mar 2010 17:14:38 -0400
User-agent: Webmail 5.0

On Mon, 29 Mar 2010 12:04:42 -0700, Joe Neeman  wrote:
but I think you don't need to store an
 > extra version of rod-height. Just define rod-height to measure the
 > bottom of the last staff (whether that bottom comes from
 > begin_of_line_extent or rest_of_line_extent). Each time you add a staff,
 > you just need to see how far it needs to be from the last staff (this is
 > where the two separate extents come in) and then you increment
 > rod_height by
 >
 > rod_height  = distance_between_staves
 > - min(cur_staff.begin_extent_[DOWN], cur_staff.rest_of_extent_[DOWN])
 >   min(last_staff.begin_extent_[DOWN], last_staff.rest_of_extent_[DOWN]);

Right -- the important point that we need to keep two values indicating
how low the last system hangs; whether these two are kept in
last_staff.*_extent_, or in two rods, is an implementation detail.
 
Hang on a bit, I am debugging the patch, so I can post it and then we
can look at actual code instead of drawing pictures in the air.
 
Boris
 
 
 
 
 
 
 
 





reply via email to

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