lilypond-user
[Top][All Lists]
Advanced

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

Re: change staff within chord?


From: Mats Bengtsson
Subject: Re: change staff within chord?
Date: Wed, 14 Sep 2005 15:58:08 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511

See http://lists.gnu.org/archive/html/lilypond-devel/2005-08/msg00318.html
with followups (if I understand your questions correctly).

  /Mats

address@hidden wrote:
hello list,
how would i change the staff within a chord (it is important that the necks keep connected across the staves? the \change Staff command doesn't work within the chord < ... >.

here is my sample code:
/////////////////////////////////////////


\version "2.6.3"

#(set-global-staff-size 20)

\paper{
topmargin = 0\cm
linewidth = 10\cm
leftmargin = 0\cm
}

\layout {
        \context
        {
        \Lyrics
           \override LyricText #'font-size = #0
        \override LyricText #'font-shape = #'regular
        }
}


% o = { \change Staff = oben \stemDown } % wechselt auf anderen Staff
% u = { \change Staff = unten \stemUp }

o = { \change Staff = oben \stemDown }
u = { \change Staff = unten \stemUp }

oben =

{
\key c \major
\time 4/4


\stemUp
% < \u d f \o b>8 this won't work
<d f b>8  r % put d and f on lower stave
<e g c'> r % put e and g on lower stave
<e g cis'> r  % put e & g ...
<f a d'> r  % put f % d ...
|

}


unten =
{
\clef bass
\key c \major
\time 4/4

\voiceTwo
g,8 r c, r a, r d, r |

}



\score
{
<<
    \context Staff = oben \oben
    \context Staff = unten \unten
 >>
}


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

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
        Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================




reply via email to

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