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: lilypond-user-bounces+carsonmark=ca.rr....@gnu.org
[mailto:lilypond-user-bounces+carsonmark=ca.rr....@gnu.org] On Behalf Of
Nick Payne
Sent: Monday, November 05, 2012 3:56 AM
To: lilypond-user@gnu.org
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 { }
}

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to