lilypond-user
[Top][All Lists]
Advanced

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

Re: misplaced rest


From: Nick Payne
Subject: Re: misplaced rest
Date: Mon, 05 Nov 2012 19:55:45 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2

On 5/11/2012 7:00 AM, Mark Stephen Mrotek wrote:

Fellow Users:

 

Please look at this:

 

\version "2.16.0"

 

global = {

  \key c \major

  \numericTimeSignature

  \time 3/8

}

bassVoice = \relative c {

  \global

<< { \stemDown g4.} \\ { \override Stem #'direction = #UP r8 < c e g > <d f g > } >>

}

\score {

  \new Staff  { \clef bass }

  \layout { }

}

 

The eighth rest should be above the “g.” What did I incorrectly code?


When creating voices implicitly with the << {...} \\ {...} >> structure, the first voice context is "1" and the second "2". "1" is considered the upper voice and has stems up and rests above, "2" has stems down and rests below. So reverse the two contexts, as below. But it would be better to explicitly create the voices. See http://lilypond.org/doc/v2.16/Documentation/notation/multiple-voices:

\version "2.16.0"

global = {
  \key c \major
  \numericTimeSignature
  \time 3/8
}

bass = \relative c {
  <<
    { r8 <c e g> <d f g> }
    \\
    { g,4. }
  >>
}

\score {
  \new Staff {
    \clef bass
    \global
    \bass
  }
  \layout { }
}

reply via email to

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