bug-lilypond
[Top][All Lists]
Advanced

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

Re: Bug report - no return to outer voice at end of associatedvoice


From: Marten Visser
Subject: Re: Bug report - no return to outer voice at end of associatedvoice
Date: Sun, 8 Dec 2013 12:50:04 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Thomas Morley <thomasmorley65 <at> gmail.com> writes:

> 
> Hi Marten,
> 
> >
> > Of course you can have 50% at half the price:
> 
> ??
> The _only_ interesting thing is the bug if any!

Of course. But my problem lies with the use of parallelmusic AND the use of 
a CueVoice. That's why I originally included 2 examples. Below follows the 
second example, where I would not know how your solution could be 
implemented.
 
> 
> 2013/12/7 Marten Visser <msvisser <at> planet.nl>:
> 
> > Also, the log file complains about:
> > D:/Marten/Muziek/Bladmuziek/Lilypond/CueVoiceTextError.ly:45:32: 
warning:
> > unterminated hyphen; removing
> >         K' -- a -- jal ta' -- a
> >                                 -- rog
> 
> That's because there was now note for "rog"

Well, only part of the text should be associated to the CueVoice, of 
course. I defined the voice it should be associated with inside \new Staff. 
Why is that not acceptable?

> 
> \version "2.16.2"
> 
> staffNotes =
> \new Voice = "M" \relative c'' {
>         << \voiceTwo a1 \new CueVoice = "D" { \voiceOne a2. a8 a } >>
>         \oneVoice
>         a2 a2
>         a1 %% added
> }
> 
> StanzaOneHebrewTrans = \lyricmode {
>         jal ta' -- a -- rog
> }
> 
> StanzaOneDutch = \lyricmode {
>         \set associatedVoice = #"D" hert dat
>         \set associatedVoice = #"M" ver -- langt en dorst
> }
> 
> <<
>   \new Staff \staffNotes
>   \new Lyrics \lyricsto "M" \StanzaOneHebrewTrans
>   \new Lyrics \lyricsto "M" \StanzaOneDutch
> >>
> 
> Cheers,
>   Harm
> 

Hi Phil, Harm, thanks for your quick replies in the first place :)

I had already found the solution you (Harm) gave myself. This is why there 
had to be two examples in the my original post.

With the discussion so far in mind, please take a look at the example 
below, using parallelmusic. Using parallelmusic is what I really want to 
do, because there will be several staves in the final song, but some of 
them will have more than one stanza with them.

The problem really is about how to associate text of deviating stanzas with 
the cuenotes indicating what should be sung instead. And this in 
combination with parallelmusic.

The example is here:
============================================================
%CueVoiceTextError 2

\version "2.16.2"

musicalContent = #(define-music-function (parser location) ()
#{
        % maat 1
        g2. c,4 |
        r1 |
        \noBreak

        % maat 2
        <<as'1 \new CueVoice = "DutchSpecificOne" { as2. f8[ f] }>> |
        r1 |
        \noBreak

        % maat 3
        f2. bes,4 |
        r1 |
 
#}) % End of musicalContent


StanzaOneHebrewTrans = \lyricmode {
        K' -- a -- jal ta' -- a -- rog
}

StanzaOneDutch = \lyricmode {
        Als een \set associatedVoice = #"DutchSpecificOne" hert dat
                                        \set associatedVoice = #"Melody" 
ver -- langt en dorst
}

\parallelMusic #'(VocalStaffNotesMelody
                  VocalStaffNotesTenor)
        \musicalContent

\score {
        <<
                \new Staff {
                        \key c \minor
                        \new Voice = "Melody" { \relative c'' 
\VocalStaffNotesMelody }
                        \new Lyrics \lyricsto #"Melody" 
{\StanzaOneHebrewTrans}
                        \new Lyrics \lyricsto #"Melody" {\StanzaOneDutch}
                }
        >>
        \layout {}
}

============================================================

Regards,
Marten





reply via email to

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