lilypond-user
[Top][All Lists]
Advanced

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

Re: Cross staff notation


From: Helge Kruse
Subject: Re: Cross staff notation
Date: Sun, 26 Oct 2008 21:02:34 +0100

Jonathan,

thanks for reply. Do you also know a kind of function, where I can pass the note(s) that should be notated in the upper system as a parameter? The function should
- save current stem direction
- change the staff to upper
- write the passed note(s)
- change the staff to lower
- restore the original stem direction
I think this must be defined with a scheme function. But I have a hige lack of 
knowledge how to write this.

Regards,
Helge

----- Original Message ----- From: "Jonathan Kulp" <address@hidden>
To: "Helge Kruse" <address@hidden>
Cc: "Lilypond-User" <address@hidden>
Sent: Friday, October 24, 2008 2:53 PM
Subject: Re: Cross staff notation


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


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





reply via email to

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