Simon Albrecht <[email protected]> writes:
> Hello,
>
> am I doing anything wrong here?
>
> %%%%%%%%%%%%%
> music = {
> 1
> }
>
> \score {
> \displayMusic {
> \new Staff <<
> \new NullVoice \music
> \new Voice \music
> >>
> \break
> \new GrandStaff <<
> \new Staff <<
> \new NullVoice \music
> \new Voice \music
> >>
> \new Voice \music
> >>
> }
> }
> %%%%%%%%%%%
>
> The second NullVoice (inside the GrandStaff), unlike the first, is not
> included in the same staff as the Voice, but instead gets a staff of
> its own. Bug?
No, just an incorrect analysis of what is happening here. The NullVoice
has nothing to do with it. Remove it and get the same result.
Here is a clue what is really happening.
%%%%%%%%%%%%%
music = {
1
}
\score {
\displayMusic {
\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
>>
}
}
%%%%%%%%%%%
Issue 4579, committed rather recently, tries explaining this phenomenon
somewhat more accurately than before and describes a remedy.
--
David Kastrup
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user