1

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
1

1 Answer 1

2

In your question there is a link to the v2.18 documentation, which uses \partcombine.

But your code is written in version 2.23. And, according to the 2.23 documentation of the corresponding page: The up to date syntax is \partCombine (with a capital C).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.