Re: Aligning verse text?

2023-11-22 Thread Sebastien Richard
Hello,

Could you provide a tiny example to start with ?

BR

---
 Sébastien RICHARD

From: lilypond-user-bounces+richardsgjm=hotmail@gnu.org 
 on behalf of echo 

Sent: Wednesday, November 22, 2023 20:08
To: Michael Werner ; p...@cassland.org 
Cc: lilypond-user@gnu.org 
Subject: Re: Aligning verse text?

Hello Michael, Paul,
I am copying a choral piece and I need to separate four voices, to make it 
easier for reading. The idea is to keep all syllables (of each voice) just 
highlight mute syllables (pauses) differently. I have just start to use 
LilyPond and reading the manuals at the same time. Sometimes I stuck so thank 
you for help.
Kind Regards.


Re: Aligning verse text?

2023-11-22 Thread echo
Hello Michael, Paul,
I am copying a choral piece and I need to separate four voices, to make it 
easier for reading. The idea is to keep all syllables (of each voice) just 
highlight mute syllables (pauses) differently. I have just start to use 
LilyPond and reading the manuals at the same time. Sometimes I stuck so thank 
you for help.
Kind Regards.


Re: Aligning verse text?

2023-11-22 Thread Michael Werner
Hi there,

On Tue, Nov 21, 2023 at 10:03 AM  wrote:

> ‌How to place (ooo -- oo o -- ooo --) verse to first (r1) rest and (uu --
> u -- uu) to (g'4 fis' g')?
>

Something like this, as in?

\version "2.24.3"

globals = {
  \key f \major
  \time 2/1
}

musicOne = {
  e'4. e'8 e'4 e' e'2 e'4 r | \break
  r1 g'4 fis' g' r
  r1 e'4 e' e' r
}

musicTwo = {
  e'4. e'8 e'4 e' e'2 e'4 e | \break
  e1 g'4 fis' g' g
  g1 e'4 e' e' e
}

verseOne  = \lyricmode {
  x -- xx xx -- xx -- xx -- xx \skip 1
  ooo_--_oo_o_--_ooo -- uu -- u -- uu
}

\score {
  \new Staff <<
\globals
\new Voice = "one" {
  \musicOne
}
\new NullVoice = "two" {
  \musicTwo
}
\new Lyrics \lyricsto "two" {
  \verseOne
}
  >>
}

musicTwo is the same rhythm as musicOne, with notes in place of the rests.
We can get away with doing that, because musicTwo is being used in a
NullVoice context. Details on the NullVoice context are at
http://lilypond.org/doc/v2.24/Documentation/notation/techniques-specific-to-lyrics#index-NullVoice
but the basics here are that this context will accept music as any regular
Voice, but produces no printed output. Near as I can figure, its primary
use is situations just like this - aligning lyrics to a melody other than
what's being printed in the staff. I frequently use this for songs that
have both a melody and a harmony part with different rhythms and common
lyrics that need to align to (usually) the melody rhythm.

Also, the ooo's had to be fiddled a bit to get them to fit. That's why the
underscores - to make that sequence align as if it were all one word. And
the \skip 1 is to skip over the quarter rest at the end of the first line.

Lots of further explanations in the docs - for much of the basics for
dealing with lyrics sections 2.1.1 and 2.1.2 of the Notation Reference will
pretty much cover the basics.
-- 
Michael


Re: Aligning verse text?

2023-11-21 Thread Paul Hodges
I would put hidden notes there to link the lyrics to, and place the rests in a 
parallel voice, like this:


%%



\version "2.24.3"


musicOne = {
  \key f \major
  \time 2/1
  e'4. e'8 e'4 e' e'2 e'4
  <<
    { \hideNotes g'4 | g'4 g'4 g'4 r4 \unHideNotes }
    \new Voice { b'4\rest | \break b'1\rest }
  >>
  g'4 fis' g' r
  r1 e'4 e' e' r 
}


verseOne  = \lyricmode {
  x -- xx xx -- xx -- xx -- xx
  ooo -- oo o -- ooo -- uu -- u -- uu
}


\score {
  <<
    \new Voice = "one" {
      \musicOne
    }
    \new Lyrics \lyricsto "one" {
      \verseOne
    }
  >>
}
 
%


Note that the parallel construction is not << \\ >> because that creates two 
new voices; the voice with the hidden notes needs to be the same so that the 
lyrics link to it.


Paul


 From:    
 To:
 Sent:   21/11/2023 13:52 
 Subject:   Aligning verse text? 


‌How to place (ooo -- oo o -- ooo --) verse to first (r1) rest and (uu -- u -- 
uu) to (g'4 fis' g')? 
 
 \version "2.24.3"
 
 musicOne = {
   \key f \major
   \time 2/1
   e'4. e'8 e'4 e' e'2 e'4 r | \break
   r1 g'4 fis' g' r
   r1 e'4 e' e' r 
 }
 
 verseOne  = \lyricmode {
   x -- xx xx -- xx -- xx -- xx
   ooo -- oo o -- ooo -- uu -- u -- uu
 }
 
 \score {
   <<
     \new Voice = "one" {
       \musicOne
     }
     \new Lyrics \lyricsto "one" {
       \verseOne
     }
   >>
 } 
  

Aligning verse text?

2023-11-21 Thread echo . motd
‌How to place (ooo -- oo o -- ooo --) verse to first (r1) rest and (uu -- u -- 
uu) to (g'4 fis' g')? 

\version "2.24.3"

musicOne = {
  \key f \major
  \time 2/1
  e'4. e'8 e'4 e' e'2 e'4 r | \break
  r1 g'4 fis' g' r
  r1 e'4 e' e' r 
}

verseOne  = \lyricmode {
  x -- xx xx -- xx -- xx -- xx
  ooo -- oo o -- ooo -- uu -- u -- uu
}

\score {
  <<
    \new Voice = "one" {
      \musicOne
    }
    \new Lyrics \lyricsto "one" {
      \verseOne
    }
  >>
}