Hi Bernhard,

Some variables and the version you are using are missing. I cannot compile
your snippet.
Please read: http://www.lilypond.org/tiny-examples.de.html
Anyway, this compiles fine here:

\version "2.18.2"

soprano = { a' }
alto = { c' }
tenor = { a }
bass = { \clef bass c }
verseOne = \lyricmode { Ah! }

\score {
  \new ChoirStaff <<
    \new Staff \with {
      midiInstrument = "choir aahs"
      instrumentName = \markup \center-column { Sopran Alt }
    } <<
      \new Voice = "soprano" \with {
            \remove "Note_heads_engraver"
            \consists "Completion_heads_engraver"
            \remove "Rest_engraver"
            \consists "Completion_rest_engraver"
         } { \voiceOne \soprano }
      \new Voice = "alto" { \voiceTwo \alto }
    >>
    \new Lyrics \with {
      \override VerticalAxisGroup #'staff-affinity = #CENTER
    } \lyricsto "soprano" \verseOne

    \new Staff \with {
      midiInstrument = "choir aahs"
      instrumentName = \markup \center-column { Tenor Bass }
    } <<
      \clef bass
      \new Voice = "tenor" { \voiceOne \tenor }
      \new Voice = "bass" { \voiceTwo \bass }
    >>
  >>
  \layout { }
  \midi { }
}

Cheers,
Pierre


2016-01-28 11:02 GMT+01:00 Bernhard Kleine <[email protected]>:

> I have the following code and want to add this snippet from the
> Documentation:
>
> \new Voice \with {
>   \remove "Note_heads_engraver"
>   \consists "Completion_heads_engraver"
>   \remove "Rest_engraver"
>   \consists "Completion_rest_engraver"
>
> Adding it to \new Voice = "soprano" failed and adding to ChoirStaff
> failed, too. Please help.
>
> Thanks a lot!
>
> Bernhard
>
> \score {
>   \new ChoirStaff <<
>     \new Staff \with {
>       midiInstrument = "choir aahs"
>       instrumentName = \markup \center-column { Sopran Alt }
>     } <<
>       \new Voice = "soprano" { \voiceOne \soprano }
>       \new Voice = "alto" { \voiceTwo \alto }
>     >>
>     \new Lyrics \with {
>       \override VerticalAxisGroup #'staff-affinity = #CENTER
>     } \lyricsto "soprano" \verseOne
>
>     \new Staff \with {
>       midiInstrument = "choir aahs"
>       instrumentName = \markup \center-column { Tenor Bass }
>     } <<
>       \clef bass
>       \new Voice = "tenor" { \voiceOne \tenor }
>       \new Voice = "bass" { \voiceTwo \bass }
>     >>
>   >>
>   \layout { }
>   \midi { }
> }
>
> _______________________________________________
> lilypond-user mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to