lilypond-user
[Top][All Lists]
Advanced

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

Re: Reconnecting voices in Lilypond


From: Darius Blasband
Subject: Re: Reconnecting voices in Lilypond
Date: Wed, 06 Oct 2004 11:13:49 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616

Just to be sure, when you write:

\new Staff\notes\relative c' <<
\context Voice = "1" {s1*2}
\context Voice = "2" {s1*2}
\new Voice {
c4 d e f
<<
    a(
   \\
    b
 >>
 c
 <<
   c)
   \\
   d
 >>
}
>>

saying that the two voices are maintained alive, does that
mean that voices are matches by name only ? The fact that
two "voices" are alive simultaneously under the name "1" is enough
for lilypond to consider them as part of the same logical voice ? Hence,
allowing them to be slurred, etc ?

Thanks for the help. As usual, support on this mailing list is
fantastic (and "as usual" is more of a compliment then "fantastic" :-) )

Darius.


Mats Bengtsson wrote:

Did you try to just add the slur in the existing example?
As long as there are no notes between the two << ... \\ ... >>,
you can do
  <<
     a4(
    \\
     b4
  >>
  <<
    c4)
    \\
    d4
  >>

Since the two Voice contexts created by this construct are called
"1" and "2", respectively, the both ends of the slur will actually
appear in the same Voice context, so it works.

If you have some music between the chords, these temporary contexts
will not survive the gap, but you can make it work using the following
trick:
\version "2.2"
\score{
\new Staff\notes\relative c' <<
\context Voice = "1" {s1*2}
\context Voice = "2" {s1*2}
\new Voice {
 c4 d e f
<<
     a(
    \\
     b
  >>
  c
  <<
    c)
    \\
    d
  >>
}
>>
}

The purpose of the \context Voice = "1" {s1*2} is just to keep the
voice alive long enough.

   /Mats

address@hidden wrote:

Hi,
I just wondered how I could manage to put a slur between the
a and the c in a fragment such as:

{
  <
     a4
    \\
     b4   >

  <     c4
    \\
    d4
  >
}

I understand of course that by restructuring the fragment as
<   { a4 ( c4)}
\\
  {b4 d4}


the problem would be solved, but I need to add dozens of slurs to a score where the construct as described above
occurs all the time, so restructuring it entirely is not really an
option.

On the other hand, the < \\ > are not written manually, they are
generated by the expansion of M4 macros, so that a solution which
would connect the upper and lower voices of adjacent parralel blocks
would do the trick, no matter how arcane the syntax: it would have to happen in the macro definition only.


I use Cygwin 2.2.2.

Thank you !

Darius.





_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user








reply via email to

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