lilypond-user
[Top][All Lists]
Advanced

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

Re: Rest placement following use of Temporary Polyphonic Context is wron


From: Nick Payne
Subject: Re: Rest placement following use of Temporary Polyphonic Context is wrong
Date: Wed, 02 Apr 2014 17:36:53 +1100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

On 02/04/14 16:22, Guy Stalnaker wrote:
\version "2.16.0"
\language "english"
\header {
  title = "Rest placement error?"
  subtitle = "After Temporary Polyphonic Context"
  subsubtitle = "Rests appear as if for upper voice"
}
global = {
  \key c \major
  \time 3/4
}
sopranoVoice =  {
  \global
  \dynamicUp
  \partial 4 r4 |
  r2.^\markup {Rests where they are supposed to be} |
  r |
  r |
  r \bar "||"
  g'4 \mp ^\markup {Calmly} a'8 a' b'4 |
  c''4. d''8 c''4 |
  b'8[ g'] g'[ b'] d''4 |
  e''8 c'' d''2 |
  << \voiceOne { d''4 g''8[ fs''] e''( d'') |
               c''8 c'' d''4( e'') |
               f''4 a' c'' |
               d''2 c''4 |
               c''2. ~ |
               c''2. }
   \new Voice { \voiceTwo d''4 ^\markup { TPC starts here} b'8 a' g'4 |
                a'8 a' b'4( c''8 b') |
                a'4 f' a' |
                b'2 c''4 |
                c''2. ~ |
                c''2. } >> \voiceOne |
  r ^\markup {Error here - acts like there are two voices!} |
  r |
  r |
  r |
  r |
}
sopranoVoicePart = \new Staff \with {
  instrumentName = "S."
  midiInstrument = "clarinet"
} { \sopranoVoice }
\score {
  <<
    \sopranoVoicePart
  >>
  \layout { }
  \midi { }
}

You need to use \oneVoice rather than \voiceOne at the end of the polyphonic section. That fixes the problem.



reply via email to

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