Re: Mid-piece NullVoice creating?

2015-09-10 Thread Simon Albrecht

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… ?

Yours, Simon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Mid-piece NullVoice creating?

2015-09-10 Thread David Kastrup
Simon Albrecht  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

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Mid-piece NullVoice creating?

2015-09-10 Thread David Kastrup
Simon Albrecht  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
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Mid-piece NullVoice creating?

2015-09-10 Thread Simon Albrecht

Am 10.09.2015 um 14:02 schrieb David Kastrup:

Simon Albrecht  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.


That’s it. Thanks a lot for the explanations.

Yours, Simon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Mid-piece NullVoice creating?

2015-09-10 Thread Simon Albrecht

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?


TIA, Simon
\version "2.19.25"
#(set-global-staff-size 16)
\paper { #(set-paper-size "a7") indent = 0 page-count = 1 }
#(ly:set-option 'point-and-click #f)
\header { tagline = ##f }

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
>>
  }
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user