lilypond-user
[Top][All Lists]
Advanced

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

Re: how to \crossStaff?


From: Martin Wadsack
Subject: Re: how to \crossStaff?
Date: Sat, 30 Nov 2019 02:07:05 +0100
User-agent: KMail/5.2.3 (Linux/4.9.0-11-amd64; KDE/5.28.0; x86_64; ; )

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


-- 
Mag. Martin Wadsack, BBBakk.art.

Stiftskapellmeister Stift Altenburg
Abt Placidus Much-Straße 1
3591 Altenburg
+43(0)664 80 11 44 25
address@hidden
www.stift-altenburg.at
www.stiftsmusik-altenburg.at
www.altenburger-saengerknaben.at

Oberlaaer Straße 31
1100 Wien
0699 11 94 92 86
address@hidden
www.martinwadsack.at



reply via email to

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