lilypond-user
[Top][All Lists]
Advanced

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

Re: 2nd Verse lyrics drop below all staves, alignBelowContext not workin


From: Tyler Mitchell
Subject: Re: 2nd Verse lyrics drop below all staves, alignBelowContext not working
Date: Sat, 7 Sep 2019 12:17:41 -0700
User-agent: Mutt/1.9.4 (2018-02-28)

On Sat, Sep 07, 2019 at 10:43:51AM -0700, Keizen Li Qian wrote:
> I could still use some help here. I believe my construct looks exactly as
> described in the documentation
> <http://lilypond.org/doc/v2.18/Documentation/notation/techniques-specific-to-lyrics#lyrics-and-repeats>
> starting at "However..." Thank you in advance.

Your code is rather big. It also has a lot of commented-out
sections which make it hard to see what's going on. It also doesn't
compile cleanly because I don't have a file called "ident.ly".

If you can boil your problem down to a minimal example, it will
help people figure out what's going on without having to read
through a lot of code. See:

        http://lilypond.org/tiny-examples.html


In any case, if I've understood what you're asking, I think the
problem is, to use alignAboveContext / alignBelowContext here, you
need a Staff, not a voice. For example:

\version "2.18.2"

\score {
  <<
    \new Staff <<
      \new Voice = "soprano" \relative c' {
        e4 d c d e e e r
      }
      \new Lyrics \lyricsto "soprano" {
        Ma -- ry had a 
        <<
          { lit -- tle lamb, }
          \new Lyrics \with { 
            alignAboveContext = #"bass-staff"
          } {
            \set associatedVoice = #"soprano"
            laz -- er bat,
          }
        >>
      }
    >>
    \new Staff = "bass-staff" <<
      \new Voice = "bass" \relative c {
        \clef bass
        c4 c g' g a a g r
      }
    >>
  >>
}

And you want to align -above- the staff context underneath the
lyrics (because if you align below the staff you're putting lyrics
to, the "second verse" will be above the first.

Hope this helps,
Tyler



reply via email to

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