bug-lilypond
[Top][All Lists]
Advanced

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

Re: Slurs between different voices


From: Xavier Scheuer
Subject: Re: Slurs between different voices
Date: Fri, 16 Mar 2012 15:41:16 +0100

On 16 March 2012 13:51, Francisco Vila <address@hidden> wrote:
>
> I attach two. Op25-n3 is more obvious. Its code (w/o slur) would be
> something like
>
> \version "2.15.30"
> \new Staff \relative f {
>  <<
>    \new Voice { \voiceOne d''16 c8. g16 f8. }
>    \new Voice { \voiceTwo f8[ f'] c,[ c'] }
>  >>
> }
>
>
> A comfortable syntax would be \startSlur #name ... \endSlur #name like in
>
>  <<
>    \new Voice { \voiceOne d''16 \startSlur #A  c8. }
>    \new Voice { \voiceTwo f,8[ f']  \endSlur #A }
>  >>
>
> A #name would be reusable if the slur has ended in a previous column.
> Otherwise, new names everywhere would be needed.

Hi Francisco,

Simply moving the "Slur_engraver" from Voice level to Staff level does
what you want, IIUC.

%%%% Snippet

\version "2.15.33"

\score {
  \new Staff {
    \time 2/4
    <<
      \new Voice {
        \relative c'' {
          \voiceOne
          d16( c8. a16( g8.
        }
      }
      \new Voice {
        \relative c'' {
          \voiceTwo
          g8 g') c,,8 c'8)
        }
      }
    >>
  }
  \layout {
    \context {
      \Voice
      \remove "Slur_engraver"
      \remove "Slur_performer"
    }
    \context {
      \Staff
      \consists "Slur_engraver"
      \consists "Slur_performer"
    }
  }
}

%%%% End of snippet

Cheers,
Xavier

-- 
Xavier Scheuer <address@hidden>



reply via email to

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