can't find voice (to attach \lyricsto)

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

can't find voice (to attach \lyricsto)

Kieren MacMillan
Hello, all --

I'm trying to engrave a two-voice piece (a cappella), but I'm getting  
the warning

     warning: cannot find Voice `she'

What am I doing wrong? I've tried instantiating explict Staff  
contexts, adding and removing quotes, using \new Lyrics or  
\addlyrics, and nothing seems to solve the problem.

I thought this was exactly like the docs example...  =\

Thanks,
Kieren.

_____________________________________

\version "2.8.1"

\include "english.ly"

#(set-global-staff-size 14)
#(set-default-paper-size "letter")

\paper
{
        line-width = 6.5\in
        bottom-margin = .5\in
}

global =
{
     \time 4/4
     \key c \major
}

sheNotes = \relative c''
{
        \clef treble
        s1
}
sheLyrics = \lyricmode
{
        We grow ac -- cust -- omed to the Dark-
        A Mom -- ent-
}

heNotes = \relative c
{
        \clef bass
        r4 e f b
        c8 b4. b16 b b2
        r4 b, c8 a' r4
}
heLyrics = \lyricmode
{
        We grow ac -- cust -- omed to the Dark-
        A Mom -- ent-
}

\score
{
        <<
                \override Score.LyricText #'font-size = #.5
                \new Voice = "she"
                {
                         << \global \dynamicUp \sheNotes >>
                }
                \new Lyrics \lyricsto "she" \sheLyrics
               
                \new Voice = "he"
                {
                         << \global \dynamicUp \heNotes >>
                }
                \new Lyrics \lyricsto "he" \heLyrics
        >>
       
        \layout
        {
                ragged-right = ##f
                ragged-bottom = ##t
                pagenumber = no
        }
}


_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: can't find voice (to attach \lyricsto)

Tapio Tuovila
Kieren Richard MacMillan kirjoitti:
> Hello, all --
>
> I'm trying to engrave a two-voice piece (a cappella), but I'm getting
> the warning
>
>     warning: cannot find Voice `she'
>
> What am I doing wrong?

Your example is completely OK as soon as you put some music in
'sheNotes'; now there is nothing but 's1'

> sheNotes = \relative c''
> {
>     \clef treble
>     s1        <----------------PUT SOME MUSIC HERE
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> }
> sheLyrics = \lyricmode
> {
>     We grow ac -- cust -- omed to the Dark-
>     A Mom -- ent-
> }
Greetings, Tapio


_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: can't find voice (to attach \lyricsto)

Rick Hansen (aka RickH)
In reply to this post by Kieren MacMillan
I think you need to specify a \staff around the music parts, then specify the \lyrics below the closing bracket of each staff.  Here is what I am doing and the \lyricsto is working fine for me:  (I'm using 3 part polyphony voices on a single staff, but in your case you should be able to put lyrics below each separate staff that has a named voice.)  Note in the example below anything that begis with "\var" are my own variables that are set up by a separate song-specific .ly \include file.



\score {
       
        <<
       
        \new Staff \with {
                voltaOnThisStaff = ##f
        }
        {
                \clef "G_8"
                \mark \markup{ \hspace #0 \raise #1.5 \varStyle }
                \varKey
                \varTime
               
                <<
                \new Voice="voiceMelody" { \voiceOne \varVoiceMelody \oneVoice } \\
                \new Voice="voiceInner"
                        {\voiceThree \stemNeutral \varVoiceInner \oneVoice } \\
                \new Voice="voiceBass"
                        { \voiceTwo \varVoiceBass \oneVoice }
                >>
                \oneVoice
        }
       
        \new Lyrics \with {
        } \lyricsto "voiceMelody" \varLyricsOne
       
        \new Lyrics \with {
        } \lyricsto "voiceMelody" \varLyricsTwo
       
        >>

}
Reply | Threaded
Open this post in threaded view
|

Re: can't find voice (to attach \lyricsto)

Mats Bengtsson-4
Rick Hansen (aka RickH) wrote:

>I think you need to specify a \staff around the music parts, then specify the
>\lyrics below the closing bracket of each staff.
>
That shouldn't be necessary, since LilyPond implicitly creates
a Staff context to be able to host a Voice context, if you don't
do it explicitly.


_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user