* 2012-03-17 08:47 +0100 -Eluze:
> Reedmace Star wrote:
> > The layout overrides may still be useful for scores where there is
> > occasional small overlap between the voices, though.
> 
> I wonder how this would look like!

Well, like this:



\version "2.14.2"

\layout {
  \context {
    \Lyrics
    \override VerticalAxisGroup #'nonstaff-nonstaff-spacing
       #'minimum-distance = ##f
    \override VerticalAxisGroup #'nonstaff-unrelatedstaff-spacing
       #'minumum-distance = ##f
    \override LyricText #'minimum-Y-extent = #'(-0.6 . 2.0)
  }
}

aliceSings = \markup { \smallCaps "Alice" }
eveSings = \markup { \smallCaps "Eve" }

<<
  \new Staff <<
    \new Voice = "alice" {
      f'4^\aliceSings g' r2 |
      s1 |
      f'4^\aliceSings g' r2 |
      s1 | \break
      % ...

      \voiceOne
      s2 a'8^\aliceSings a' b'4 |
      \oneVoice
      g'1
    }
    \new Voice = "eve" { 
      s1 |
      a'2^\eveSings g' |
      s1 |
      a'2^\eveSings g'
      % ...

      \voiceTwo
      f'4^\eveSings a'8 g' f'4 e' |
      \oneVoice
      s1
    }
  >>
  \new Lyrics \lyricsto "alice" \lyricmode {
    may -- be
    sec -- ond
    % ...
    Shut up, you fool!
  }
  \new Lyrics \lyricsto "eve" \lyricmode {
    that the
    words are
    % ...
    …and then I was like–
  }
>>



In the first line, Alice and Eve alternate strictly in singing, so their 
lyrics get collapsed:

   ALICE   EVE       ALICE   EVE
   maybe   that the  second  words are

After the manual line break, Alice cuts off Eve with a bit of overlap. 
Their lyrics stay on different lines, which makes sense:

   EVE           ALICE
                 Shut up, you fool!
   ...and then I was like-


Best regards,

RS

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to