2009/1/3 Carl D. Sorensen <c_soren...@byu.edu>:
> Antanas,
>
>
> On 1/3/09 9:21 AM, "Antanas Budri?nas" <antan...@gmail.com> wrote:
>
>>
>>> parallelStaffs = #(define-music-function (parser location firstStaff
>>> firstLyrics
>>> secondStaff secondLyrics)
>>>                       (ly:music? ly:xxx? ly:music? ly:xxx?)
>>> #{ <<
>>>      \context Staff = "StaffOne"  {
>>>        \context Voice = "VoiceOne" {
>>>          $firstStaff
>>>        }
>>           \context Lyrics = "LyricsOne" \lyricmode {
>>               \set associatedVoice = #"VoiceOne"
>>              $firstLyrics
>>          }
>>>      }
>>>      \context Staff = "StaffTwo" {
>>>        \context Voice = "VoiceTwo" {
>>>          $secondStaff
>>>        }
>>           \context Lyrics = "LyricsTwo" \lyricmode {
>>               \set associatedVoice = #"VoiceTwo"
>>              $secondLyrics
>>          }
>>>      }
>>>>>>>
>>> #})
>>>
>>> intro = \parallelStaffs
>>>   {c''4 c''}
>> { ala ala }
>
> You need to put \lyricsmode { ala ala }, because the content is lyrics,
> not notes.
>
>>>
>>>   {c'4 c'}
>> { alb alb }
>>>
>>>
>>> verse = \parallelStaffs
>>>   {d''4 d''}
>> { bla bla }
>>>
>>>   {d'4 d'}
>> { blb blb }
>>>
>>>
>>> \score {
>>>   {
>>>     \intro
>>>     \verse
>>>   }
>>> }

This idea (lyrics in parallelStaffs) seems not easy to implement and
it would be rarely handy. For example: by rests in particural voice I
can avoid "sylable has no note attached" error only using \skip
function.
I decided not to fead lyrics to parallelStaffs function, but
anotherway (in \score) lyrics goes above or below Grandstaff only. I
can't imagine how to place lyrics directly by staff they belongs, when
in Lily code the lyrics are not in direct sequence to this staff or
voice.

Any hints?

Antanas Budriūnas
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to