Joel:

Does this work for you? (see attachment)

Mafrk

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Joel 
C. Salomon
Sent: Tuesday, September 08, 2015 1:48 PM
To: LilyPond Users <[email protected]>
Subject: Voice split across staves?

I’m trying to re-create John Crook’s original score to Peter Pan (yes, it’s in 
the public domain) for the Mutopia project, and I’m finding that my lack of 
musical education is getting in the way.

I’m trying to set “Pipe with the Ostrich”, as visible at 
<https://books.google.com/books?id=J-wQAAAAYAAJ&pg=PT43>; my current effort is 
at 
<https://github.com/jcsalomon/MutopiaProject/blob/peterpan/ftp/CrookJ/PeterPan/PP06_Pipe_with_the_Ostrich/PP06_Pipe_with_the_Ostrich.ly>.

While critiques of my Lilypond style are also welcome, my specific question is 
how best to show what seems to be a voice split across staves.  The following 
example should show what I mean: I’ve set the piece’s first bar twice, the 
first time as seems logical to me, the second time as it appears in the printed 
score:

    \version "2.18.2"
    \language "english"
    global = {
      \key d \major
      \time 2/4
    }

    upperStaff = \relative c'' {
      d8.         e16 d8      b8      |
    << { \voiceOne
      d8.         e16 d8      b8      |
    } \new Voice { \voiceTwo
      fs4             fs8     fs      |
    } >>
    }

    lowerStaff = \relative c {
      <d a' fs'>4     q8      q       |
      <d a'>4         q8      q       |
    }

    \score {
      \context PianoStaff <<
        \new Staff = "upper" { \clef treble \global \upperStaff }
        \new Staff = "lower" { \clef bass \global \lowerStaff }
      >>
      \layout{ }
      \midi { }
    }

The “Cross-staff stems” section in the documentation shows a way to draw the 
chords so they cross the gap, but remain connected. One one hand, this is 
different from the printed source; on the other hand, this might be better 
style. On the gripping hand, I can’t see how to apply the sample code to music 
organized as I’ve been doing it.

Could somebody please point me in the right direction?

—Joel C. Salomon

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user
    \version "2.18.2"
    \language "english"
    global = {
      \key d \major
      \time 2/4
    }

    upperStaff = \relative c'' {
      << { d8. e16 d8 b8 | d8. e16 d8 b8 } \\
         { fs4 fs8 fs fs4 fs8 fs } >>
    }

    lowerStaff = \relative c {
      <d a' >4     q8      q       |
      <d a'>4         q8      q       |
    }

    \score {
      \context PianoStaff <<
        \new Staff = "upper" { \clef treble \global \upperStaff }
        \new Staff = "lower" { \clef bass \global \lowerStaff }
      >>
      \layout{ }
      \midi { }
    }
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to