On 2017-04-04 07:54 PM, Dan Eble wrote:
On Mar 25, 2017, at 14:34, Dan Eble <d...@faithful.be> wrote:
NullVoice is unlike a Voice in this respect: trying to move it to a
different Staff with \change fails with this warning:
Change_iterator::process (): NullVoice = `soprano':
cannot change `Staff' to `S': not changing to same context type: Staff
Staff "S" doesn't have a NullVoice defined. I modified your code as
follows, and it seems to do what you want, although you still get a
warning because the \changeStaff event happens in both a regular Voice
and a NullVoice.b Perhaps others can take it further?
**************************
\version "2.19.54" %% just because it's what I'm using
sopranoNotes = \fixed c' {
c1 d e f
\break
\change Staff = "S"
g a b c'
}
\new ChoirStaff \with {
*% \RemoveEmptyStaves**
** % \override VerticalAxisGroup.remove-first = ##t*
} <<
\new Staff = "S" \with {
instrumentName = "S"
shortInstrumentName = "S"
}
* \new NullVoice = "S" {*
$(skip-of-length sopranoNotes)
}
\new Staff = "SA" \with {
instrumentName = "SA"
shortInstrumentName = "SA"
} <<
\new Voice { \sopranoNotes }
\new NullVoice = "soprano" { \sopranoNotes }
>>
>>
*********************
HTH,
Colin
--
I think age is a very high price to pay for maturity.
-- Tom Stoppard
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond