lilypond-user
[Top][All Lists]
Advanced

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

Re: Cross staff notation


From: Jonathan Kulp
Subject: Re: Cross staff notation
Date: Fri, 24 Oct 2008 08:53:46 -0500
User-agent: Thunderbird 2.0.0.17 (X11/20080925)

The way I dealt with this issue was just to put the \change Staff command into variables:


csu = \change Staff = u  % change staff upper
csl = \change Staff = l  % change staff lower

Then issue the \csu or \csd commands when necessary. You still have to make it change staves a lot, but at least the code looks cleaner. Here's one of your lines done this way:

\stemUp d8 a' d \csu \stemDown fis \csl

You could also add the stem-direction commands to the variables if they're always associated with the same staff-change commands.

Jon

Helge Kruse wrote:
Hello,

I want to write a piece that has a lot of cross staff notes. I have to switch the staff and keep care for the stemp direction. This is a repeated task and annoying. How can I manage this in an easy and error proof way? I attach the original to show how it should look like.

Best regards,
Helge


\version "2.10.4"
\include "deutsch.ly"

upperHarp = \relative c' {
\clef treble  \key d \major  \time 4/4
fis'2 e | d cis |
}

lowerHarp = \relative c {
\clef bass  \key d \major \time 4/4
\stemUp d8 a' d \change Staff = u \stemDown fis \change Staff = l \stemNeutral
a,, e' cis' \change Staff = u e \change Staff = l |
h, fis' h \change Staff = u d \change Staff = l |
fis,, cis' a' cis |
}

\book
{ \score
{
 { <<
  \new GrandStaff
  <<
   \new Staff = u \upperHarp
   \new Staff = l \lowerHarp
  >>
 >>
 }
 \layout { }
}
}

------------------------------------------------------------------------


------------------------------------------------------------------------

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

--
Jonathan Kulp
http://www.jonathankulp.com




reply via email to

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