[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mid-piece NullVoice creating?
From: |
David Kastrup |
Subject: |
Re: Mid-piece NullVoice creating? |
Date: |
Thu, 10 Sep 2015 14:02:13 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Simon Albrecht <address@hidden> writes:
> Am 10.09.2015 um 13:30 schrieb David Kastrup:
>> Here is a clue what is really happening.
>> Issue 4579, committed rather recently, tries explaining this phenomenon
>> somewhat more accurately than before and describes a remedy.
>
> Sorry, but did I correctly figure out the remedy you describe?
>
> %%%%%%%%%%%%%
> music = {
> 1
> }
>
> \score {
> {
> <<
> \new Staff \with { \override StaffSymbol.color = #red } <<
> \new NullVoice \music
> \new Voice \music
> >>
> >>
> \break
> \new GrandStaff <<
> \new Staff <<
> % \new NullVoice \music
> \new Voice \music
> >>
> \new Voice \music
> >>
> }
> }
> %%%%%%%%%%%
>
> This also has a spurious staff in the second system, but blackā¦ ?
Well, \break is defined as an event, and events need a bottom context.
There no longer is one, so it creates its own one. So you need
something like
<<
<< { \new Staff ... \break } >>
\new GrandStaff ...
>>
or move the \break into the \new Staff somewhere.
--
David Kastrup