Hi Jogchum,

> Is there a way to get the lyrics all on the same height?

Below is a modified version of your example showing one possible solution 
(using \set associated voice).
[Note that I also improved the overall structure/coding of your snippet, since 
it was (IMO) unnecessarily convoluted and difficult to parse.]

Another — possibly superior — solution would be to have a hidden voice that 
holds the maximal lyric rhythms, and attach the lyrics to it. Search the list 
for examples of how that works.

Hope that helps!
Kieren.

%%%  SNIPPET BEGINS
\version "2.25.32"

\paper {
  % Add space for instrument names
  indent = 18\mm
  short-indent = 10\mm
}

global = {
  \key g \major
  \time 4/4
  s1
  \time 3/4
  s2.
  \time 4/4
  s1*4
  \time 3/4
  s2.
}

alto = \relative c' {
  c2 \tuplet 3/2 { c4( b) a } 
  b4. d8 ~ d4 ~
  d4
  <<
    { \voiceOne g2. b2( a4) a }
    \\
    \new Voice = "alto2" { \voiceTwo d,4( e fis) g2. g4 }
  >>
  \oneVoice \breathe
  a2( g)
  <g e> 
  <<
    { \voiceOne \tuplet 3/2 { g2 g4 } }
    \\
    \new Voice = "alto2" {  \voiceTwo \tuplet 3/2 { e4( d) c } }
  >>
  \oneVoice
  <fis dis>4.<g~ e~>8 q4 
}

altoVerse = \lyricmode {
  a -- ni -- ma -- me -- \set associatedVoice = "alto2" a, __
  Mag -- ni -- \set associatedVoice = "alto" fi -- cat __
  \set associatedVoice = "alto2" a -- ni -- \set associatedVoice = "alto" ma me 
-- a, __
}

choirPart = \new ChoirStaff <<
  \new Staff \with {
    midiInstrument = "choir aahs"
    instrumentName = "Alt"
    shortInstrumentName = "A."
  } \new Voice = "alto" << \global \alto >>
  \new Lyrics \with { \override VerticalAxisGroup.staff-affinity = #CENTER }
  \lyricsto "alto" \altoVerse
>>

\score {
  \choirPart
  \layout {
    \context {
      \Score
      \override BarNumber.break-visibility = #end-of-line-invisible
    }
  }
}
%%%  SNIPPET ENDS
__________________________________________________

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.


Reply via email to