lilypond-user
[Top][All Lists]
Advanced

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

Re: temporarily add extra staff - two times in a row?


From: Mats Bengtsson
Subject: Re: temporarily add extra staff - two times in a row?
Date: Wed, 20 Apr 2016 06:27:15 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Johannes Waldmann <johannes_waldmann <at> web.de> writes:

> 
> Hi,
> 
> How could I get a extra staff temporarily,
> and then a second time, and both at the same distance
> to the staff that is running through?
> 
> I am starting from this:
> http://lsr.di.unimi.it/LSR/Item?id=110
> but it does not work two times in a row:
> 
> \score{
>   \new StaffGroup {
>     \new Staff \relative c'' {
>       c1 | c << { c1 | d } \new Staff { c1 | b } >>
>       % \repeat unfold 20 c1
>       c1 | c << { c1 | d } \new Staff { c1 | b } >>
>     }
>   }
> }
> 
> This compiles, but gives different distances.
> If the two extras appear on different rows
> (e.g., uncomment middle line to put some stuff in between)
> then distances are equal again.
> 
> Each "\new Staff" opens a new context/engraver (?)
> but this lives only on the "current line" ?
> If that's somehow true - then how can I re-use the previous one?

This is one of the oldest reported bugs we have in the bug database, see
https://sourceforge.net/p/testlilyissues/issues/127/ and
https://sourceforge.net/p/testlilyissues/issues/1449/ which has been merged
into #127. 

As David has already pointed out, a workaround is the keep the first context
alive, but it's an inconvenience. It seems to me that it shouldn't be
impossible to skyline contexts that don't have any temporal overlap. 

    /Mats





reply via email to

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