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 _______________________________________________ bug-lilypond mailing list bug-lilypond@gnu.org http://lists.gnu.org/mailman/listinfo/bug-lilypond