[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Connected arpeggio between voices
From: |
Mats Bengtsson |
Subject: |
Re: Connected arpeggio between voices |
Date: |
Fri, 02 Dec 2005 09:56:05 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511 |
The correct syntax is
\context Staff = Guitar \with{...} {...}
/Mats
Gilles wrote:
...
But how can I achieve the same result using \context instead of \new ?
[I need the capacity to refer to a *named* context (because I set things
differently in different files).]
I tried the following (but that doesn't work, although it seems to be a
reasonable trial):
%-----
upper = \relative c' {
e'1\arpeggio |
}
lower = \relative c' {
e1\arpeggio |
}
guitarStaffTwo = \context Staff \with { \consists Span_arpeggio_engraver } =
"Guitar" {
\set Staff.connectArpeggios = ##t
<<
\new Voice { \voiceOne \upper }
\new Voice { \voiceTwo \lower }
>>
}
\score {
\guitarStaffTwo
\layout {}
}
%-----
Gilles
_______________________________________________
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
=============================================