I can't figure out how to make crossStaff work when one component
has been displaced by the interval of a second. I came up with a
hack (a hidden note) in example 3, but it has the side effect of
leaving the accidental (when there is one) rather far over.
Is there a better way?

Also, in particular, why is the f4 displaced in example 2,
seeing as I have shifted the <d'' g'> well out of the way?

Cheers,
David.
\version "2.19.59" \header { tagline = ##f }
\layout {
  \context {
    \PianoStaff
    \consists #Span_stem_engraver
    \omit TimeSignature
  }
}
middle =  { \time 3/4 \voiceTwo \autoBeamOff \crossStaff { f'4 e'8 d' e'4 } }
\new PianoStaff <<
  \new Staff <<
    \new Voice { \voiceOne <d'' g'>4 g'8 f' g'4 }
    \new Voice { \middle }
  >>
  \new Staff <<
    \new Voice { \clef bass \voiceTwo \once \override NoteColumn.X-offset = 
#1.3 cis'4 cis'8 cis' cis'4 }
  >>
>>
\new PianoStaff <<
  \new Staff <<
    \new Voice { \voiceOne
                 \once \override NoteColumn.force-hshift = #-3 <d'' g'>4
                 g'8 f' g'4 }
    \new Voice { \middle }
  >>
  \new Staff <<
    \new Voice { \clef bass \voiceTwo cis'4 cis'8 cis' cis'4 }
  >>
>>
\new PianoStaff <<
  \new Staff <<
    \new Voice { \voiceOne <d'' g'>4 g'8 f' g'4 }
    \new Voice { \middle }
  >>
  \new Staff <<
    \new Voice { \clef bass \voiceOne \hideNotes d'4 }
    \new Voice { \clef bass \voiceTwo cis'4 cis'8 cis' cis'4 }
  >>
>>

Attachment: crossstaff.pdf
Description: Adobe PDF document

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to