David, you wrote Wednesday, April 13, 2011 9:45 PM

This does the trick. I had to assign some contexts. Why are the lyrics not aligned properly?

It's due to the \lyrics:

      \lyrics {
        \set alignBelowContext = #"1"
        \new Lyrics \lyricsto "1" \sopranoLyrics
      }

This can just be removed.  Some other simplifications
give this:

sopranoMusic = \relative c' {
 c4 d e f g a b c b a g f e d c
}

sopranoLyrics = \lyricmode {
 do re mi fa sol la ti do
}

ossia = \relative c''' {
 \stopStaff s1
 \startStaff g4 a b c
 \stopStaff
}

soprano = <<
 \context Staff = "top" {
   \new Voice = "1"
   \sopranoMusic
 }
 \new Lyrics \lyricsto "1" \sopranoLyrics
 \new Staff \with {
   alignAboveContext = #"top"
   fontSize = #-2
   \override StaffSymbol #'staff-space = #(magstep -2)
   \remove "Time_signature_engraver"
   \override Clef #'transparent = ##t
 }
 \ossia


\score {
 \soprano
}

HTH

Trevor




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

Reply via email to