lilypond-user
[Top][All Lists]
Advanced

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

RE: Chord \crossStaff question


From: Mark Stephen Mrotek
Subject: RE: Chord \crossStaff question
Date: Tue, 10 Jul 2018 12:59:43 -0700

Menu Jackues

 

Perhaps this can direct you

http://lilypond.org/doc/v2.18/Documentation/notation/common-notation-for-keyboards#cross_002dstaff-stems

 

Mark

 

From: lilypond-user [mailto:address@hidden On Behalf Of Menu Jacques
Sent: Tuesday, July 10, 2018 12:49 PM
To: Lilypond-User Mailing List <address@hidden>
Cc: Menu Jacques <address@hidden>
Subject: Chord \crossStaff question

 

Hello folks,

 

How can I modify the example below in order to obtain this score, with the staff change on the last two chords:

 

 

instead of that one:

 

 

The example in the docs didn’t give me the solution.

Thanks for your help!

 

JM

 

%%%%%%%%%%%

 

\version "2.19.82"

\version "2.19.58"
% automatically converted by musicxml2ly from CrossStaffChord.xml_inter.xml


PartPOneVoiceOne =  \relative c' {
  \clef "treble" \key c \major \time 4/4 | % 1
  R1 \bar "|."
}

PartPOneVoiceTwo =  \relative c {
  \clef "bass" \key c \major \time 4/4
  <c e g c>8 [
  \change Staff="1"
  <c' e g>8
  \change Staff="2"
  <c, e g c>8
  \change Staff="2"
  <g' c e g>8
  ]
  \change Staff="2"
  r2 \bar "|."
}


% The score definition
\score {
  <<

    \new PianoStaff
    <<

      \context Staff = "1" <<
        \mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
        \context Voice = "PartPOneVoiceOne" {  \PartPOneVoiceOne }
      >> \context Staff = "2" <<
        \mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
        \context Voice = "PartPOneVoiceTwo" {  \PartPOneVoiceTwo }
      >>
    >>

  >>
  \layout {}
  % To create MIDI output, uncomment the following line:
  %  \midi {\tempo 4 = 100 }
}


reply via email to

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