[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reconnecting voices in Lilypond
From: |
Mats Bengtsson |
Subject: |
Re: Reconnecting voices in Lilypond |
Date: |
Wed, 06 Oct 2004 10:51:38 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040803 |
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
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: address@hidden
WWW: http://www.s3.kth.se/~mabe
=============================================