[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: |
Tue, 07 Oct 2014 20:16:06 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
Peter Crighton <address@hidden> writes:
> 2014-10-05 16:38 GMT+02:00 David Kastrup <address@hidden>:
>> >
>> > 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
> }
> >>
>>>
I don't really see what you are getting at. The horizontal spacing in
your example is, as I conjectured first, fixed before removing the
frenched staff: it is in all cases identical to the version without
\RemoveEmptyStaves. Fixing that would require another pass through the
horizontal spacing, redistributing the additionally available space
without considering the frenched staff. I don't know how well this
could be implemented given current LilyPond's internals, but it is
certainly going to be a non-trivial expense.
--
David Kastrup
Re: Key signatures in hidden staves take up space, Keith OHara, 2014/10/08