I have a choral piece which compiles without issue until I add the PianoStaff
. I'm trying to use \partcombine
to also produce a PianoStaff
so that the piece is visible for piano.
I'm basing my changes on http://lilypond.org/doc/v2.18/Documentation/notation/multiple-voices#automatic-part-combining
\score {
<<
\new ChoirStaff \with {midiInstrument = "flute"} <<
\new Staff <<
\new Voice = "soprano" <<
\global
\sopranonotes
>>
\new Lyrics \lyricsto "soprano" \sopranowords
>>
\new Staff <<
\new Voice = "alto" <<
\global
\altonotes
>>
\new Lyrics \lyricsto "alto" \altowords
>>
\new Staff <<
\new Voice = "tenor" <<
\global
\tenornotes
>>
\new Lyrics \lyricsto "tenor" \tenorwords
>>
\new Staff <<
\new Voice = "bass" <<
\global
\bassnotes
>>
\new Lyrics \lyricsto "bass" \basswords
>>
>>
\new PianoStaff <<
\new Staff <<
\clef treble
\partcombine \sopranonotes \altonotes
>>
\new Staff <<
\clef bass
\partcombine \tenornotes \altonotes
>>
>>
>>
\layout { }
\midi { }
}
When I add the PianoStaff
I get
choir.ly:366:9: error: unknown escaped string: `\partcombine'
\partcombine \sopranonotes \altonotes
choir.ly:366:9: error: string outside of text script or \lyricmode
\partcombine \sopranonotes \altonotes
choir.ly
at github.com/timburgess/High_Country_Baxter Once the cause is deduced, I can edit the original question