lilypond-user
[Top][All Lists]
Advanced

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

Re: Vertical alignment of lyrics to multiple voices


From: Mats Bengtsson
Subject: Re: Vertical alignment of lyrics to multiple voices
Date: Tue, 02 Jan 2007 09:34:51 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20061206)

Every time you do \new Lyrics, you get a new Lyrics context, which is
placed on a separate line. Just include all your lyrics sections into one and the same Lyrics context if you want them vertically aligned, i.e. replace your
current \score block with
\score {
   <<

\new Staff = "whole" {\new Voice ="a" {\melodya} \new Voice="b" {\melodyb} \new Voice="c" {\melodyc} \new Voice="d" {\melodyd}}
   \new Lyrics <<
\lyricsto "a" \texta \lyricsto "b" \textb
   \lyricsto "c"   \textc
   \lyricsto "d"   \textd
   >>
>>
    \layout { }

}

  /Mats

Jack Cooper wrote:
Happy new year!

I have been navigating the lilypond world for the past six months and have
been primarily exploring lilypond as a tool for creating leadsheets and songbooks.

My main interest is figuring out how to create an efficient template
for creating a leadsheet (or "fakebook" style sheet) for all types of modern
guitar-vocal based songs.

I am wrestling with the formatting for lyrics. I am aiming for a modular approach to constructing lilypond input so that I can format sheets for a wide variety of song styles. The main problem I am having is the vertical alignment of lyrics assigned to one or more voice contexts. I will start off with a small example to exemplify the problem. In the following example, I am printing off the melody and lyrics to "Frere Jacques". I creating separated voice contexts for each "section" of the song, and am assigning lyrics to each section. The resulting
output properly assigns the correct lyric to the correct voice, but the
different lyrics are rendered on the same vertical line- each successive
lyric is placed lower than the one preceding it.

How do I change this so that each lyric snippet is vertically aligned? All my
keyword searcing through the archives and manual hasn't come up with
anything that seems to work (I've tried overriding the minimum-Y-extent and
Y-offset of the lyric context with no discernable change).

Any suggestions welcomed!

Thanks,

  Jack

--------------------------------------------------------------------------------------------------
code snippet:

 \version "2.8"
 \include "english.ly"


melodya =   {
     \clef treble
     \key c \major
     \time 4/4
     c'4 d'4 e'4 c'4 | c'4 d'4 e'4 c'4 |

}

melodyb = {
     e'4 f'4 g'2 | e'4 f'4 g'2 |
}

melodyc = {
g'8 a'8 g'8 f'8 e'4 c'4 | g'8 a'8 g'8 f'8 e'4 c'4 |
}

melodyd ={ c'4 g4 c'2 | c'4 g4 c'2 \bar"||"}

melody = {\new Voice = "a" {\melodya} \new Voice = "b" {\melodyb} \new Voice = "c" {\melodyc} \new Voice = "d" {\melodyd}} texta = \lyricmode {
Fre -- re  Jacqu -- es,
Fre -- re  Jacqu -- es,

}

textb =  \lyricmode  {
Dor -- mez Vous?
Dor -- mez vous?

}

textc =  \lyricmode  {
Sonn -- ez les ma -- tin -- es,
Sonn -- ez les ma -- tin -- es,

}

textd =  \lyricmode  {
Din, din don!
Din, din don!

}

 \score {
    <<
\new Voice = "whole" {\new Voice ="a" {\melodya} \new Voice="b" {\melodyb} \new Voice="c" {\melodyc} \new Voice="d" {\melodyd}}
    \new Lyrics    \lyricsto "a"   \texta
    \new Lyrics    \lyricsto "b"   \textb
    \new Lyrics    \lyricsto "c"   \textc
    \new Lyrics    \lyricsto "d"   \textd
>>
     \layout { }

}

-------------------------------------------------------------------------------------------

------------------------------------------------------------------------

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

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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