Connected arpeggio between voices

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Connected arpeggio between voices

Gilles Sadowski
Hi.

Is it possible to connect notes in different voices
with an arpeggio symbol?  E.g. (which doesn't work):

%-----
\version "2.6.3"

upper = \relative c' {
  e'1\arpeggio |
}

lower = \relative c' {
  e1\arpeggio |
}

guitarStaff = \context Staff = "Guitar" {
  <<
    \new Voice { \voiceOne \upper }
    \new Voice { \voiceTwo \lower }
  >>
}

\score {
  \guitarStaff
  \layout {}
}
%-----



Thanks,
Gilles


_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Connected arpeggio between voices

Mats Bengtsson-6
See http://lists.gnu.org/archive/html/lilypond-user/2004-08/msg00236.html
for a solution that hopefully can be upgraded to version 2.6.

    /Mats

Gilles wrote:

> Hi.
>
> Is it possible to connect notes in different voices
> with an arpeggio symbol?  E.g. (which doesn't work):
>
> %-----
> \version "2.6.3"
>
> upper = \relative c' {
>   e'1\arpeggio |
> }
>
> lower = \relative c' {
>   e1\arpeggio |
> }
>
> guitarStaff = \context Staff = "Guitar" {
>   <<
>     \new Voice { \voiceOne \upper }
>     \new Voice { \voiceTwo \lower }
>   >>
> }
>
> \score {
>   \guitarStaff
>   \layout {}
> }
> %-----
>
>
>
> Thanks,
> Gilles
>
>
> _______________________________________________
> lilypond-user mailing list
> [hidden email]
> 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: [hidden email]
        WWW: http://www.s3.kth.se/~mabe
=============================================


_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Connected arpeggio between voices

Gilles Sadowski

> See http://lists.gnu.org/archive/html/lilypond-user/2004-08/msg00236.html
> for a solution that hopefully can be upgraded to version 2.6.
>

The following works:

%-----
upper = \relative c' {
  e'1\arpeggio |
}

lower = \relative c' {
  e1\arpeggio |
}

guitarStaffOne = \new Staff \with { \consists Span_arpeggio_engraver } {
  \set Staff.connectArpeggios = ##t
  <<
    \new Voice { \voiceOne \upper }
    \new Voice { \voiceTwo \lower }
  >>
}

\score {
  \guitarStaffOne
  \layout {}
}
%-----


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
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Connected arpeggio between voices

Mats Bengtsson-6
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
>[hidden email]
>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: [hidden email]
        WWW: http://www.s3.kth.se/~mabe
=============================================



_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user