lilypond-user
[Top][All Lists]
Advanced

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

Re: how to \crossStaff?


From: Jinsong Zhao
Subject: Re: how to \crossStaff?
Date: Sat, 30 Nov 2019 14:01:50 +0800
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2

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-.
     }

}







reply via email to

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