lilypond-user
[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: Peter Crighton
Subject: Re: Key signatures in hidden staves take up space
Date: Tue, 7 Oct 2014 20:00:00 +0200

2014-10-05 16:38 GMT+02:00 David Kastrup <address@hidden>:
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.

I know, what I meant was that in my minimal example the problem appears in every line, not only those with a time signature change.


\version "2.19.13"

<<
  \new Staff <<
    \relative c'' {
      c1 \break
      c2.
      c \break
      c1
      c
    }
  >>
  \new Staff \with {
    \RemoveEmptyStaves
  } <<
    {
      \key d \major
      R1 \break
      \time 3/4
      R2. \break
      R2.
      \key c \major
      \time 4/4
      R1 \break
      R1
    }
  >>
>>

--
Peter Crighton | Musician & Music Engraver based in Mainz, Germany
http://www.petercrighton.de

reply via email to

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