lilypond-user
[Top][All Lists]
Advanced

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

Cross-staff chords question


From: Menu Jacques
Subject: Cross-staff chords question
Date: Fri, 6 Apr 2018 23:11:41 +0200

Hello folks,

Under section « Cross-staff chords - beaming problems workaround » in the LP Snippets, one can find a way to obtain chords spanning two staves without any « <...> » chord in fact:




I’d like to keep the standard chord notation to obtain:

and currently only get (see last two chords):


Tried to add a staff change after the first g’ inside the last chord (in red below), but that is not syntactically correct.

Is there a way in recent LP versions to make that approach work? That would be much more direct that the snippet mentioned above.

Thanks for your help!

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
        }
    }
PartPOneVoiceOne =  \relative c' {
    \clef "treble" \key c \major \time 4/4 s1 | % 2
    R1 \bar "|."
    }

PartPOneVoiceTwo =  \relative a {
    \clef "bass" \key c \major \time 4/4 | % 1
    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 ] <c,, e g c>8 [ \change
    Staff="1" <c' e g>8 \change Staff="2" <c, e g c>8 \change Staff="2"
    <g' \change Staff="1" 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]