lilypond-user
[Top][All Lists]
Advanced

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

Re: A staff change and phrasing slur problem


From: Urs Liska
Subject: Re: A staff change and phrasing slur problem
Date: Tue, 14 Feb 2017 15:34:14 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0



Am 14.02.2017 um 15:22 schrieb Hans Åberg:

On 14 Feb 2017, at 14:37, Urs Liska <address@hidden> wrote:

The actual problem is that the notes are encapsulated in different Voice
expressions and therefore can't be connected by spanners such as slurs
or \< \! etc.

When you write
c' << { d'' } // { d' } >> c'
LilyPond creates two temporary voices for the d-s (and make them
\voiceOne and \voiceTwo implicitly), while the original voice is
suspended during the polyphonic section.

In order to connect notes from inside the polyphonic section to the
outside you'd write

c' << { \voiceOne d'' } \new Voice { \voiceTwo d' } >> \oneVoice c'

This way the main voice is continued through c' d'' c' while only the d'
is wrapped in an implicit temporary voice.

I have similar problem in the code below, wanting the last note ef4 of the first measure to be tied to the one in the following measure. I could not make your suggestion work.

Well, the ef4 in the first bar is in the *lower* voice while the ones in the second bar are in the *upper* voice. In order to tie these notes both have to be in the upper voice. You can achieve that by either somehow moving the music in the first bar in the upper voice, adding a hidden ef in the upper voice (maybe the easiest workaround) or continue the polyphonic section into the second measure, using skips in the upper voice (if that is possible in the actual case).

HTH
Urs


----
\version "2.19.45"

\language "english"

music = \new Staff = main {
  \tempo 4 = 176
  \time 12/8
  \set beatStructure = #'(3 2 2 3 2)

  \override TupletNumber.text = #tuplet-number::calc-fraction-text

  \key c \minor

  \relative c'' {
    \tuplet 2/3 {ef16 d ef f}  d8\prall c  d bf
       << {\voiceOne \override TupletNumber.text = #tuplet-number::calc-fraction-text
          {\tuplet 2/3 {c8\trill ~ c16 g} c8-. r8 |}}
       \new Voice
          {\voiceTwo \override TupletNumber.text = #tuplet-number::calc-fraction-text
          {\tuplet 2/3 {a16 bf c d} ef4\mordent ~ |}} >> \voiceTwo
  }

  \bar "||"

  \relative c'' {
    ef4. ~ ef4 ~ ef4 ~ ef4. ~ ef4 |
  }

  \bar "||"
}

\score {
  \music
\layout {}
}
----


-- 
address@hidden
https://openlilylib.org
http://lilypondblog.org

reply via email to

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