lilypond-user
[Top][All Lists]
Advanced

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

RE: misplaced rest


From: Mark Stephen Mrotek
Subject: RE: misplaced rest
Date: Mon, 5 Nov 2012 11:37:20 -0800

Mr. Payne:

 

Thank you for your reply and instructions. You mentioned a detail that I did not follow. By trial and error I got the same done.

 

Mark

 

From: address@hidden [mailto:address@hidden On Behalf Of Nick Payne
Sent: Monday, November 05, 2012 3:56 AM
To: address@hidden
Subject: Re: misplaced rest

 

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]