Jean,

 

Attached is a MWE

Want stem to connect c and a, also c an g.

Thank you for your kind attention.

 

Mark

 

From: Jean Abou Samra [mailto:[email protected]] 
Sent: Wednesday, March 22, 2023 4:41 PM
To: Mark Stephen Mrotek <[email protected]>; 'lilypond-user' 
<[email protected]>
Subject: Re: cross-staff stems

 

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

Hello!
 
My piano score has four voices each coded as a variable.
At a single place I want a cross stem between the tenor and alto voice.
The directions at
https://lilypond.org/doc/v2.16/Documentation/notation/common-notation-for-keyboards#cross_002dstaff-stems
were followed  yet the stems were not created.
 
The snippet for the above directions does not use variables yet imbeds the 
notation within the \PianoStaff.
Does imply that cross-staff stem is available only in that format?
 
Thank you for your kind attention,

First, the documentation page you link to is for LilyPond 2.16, which is an 
ooold version (more than 10 years old). Google search results can be 
problematic in that regard; it often works to replace the version number with 
your version number in the URL, in this case replacing 2.16 with 2.24, the 
current stable version. That said, this snippet does still work in 2.24 
unchanged.

Do you have an example allowing to reproduce your problem? (No, whether you 
structure your input with variables won't make a difference.)

\version "2.22.2"

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

ArightTwo = \relative c'' {
  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
  }
  }
  }

Reply via email to