lilypond-user
[Top][All Lists]
Advanced

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

Re: Music out of fragments & attaching lyrics to them


From: Mats Bengtsson
Subject: Re: Music out of fragments & attaching lyrics to them
Date: Tue, 15 Jan 2008 14:39:36 +0100
User-agent: Thunderbird 2.0.0.5 (X11/20070716)

One solution is to first setup all the contexts placed as you want them but filled with just a spacing note (to keep them alive long enough until the real contents appears) and then fill them with the actual music and lyrics. Such a solution is
for example included as the first SATB template in the manual.

In your example, just replace your current ChoirStaff with

\new ChoirStaff
<<
% Setup the contexts:
\new Staff = solo { s1 }
\new Lyrics= sololyrics { s1 }
\new Staff = upper { s1 }
\new Lyrics= upperlyrics { s1 }
\new Lyrics= lowerlyrics { s1 }
\new Staff = lower { s1 }
% Fill them with some content:
\context Staff = solo {
\time 2/4 \solo
}
\context Lyrics = sololyrics \lyricsto solo { Tral lal lal lah! }

% accompaniment
{\time 2/4 \dComb \aComb }
\context Lyrics = upperlyrics
\lyricsto "sa" { la -- lah lah la -- lah lah }
\context Lyrics = lowerlyrics
\lyricsto "b" { Tral tral tral tral }
>>

Another solution is simply to remove the \time 2/4 in
% accompaniment
{\time 2/4 \dComb \aComb }
in your original code, since the reason that the alignAboveContext
settings don't work is that the referenced context doesn't exist when
the Lyrics context is created, it's not created until after the \time 2/4
command has been taken care of. (It's enough to have a single
time signature statement for a full score, in contrast to key signatures
which have to be specified for each and every Staff).

/Mats

Risto Vääräniemi wrote:
Dear All,

I'm trying to create a piece of music where accompaniment consists of
one measure fragments and they are then combined into a sequence. That
seems doable. However, I would have to add lyrics to these fragments
and I'm sort of stuck. \addlyrics and \lyricsto seem to produce
undesired results.

Is this possible or do I have to write the text in one block and just
attach it to the complete sequence? Even that poses some problems. If
I attach the lyrics inside the ChoirStaff they are placed on top of
the fragments.

Below you can find a two measure example and two images – current
output and the output I would like to get.

-Risto

%%%%% Start %%%%%
\version "2.11.37"

\paper {ragged-right = ##t}
% upper staff of fragment one
dUp = \relative c' \context Voice = "sa" {
    r8 <f a>16 <f a> r8 <f a>
}

% upper staff of fragment two
aUp = \relative c' \context Voice = "sa" {
    r8 <e g>16 <e g> r8 <e g>
}

% lower staff of fragment one
dLow = \relative c \context Voice = "b" {
    d8 r a r
}

% lower staff of fragment two
aLow = \relative c \context Voice = "b" {
    a8 r c r
}

% fragment one
dComb = <<
  \context Staff = "upper"
  {\dUp}
  % Text here?

  \context Staff = "lower"
  {\clef bass \dLow}
  % Text here? Preferably above the music.
%fragment two
aComb = <<
  \context Staff = "upper"
  {\aUp}
  % Text here?

  \context Staff = "lower"
  {\clef bass \aLow}
  % Text here? Preferably above the music.
solo = \relative c' \context Voice = "solo" {
    d4 d a a
}

\new ChoirStaff
<<
    \new Staff = "solo" {
        \time 2/4 \solo
    }
    \new Lyrics \lyricsto "solo" { Tral lal lal lah! }

    % accompaniment
    {\time 2/4 \dComb \aComb }
    \new Lyrics \with {alignBelowContext="upper"}
      \lyricsto "sa" { la -- lah lah la -- lah lah }
    \new Lyrics \with {alignAboveContext="lower"}
      \lyricsto "b" { Tral tral tral tral }
%%% END %%%%%%
------------------------------------------------------------------------


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

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

_______________________________________________
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]