lilypond-user
[Top][All Lists]
Advanced

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

Re: dot placement with staff switch


From: Kieren MacMillan
Subject: Re: dot placement with staff switch
Date: Wed, 12 Mar 2014 17:18:59 -0400

Hi Stan,

> I’m stuck as to how to correct the placement of the dot in the code and 
> attached example.

You should use Lilypond’s built-in voicing commands to your advantage, e.g.

\version "2.19.3"
\language "english"

global = {
  \key f \major
  \time 4/4
}

rightOne = \relative c' {
  r2 r4 f |
  f g a bf |
}

rightTwo = \relative c' {
  bf4 e \showStaffSwitch f2 \change Staff = "left" | 
  \voiceOne c2. d4 |
}

leftOne = \relative c' {
  bf1 |
  a |
}

leftTwo = \relative c {
  d1 |
  f1
}

\score {
  \new PianoStaff  <<
    \new Staff = "right" << \global << { \voiceOne \rightOne } \\ { \voiceTwo 
\rightTwo } >> >>
    \new Staff = "left" << \clef bass \global << { \voiceOne \leftOne } { 
\voiceTwo \leftTwo } >> >>
  >>
}

That way, you can avoid all of the manual shifts and stem direction changes, 
etc.

Hope this helps!
Kieren.


reply via email to

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