lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ossia and lyrics


From: Trevor Daniels
Subject: Re: ossia and lyrics
Date: Wed, 13 Apr 2011 23:31:06 +0100


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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]