lilypond-user
[Top][All Lists]
Advanced

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

Re: cross-staff stems


From: Jean Abou Samra
Subject: Re: cross-staff stems
Date: Thu, 23 Mar 2023 01:29:36 +0100
User-agent: Evolution 3.46.4 (3.46.4-1.fc37)

Le mercredi 22 mars 2023 à 17:24 -0700, Mark Stephen Mrotek a écrit :

Jean,
 
Attached is a MWE
Want stem to connect c and a, also c an g.
Thank you for your kind attention.

This works for me:

\version "2.22.2"

ArightOne = \relative c'' {
  f4 (e8) s8
}

ArightTwo = \relative c'' {
  \crossStaff { a4 g16 }
}

AleftOne = \relative c' {
  s4.
}

AleftTwo = \relative c' {
  \crossStaff {
  c4~ c16} <bes d> <a c> <g bes>
}

\score {
  \new PianoStaff
  <<
    \new Staff = "right" << \ArightOne \\ \ArightTwo >>
    \new Staff = "left" { \clef bass << \AleftOne \\ \AleftTwo >> }
    >>
  \layout {
    indent = 0
    \context {
    \PianoStaff
    \consists #Span_stem_engraver
  }
  }
  }

My guess is that you put \crossStaff in the lower staff rather than in the upper staff. It must be put on the voice where the stems need to extend to another voice.

Best,

Jean

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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