lilypond-user
[Top][All Lists]
Advanced

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

RE: cross-staff stems


From: Mark Stephen Mrotek
Subject: RE: cross-staff stems
Date: Wed, 22 Mar 2023 19:03:44 -0700

Leo,

Thanks for the code and the advice.

Mark

-----Original Message-----
From: Leo Correia de Verdier [mailto:leo.correia.de.verdier@gmail.com] 
Sent: Wednesday, March 22, 2023 5:43 PM
To: Mark Stephen Mrotek <carsonmark@ca.rr.com>
Cc: Jean Abou Samra <jean@abou-samra.fr>; lilypond-user <lilypond-user@gnu.org>
Subject: Re: cross-staff stems

Like this?

%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.22.2"

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

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

AleftOne = \relative c' {
  s4.
}

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

I moved the \crossStaff to the right hand two, the voice whose stems are 
actually crossing over into the other staff. Otherwise take care that the stems 
to be connected point in the same direction, they don’t do automatically and 
don’t work unless they do.

HTH
/Leo

> 23 mars 2023 kl. 01:24 skrev Mark Stephen Mrotek <carsonmark@ca.rr.com>:
> 
> 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:jean@abou-samra.fr] 
> Sent: Wednesday, March 22, 2023 4:41 PM
> To: Mark Stephen Mrotek <carsonmark@ca.rr.com>; 'lilypond-user' 
> <lilypond-user@gnu.org>
> 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.)
> 




reply via email to

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