bug-lilypond
[Top][All Lists]
Advanced

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

Re: Key signatures in hidden staves take up space


From: David Kastrup
Subject: Re: Key signatures in hidden staves take up space
Date: Sun, 05 Oct 2014 16:38:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Peter Crighton <address@hidden> writes:

> 2014-10-05 11:15 GMT+02:00 David Kastrup <address@hidden>:
>
>> Simon Albrecht <address@hidden> writes:
>>
>> > Am 04.10.2014 um 23:13 schrieb Peter Crighton:
>> >> As you can see in the following code and the attached image, there
>> >> is a possible bug when using \RemoveEmptyStaves with voices in
>> >> different keys (such as in a score with transposing instruments):
>> >> key signatures appearing only in hidden empty staves are still
>> >> causing space in the shown staves.
>> >>
>> >> I don’t think this is as it should be. How can I correct this? And
>> >> should it be filed as a bug report, or is there some intention
>> >> behind this appearance?
>> > I quite agree that this is likely a bug (or at least: unexpected
>> > behaviour which should be enhanced).
>>
>> It is not unexpected behavior.  \RemoveEmptyStaves can only work after
>> the line breaks are known and the line breaks are the result of
>> horizontal spacing.
>>
>> Basically you'd need to redo all of the horizontal spacing after stuff
>> like \RemoveEmptyStaves have run without changing the line breaking
>> again if you find out that this gives you more space to work with.
>>
>> Unlikely to happen in the next few years of LilyPond development.
>
>
> Okay, thanks for explaining. For now I am content with using “\omit
> Staff.KeySignature” and “\revert Staff.KeySignature.stencil” respectively
> to get rid of the problem.
>
> What I found strange, though, was that in my score the problem only
> appeared when there was a time signature change at the beginning of the
> line. I couldn’t reproduce this in a minimal example.

Huh.  Maybe LilyPond _does_ set the line/horizontal spacing fresh after
determining the break points.  But things like key/time signature
changes are repeated on the _previous_ line.  And maybe it's too late to
redo the line spacing on _that_?

You can try creating a minimal example with multiple lines by manually
placing breaks with \break.

-- 
David Kastrup



reply via email to

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