Hi Martin,
Thank you very much for helping. It works well. I learn Lilypond by
doing and by helps from all of you.
Thanks again.
Best,
Jinsong
On 2019/11/30 9:07, Martin Wadsack wrote:
Hi Jinsong,
to get the result you want, you have to give a name to each staff, e.g.
\new Staff = "upper" << etc.
Then you have to use \change to tell LilyPond in which staff a specific voice
shall be engraved.
\relative {
\new PianoStaff <<
\new Staff = "upper" {
\key g \major
\time 3/4
<<
{
<g b e>8 e'16^. \p fis^.
g8^. g16^. a^. b8^.
<e, g b e>^.
}
>>
}
\new Staff = "lower" {
\clef bass
\key g \major
\time 3/4
<e,, b'>8 g'16-. b-. e8-.
\change Staff = "upper" e16_. fis_.
\autoBeamOff \stemDown g8
\change Staff = "lower" \stemNeutral <e,, e'>8-.
}
>>
}
Kind regards,
Martin
Am Freitag, 29. November 2019, 23:17:00 CET schrieb Jinsong Zhao:
Hi there,
I don’t know how to implement the cross staff as you see in the attached
figure. Another question is how to tweak the staccato position?
What I have tried is following:
Thanks a lot in advance.
Best,
Jinsong
\version "2.19.83"
\layout {
\context {
\PianoStaff
\consists #Span_stem_engraver
}
}
\relative {
\new PianoStaff <<
\new Staff {
\key g \major
\time 3/4
<<
{
<g b e>8 e'16-. \p fis-.
g8-. g16-. a-. b8-.
<e, g b e>-.
}
\\
{
s4.
\autoBeamOff
\crossStaff { e16 fis }
\autoBeamOn g8 s
}
}
\new Staff {
\clef bass
\key g \major
\time 3/4
<e,, b'>8 g'16-. b-. e8-.
e16-. fis-.
s8 <e,, e'>8-.
}
}