Erik Sandberg <[EMAIL PROTECTED]> writes:

> On Saturday 13 August 2005 15.59, Nicolas Sceaux wrote:
>> Hi,
>>
>> I'm not sure if that's a bug or if I'm just doing something badly.  In
>> the following snippet, the lyrics are not placed below the newly added
>> staff.
>
> \new Lyrics creates a new lyrics context, independently of the Staff context 
> (it is not a child context of Staff). This means that the alignAboveContext 
> clause will have no effect on the Lyrics context.
>
> The solution would be to set Lyrics.alignBelowContext = "high" or something 
> like that.

OK, I was supposing that \lyricsto would suffice. The two following
examples do the job:

\version "2.7.5"
\layout { raggedright = ##t }
<<
  \context Staff = "low"  { c'1 \break c'1 }

  {
    \skip 1 \new Staff <<
      \set Staff . alignAboveContext = "low"
      \context Voice = "new" { e'2 e' }
      \new Lyrics {
        \set associatedVoice = #"new"
        \set Lyrics.alignAboveContext = "low"
        \lyricmode { bla2 bla2 }
      }
    >>
  }
>>

\version "2.7.5"
\layout { raggedright = ##t }
<<
  \context Staff = "low"  { c'1 \break c'1 }

  {
    \skip 1 \new Staff <<
      \set Staff . alignAboveContext = "low"
      \context Voice = "new" { e'2 e' }
      \lyricsto "new" \new Lyrics \notemode {
        \set Lyrics.alignAboveContext = "low"
        \lyricmode { bla bla }
      }
    >>
  }
>>

Thanks,

nicolas


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

Reply via email to