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: Wed, 11 Jul 2018 15:06:58 -0700

Menu Jacques

 

Speaking for myself, the second example (with the notes compact) is easier to read/decipher.

 

Mark

 

From: Menu Jacques [mailto:address@hidden
Sent: Wednesday, July 11, 2018 1:05 AM
To: Mark Stephen Mrotek <address@hidden>
Cc: Menu Jacques <address@hidden>; Lilypond-User Mailing List <address@hidden>
Subject: Re: Chord \crossStaff question,

 

 

 

Hello Simon & Mark,

 

The measure in my OP is the second one of 43d-MultiStaff-StaffChange.xml from the Lily unofficial test suite.

 

The cross staff chord can actually be obtained with the code below, in which the upper part of the last two chords has been moved to the first staff ‘by hand' and rests set up accordingly, giving:

 

musicxml2ly produces ‘natively’:

 

 

 

and Finale 2014 produces:

 

 

Is one among the three scores above clearly preferable for a keyboard player? 

And what if moving notes to the first staff conflicts with other music already present there?

 

I have to ask such newbie questions since I’m no keyboard player...

 

JM

 

%%%%%%%%%%%%%

 

\version "2.19.58"

% automatically converted by musicxml2ly from 43d-MultiStaff-StaffChange.xml_inter.xml

 

 

\header {

  texidoc =

  "Staff changes in a piano staff. 

          The voice from the second staff has some notes/chords on the first 

          staff. The final two chords have some notes on the first, some on 

          the second staff."

}

 

\layout {

  \context {

    \Score

    skipBars = ##t

    autoBeaming = ##f

  }

  \context {

    \PianoStaff

    \consists #Span_stem_engraver

  }

}

 

 

PartPOneVoiceOne =  \relative c' {

  \clef "treble" \key c \major \time 4/4

 

  R1 | % 2

  r4

  \once\stemDown

  %\autoBeamOff

  \crossStaff {

    <c>8

  }

  \once\stemDown

  \crossStaff {

    <c e g>8

  }

  r2

  \bar "|."

}

 

PartPOneVoiceTwo =  \relative a {

  \clef "bass" \key c \major \time 4/4 | % 1

 % \showStaffSwitch

  a8 [

  \change Staff="1"

  e'8

  \change Staff="2"

  a,8

  \change Staff="1"

  e'8 ] c'8 [ e,8

  \change Staff="2"

  a,8 b'8 ] % 2

  <c,, e g c>8 [

  \change Staff="1"

  <c' e g>8

  \change Staff="2"

  <c, e g>8

  \change Staff="2"

  g'8 ]

  \change Staff="2"

  r2 \bar "|."

}

 

 

% The score definition

\score {

  <<

    \new PianoStaff

    <<

      \context Staff = "1" <<

        \context Voice = "PartPOneVoiceOne" {  \PartPOneVoiceOne }

      >>

 

      \context Staff = "2" <<

        \context Voice = "PartPOneVoiceTwo" {  \PartPOneVoiceTwo }

      >>

    >>

  >>

 

  \layout {}

  % To create MIDI output, uncomment the following line:

  %  \midi {\tempo 4 = 100 }

}

 

PartPOneVoiceOneBIS =  \relative c' {

  \clef "treble" \key c \major \time 4/4

 

  R1 | % 2

  r4

  \once\stemDown

  %\autoBeamOff

  \crossStaff {

    <c>8

  }

  \once\stemDown

  \crossStaff {

    <c e g>8

  }

  r2

  \bar "|."

}

 

 



Le 11 juil. 2018 à 00:35, Mark Stephen Mrotek <address@hidden> a écrit :

 

Menu Jacques,

 

Trying to compile your code.

Not successful for the moment.

Shall try later tonight.

 

Mark

 

From: Menu Jacques [mailto:address@hidden] 
Sent: Tuesday, July 10, 2018 2:17 PM
To: Mark Stephen Mrotek <address@hidden>
Cc: Menu Jacques <address@hidden>; Lilypond-User Mailing List <address@hidden>
Subject: Re: Chord \crossStaff question

 

Hello Mark,

 

That’s the example I was mentioning.

 

But in the image from Finale 2014, all pitched notes occur in the second staff, and I tried to achieve the same.

 

JM 




Le 10 juil. 2018 à 21:59, Mark Stephen Mrotek <address@hidden> a écrit :

 

Menu Jackues

 

Perhaps this can direct you

 

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:

 

<image001.png>

 

instead of that one:

 

<image002.png>

 

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



_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user

 


reply via email to

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