Am 26.12.2008 um 16:24 schrieb fiëé visuëlle:
Am 2008-12-26 um 12:38 schrieb james:
I'm trying to figure out ways to incorporate lyrics associated
with different voices. I can only seem to get it to work using
associatedVoice. Is this possible using \lyricsto?
\version "2.11.65"
instrument = \relative c' {
\context Voice = "NumberOne" { c4 d e f }
\context Voice = "NumberTwo" { c4 d e f }
\context Voice = "NumberThree" { c4 d e f }
\context Voice = "NumberOne" { c'4 b a g }
\context Voice = "NumberTwo" { c4 b a g }
\context Voice = "NumberThree" { c b a g }
}
Text = \context Lyrics {
\lyricsto "NumberOne" { Cee Dee Eee Eff }
\lyricsto "NumberTwo" { Doh Re Mi Fa }
\lyricsto "NumberThree" { This is my text. }
\lyricsto "NumberOne" { Cee Bee Ay Gee }
\lyricsto "NumberTwo" { Doh Ti La Sol }
\lyricsto "NumberThree" { Here is some more. }
}
TextTwo = \context Lyrics \lyricmode {
\set associatedVoice = #"NumberOne" { Cee4 Dee Eee Eff }
\set associatedVoice = #"NumberTwo" { Doh4 Re Mi Fa }
\set associatedVoice = #"NumberThree" { This4 is my text. }
\set associatedVoice = #"NumberOne" { Cee4 Bee Ay Gee }
\set associatedVoice = #"NumberTwo" { Doh4 Ti La Sol }
\set associatedVoice = #"NumberThree" { Here4 is some more. }
}
\score {
<<
\new Staff \instrument
\Text
>>
}
\score {
<<
\new Staff \instrument
\TextTwo
>>
}
Your nesting seems strange to me.
Try:
upperVoice = \relative c'' {
%
}
lowerVoice = \relative c' {
%
}
textOne = \lyricmode {
% You know how to write ly -- rics, don’t you?
}
textTwo = \lyricmode {
% You know how to write ly -- rics, don’t you?
}
\score {
<<
\context Staff = Upper <<
\context Voice = "one" \upperVoice
>>
\lyricsto "one" \new Lyrics { \textOne }
\context Staff = Lower <<
\context Voice = "two" \lowerVoice
>>
\lyricsto "two" \new Lyrics { \textTwo }
>>
}
Maybe that's oldfashioned, but it works for me (with 2.10.33).
I knew I would have to get into explaining this. There is no nesting.
What I have are two verses, say,
{\autoBeamOff c8 d e4 f g}
and in the second verse,
{\autoBeamOff c8[ d] e4 f g}.
Engraving that isn't really a problem
\relative {\autoBeamOff <<{\voiceOne c8 d } \new Voice {\voiceTwo c8
[ d] }>>\oneVoice e4 f g}
That's fine. I have it happening tons of times. The problem is then
having lyrics automatically align to these notes. Usually I just name
my voice context and be done with it:
\relative {
\context Voice = "unbeamed notes"
\autoBeamOff
<<
{ \voiceone c8 d}
\context Voice = "beamed notes" { \voiceTwo c8[ d] }
>> \oneVoice e4 f g
}
And then I automatically add text to it, using the above method.
Problem is, with it happening 10 or more times in a single piece, I'm
having problems aligning all of the lyrics to the appropriate notes.
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user