lilypond-devel
[Top][All Lists]
Advanced

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

Re: strange "make web" behaviour


From: Han-Wen Nienhuys
Subject: Re: strange "make web" behaviour
Date: Tue, 06 Jun 2006 13:20:52 +0200
User-agent: Thunderbird 1.5.0.2 (X11/20060501)

Joe Neeman schreef:

OK, I have a snapshot of 1.8.0 working, but that doesn't help. It has
something to do with the sorting of elements. As far as I can tell, this
is what's happening:

InstrumentName Piano's support contains
  VerticalAxisGroup's elements contains
    InstrumentName Right's support contains
      VerticalAxisGroup (the same one!)

So if we call Piano->get_offset, it calls VerticalAxisGroup->extent,
which calls Right->get_offset, which calls VerticalAxisGroup->extent
which is a calculation-in-progress, so we get any empty interval.

If we call Right->get_offset _before_ we call Piano->get_offset,
VerticalAxisGroup is not a calculation-in-progress, so we get the actual
extent. That is, we get different answers depending on the order in
which we call things.

OK, that's possible.  We do sort some arrays on pointer addresses.

My workaround is not to add VerticalAxisGroups to the support of
InstrumentNames. (ie comment out instrument-name-engraver.cc:76). This
seems to work OK because the support still contains the various
SystemStartXXX which are to the left of the staff anyway.

Good catch. Sounds good.


--

Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com





reply via email to

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