lilypond-user
[Top][All Lists]
Advanced

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

Cross staff stem breaks


From: Pierre Perol-Schneider
Subject: Cross staff stem breaks
Date: Sun, 11 Sep 2016 12:32:31 +0200

Here's what I propose:
\version "2.18.2"

\layout {
  \context {
    \PianoStaff
    \consists #Span_stem_engraver
    connectArpeggios = ##t
  }
}

{
  \new PianoStaff <<
    \new Staff \relative c'' {
      \key b \major
      \time 3/4
      <<
        \new Voice {
          \voiceTwo
          \shiftOnn
          <e b' e>2 <cis e fis cis'>4
          <dis fis dis'>2
        }
        \new Voice {
          \voiceFour
          \override Stem.cross-staff = ##t
          \override Stem.length = #14
          <e, b'>2\arpeggio fis4\arpeggio
          <fis b>2\arpeggio
        }
      >>
    }
    \new Staff {
      \key b \major
      \clef bass
      \time 3/4
      \new Voice {
        \voiceFour
        \autoBeamOff
        \crossStaff {
          %% does not work (not surprising):
          %\override NoteColumn.force-hshift = #1
          %% workaround:
          \override NoteHead.X-offset = #.75
          \override Stem.X-offset = #.75
          \override PianoStaff.Arpeggio.extra-offset = #'(-.75 . 0)
          <gis b>2\arpeggio ais4\arpeggio
          b2\arpeggio
          \revert NoteHead.X-offset
          \revert Stem.X-offset
          \revert PianoStaff.Arpeggio.extra-offset
        }
        \autoBeamOn
      }
    }
  >>
}

Question:
Is there a way to reach the picture without my workaround?

TIA,
Pierre

reply via email to

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