lilypond-user
[Top][All Lists]
Advanced

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

Re: Phrasing slurs on two-voice stave


From: Simon Albrecht
Subject: Re: Phrasing slurs on two-voice stave
Date: Mon, 22 Jan 2018 20:55:06 +0100

On 22.01.2018 13:09, N. Andrew Walsh wrote:
What I'm trying to do is ensure that the phrasing slur extends to the last note of the bar. Problem is, the client wants the 16th notes on the lower voice, but the slur above. I've been using \stemDown and \stemUp to flip the stem directions, but this causes problems, as here, where the slur collides with the other voice's stems. Is there a more elegant/effective way of doing this? It also has to work for phrasing slurs across several measures.

Never use \stemDown and \stemUp for overriding the stem direction of an entire voice. You get exactly the same output as for the code you posted from this:

%%%%%%%%%%%
\version "2.19.80"
\relative c {
  \clef bass
  \time 4/8
  <<
    { d8. f16 d4 }
    \\
    { d16^\( f a f d a' f d\) }
  >>
}
%%%%%%%%%%

I would consider the following a semantically appropriate solution, though unfortunately the PhrasingSlur shape needs to be tweaked:

%%%%%%%%%%
\score {
  \relative c {
    \clef bass
    \time 4/8
    <<
      { d8.\=1 \( f16 d4 }
      \\
      { d16 f a f d a' f d\=1 \) }
    >>
  }
  \layout {
    \context {
      \Staff
      \consists "Phrasing_slur_engraver"
      \override PhrasingSlur.avoid-slur = #'outside
      \mergeDifferentlyDottedOn
    }
    \context {
      \Voice
      \remove "Phrasing_slur_engraver"
    }
  }
}
%%%%%%%%%%%

Best, Simon



reply via email to

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