lilypond-devel
[Top][All Lists]
Advanced

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

Re: Error in resolving number of staff lines


From: Marc Hohl
Subject: Re: Error in resolving number of staff lines
Date: Sat, 23 Jun 2012 11:02:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1

Am 22.06.2012 10:49, schrieb David Kastrup:
Marc Hohl <address@hidden> writes:

You are only overriding line-positions.  While the bar line printer will
see that this now contains a value and heeds it, this does not magically
affect the (now ignored) line-count property.
Ah, I see, thanks for the explanation.
But why are the dots placed as if there were only four lines?
If the line number is still 5 and the routine in lily/bar-line.cc
works as expected, why are the dots placed correctly?
Huh?  Because there is a lot of code for doing that?

         {
           std::vector<Real> linepos = Staff_symbol::line_positions (staff);
           if (!linepos.empty ())
             {
               centre = Staff_symbol::line_span (staff).center ();

               /*
                 fold the staff into two at centre and find the first gap
                 big enough to hold a dot and some space below and above
               */

               [lots and lots]
Oh – I worked with a printed copy of bar-line.cc dated 2012/03/17,
where these lines simply didn't exist. This explains *a lot* ;-)

Thanks,

Marc




reply via email to

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