lilypond-user
[Top][All Lists]
Advanced

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

Re: trying to attach lyrics to global variable in /score


From: David Wright
Subject: Re: trying to attach lyrics to global variable in /score
Date: Sun, 3 Jan 2016 20:50:34 -0600
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun 03 Jan 2016 at 15:33:39 (-0800), Ryan Michael wrote:
> Thank you for the reminder, so he is a complete, however abridged version of 
> my
> code: 
> 
> viola = \new Voice \relative c' {
> c1 c1 c1
> }
> 
> recorder = \new Voice \relative c' {
> c1 c1 c1
> }
> 
> verseOne = \lyricmode {
>   m -- -- -- 
> }
> 
> \score {
>   \new StaffGroup <<
>    
>    \new Staff <<
>   \new Voice \global
>   \new Voice = "recorder" \recorder
> 
> >>
> \new Lyrics \lyricsto "recorder" \verseOne
>   
> 
> 
>  
> 
>     \new Staff << \global \viola >>
>   >>
> 
>   \layout { }
>   \midi { }
> }
> 
> And I am still getting the same error: 
> 
> cannot find Voice `recorder'

You should write just:

        recorder = \relative c' { c1 c1 c1 }

In your version,

        \new Voice = "recorder" \recorder

effectively becomes:

        \new Voice = "recorder" \new Voice \relative c' { c1 c1 c1 }

which means you've named the wrong Voice context, one with no music in it.

Cheers,
David.



reply via email to

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