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
lilypond-user@gnu.org
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: [EMAIL PROTECTED]
        WWW: http://www.s3.kth.se/~mabe
=============================================



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

Reply via email to