lilypond-user
[Top][All Lists]
Advanced

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

Re: Newbie Question -- verse and chorus


From: Tim Rowe
Subject: Re: Newbie Question -- verse and chorus
Date: Mon, 11 May 2009 09:13:41 +0100

2009/5/10 James E. Bailey <address@hidden>:

> There are different ways of doing this. I prefer to have separate voice
> contexts for the verse and lyrics, i.e., music = { \context Voice = Verse
> \relative {} \context Voice = Chorus \relative {} } and then corresponding
> lyrics contexts: verse = \context Lyrics \lyricsto Verse \lyricmode {}
> chorus = \context Lyrics \lyricsto Chorus \lyricmode {}

That looks like what I need, but I don't quite understand it --
probably because I don't properly understand contexts -- the in
documentation, all the index entries for contexts take me to sections
that assume I already know what they are and just want to adjust them.

So how do I put those bits together? In my first attempt I've put my
lyrics into variables:
chorus = {...
verseOne = {...
verseTwo = {...
verseThree = {...

It looks as if they shouldn't just contain the text as at present. You have
  verse = \context Lyrics \lyricsto Verse \lyricmode {}
Should I actually have
  verseOne = \context Lyrics \lyricsto Verse \lyricmode {}
  verseTwo = \context Lyrics \lyricsto Verse \lyricmode {}
and so on, or do all the verses go in the
  verse = \context Lyrics \lyricsto Verse \lyricmode {}
(If the latter, how do I divide them up?)

I have a melody line and upper and lower piano lines:

melody = \relative c'' {
  \clef treble
  \key f \major
  \time 4/4
  ...

upper = \relative c' {
  \clef treble
  \key f \major
  \time 4/4
 ...

lower = \relative c {
  \clef bass
  \key f \major
  \time 4/4
  ...

Presumably the melody is the only one I worry about, because that's
the one the lyrics fit. So I just add the context statememts within
the melody as you've indicated. Ok there, I think.

And the overall score is taken from a template in the learners' manual:

\score {
  <<
    \set Score.tempoHideNote = ##t
    \tempo 4 = 144
    \new Voice = "mel" { \autoBeamOff \melody }
    \new Lyrics \lyricsto mel \lyricmode \chorus % but I can't work
out how to add the verses
    \new PianoStaff <<
      \new Staff = "upper" \upper
      \new Staff = "lower" \lower
    >>
  >>
  \layout {
    \context { \RemoveEmptyStaffContext }
  }
  \midi { }
}

I'm not sure how I add all of the elements together there.

-- 
Tim Rowe




reply via email to

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