lilypond-user
[Top][All Lists]
Advanced

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

Re: rearrange music flow


From: Antanas Budriūnas
Subject: Re: rearrange music flow
Date: Sun, 4 Jan 2009 22:27:31 +0200

2009/1/3 Carl D. Sorensen <address@hidden>:
> Antanas,
>
>
> On 1/3/09 9:21 AM, "Antanas Budri?nas" <address@hidden> 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

reply via email to

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