lilypond-user
[Top][All Lists]
Advanced

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

Re: How to get lyrics to skip measures?


From: Chris Trahan
Subject: Re: How to get lyrics to skip measures?
Date: Mon, 26 Jan 2015 17:53:00 -0600



On Mon, Jan 26, 2015 at 4:35 PM, Kieren MacMillan <address@hidden> wrote:
Hi Chris,

> I think that I need to somehow include spacers to skip over the whistle part but I'm getting errors when I try that.

\new Lyrics \lyricsto "Women" {
    \verseOneLyrics
    \repeat unfold 4 { \skip 8 }
    \verseTwoLyrics
  }

Hope this helps!
Kieren.
_______________________

Kieren MacMillan, composer
www:  <http://www.kierenmacmillan.info>
email:  address@hidden


Thanks Kieren. That's what I tried in the 1st place but the actual musical passage is not as simple as my example, so using \skip is very unwieldy.  It's a whole verse.

I did figure it out. I had to create a new voice context for the part that is to be whistled.   I can then just set the lyrics to the "Women" voice context and the lyrics automatically skip the Whistle section.

Here's a snippet of the actual code. It's not complete so it won't compile. I'm beginning to understand contexts, finally!!!

womenMusic = {

  %% There's other music and code here.

      g8 a bf a | a4 a8 bf | c4 c | bf bf8 r | \break
      g8 a bf a | a4 a8 bf | c4 c | g4 r | \bar "||" \break

%% This creates the new voice context that will be skipped by setting
%% the women's lyrics to the "Women" voice context.

      \new Voice = "Whistle" {
        g8\mark "All whistle" a bf g | a4 a8 bf | c4 c | bf bf8 r8 | \break
        g8 a bf g | a4 a8 bf | c4 d | g, r | \bar "||" \break
      }

%% This reverts back to the original context.

      \oneVoice

%% And the rest of the piece follows.

      \key g \major
      g8^"Women" a b g | a4 a8 b | c4 c | b bf8 r8 | \break
 
%% The rest of the music is here.
    }
  }
}

Now my score block is:

\score {
  \new ChoirStaff
  <<
    \womenMusic
    \new Lyrics
    \lyricsto "Women" {
      \set stanza = #"1."
      \womenLyricOneTwo  % The same lyrics are used for V 1 & 2.
      \set stanza = #"2."
      \womenLyricOneTwo
    }
    \menMusic
    \new Lyrics \lyricsto "Men" {
      \set stanza = #"2."
      \menLyricTwo
    }
  >>
}

Thanks,
Chris

reply via email to

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