lilypond-user
[Top][All Lists]
Advanced

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

Re: Arrow on arpeggio across voices possible?


From: Xavier Scheuer
Subject: Re: Arrow on arpeggio across voices possible?
Date: Tue, 27 Jul 2010 10:49:09 +0200

2010/7/27 Nick Payne <address@hidden>:

> The following doesn't add the arrow to the arpeggio. Can it be done?
>
> \version "2.13.28"
>
> \new Staff \with {
>  \consists "Span_arpeggio_engraver"
> }
> \relative c' {
>  \set Staff.connectArpeggios = ##t
> <<
>    \arpeggioArrowUp
>    { <e' g>4\arpeggio <d f> <d f>2 } \\
>    { <d, f>2\arpeggio <g b>2 }
>>>
> }

Hi!

This can be done.
If you start from the definition of "arpeggioArrowUp"
(in "ly/property-init.ly") but apply it to the Staff context, then it
adds the arrow to the arpeggio.

Cheers,
Xavier


\version "2.13.28"

\new Staff \with {
  \consists "Span_arpeggio_engraver"
}
{
  \relative c' {
    \set Staff.connectArpeggios = ##t
    <<
      % Equivalent to "arpeggioArrowUp", but applied to Staff
      \revert Staff.Arpeggio  #'stencil
      \revert Staff.Arpeggio #'X-extent
      \override Staff.Arpeggio  #'arpeggio-direction = #UP
      { <e' g>4\arpeggio <d f> <d f>2 } \\
      { <d, f>2\arpeggio <g b>2 }
    >>
  }
}


--
Xavier Scheuer <address@hidden>



reply via email to

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