I am working on a four-part choral score with piano accompaniment.  A
simplified version is attached.[*]

The vocal score looks great.  Stems are in different directions for the
different voices, exactly as I want.

However, I would like the piano score, based on the exact same music
objects, to combine the voices into chords and single notes as
appropriate, and I can’t seem to figure out how to flatten the voices
together.  I’ve tried various invocations of \oneVoice, but they don’t
seem to do anything.

[Also interesting is what happens if you get rid of the \key declaration
in the piano staves; LilyPond seems to give up on creating chords
altogether and just madly overlaps notes.]

If I am just missing something in the doc, I’d love a pointer.

Thanks,
Chris

[*] It is a mangled-for-demonstration version of “The Old Oaken Bucket,”
in case you were wondering.
-- 
Chris Maden, text nerd  <URL: http://crism.maden.org/ >
“Be wary of great leaders.  Hope that there are many, many small
 leaders.” — Pete Seeger
\version "2.12.3"

\include "english.ly"

\header {
  title= "Four-Part Vocal and Piano Test"
}

tenOne = \relative c' {
  a'4 f'4. e8 |
}

tenTwo = \relative c' {
  a'4 d4. d8 |
}

bassOne = \relative c {
  a'4 a4. g8 |
}

bassTwo = \relative c {
  a'4 d,4. d8 |
}

vocals = \new ChoirStaff = "voice" <<
  \set ChoirStaff.midiInstrument = #"choir aahs"
  \new Staff = "tenor" {
    \set Staff.instrumentName = "Tenor Ⅰ&Ⅱ"
    \set Staff.shortInstrumentName = "T."
    \clef treble
    \key c \major
    \time 3/4
    <<
      \new Voice = "tenorOne" {
        \voiceOne
        \tenOne \bar "|."
      }
      \new Voice = "tenorTwo" {
        \voiceTwo
        \tenTwo \bar "|."
      }
    >>
  }
  \new Staff = "bass" {
    \set Staff.instrumentName = "Bass Ⅰ&Ⅱ"
    \set Staff.shortInstrumentName = "B."
    \clef bass
    \key c \major
    \time 3/4
    <<
      \new Voice = "bassOne" {
        \voiceOne
        \bassOne \bar "|."
      }
      \new Voice = "bassTwo" {
        \voiceTwo
        \bassTwo \bar "|."
      }
    >>
  }
>>

pianoAcc = \new PianoStaff = "piano" <<
  \set PianoStaff.instrumentName = #"Piano"
  \set PianoStaff.shortInstrumentName = #"Pia."
  \set PianoStaff.midiInstrument = #"acoustic grand"
  \new Staff = "right hand" {
    \clef treble
    \key c \major
    \time 3/4
    <<
      {
        \tenOne \bar "|."
      }
      {
        \tenTwo \bar "|."
      }
    >>
  }
  \new Staff = "left hand" {
    \clef bass
    \key c \major
    \time 3/4
    <<
      {
        \bassOne \bar "|."
      }
      {
        \bassTwo \bar "|."
      }
    >>
  }
>>

\score {
  <<
    \vocals
    \pianoAcc
  >>
  \layout {}
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to