[Top][All Lists]

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

Re: Is a cross-staff chord with ties possible in lilypond?

From: Helge Hafting
Subject: Re: Is a cross-staff chord with ties possible in lilypond?
Date: Fri, 29 Apr 2011 13:29:01 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110303 Icedove/3.0.11

On 27. april 2011 13:40, address@hidden wrote:

To get cross-staff ties, you have to change how/where the tie engraver is doing 
its work.  Check out:

\score {
\new Staff = up \with { tieWaitForNote = ##t } \relative c' {
s2<c d>2
\new Staff = down \with { tieWaitForNote = ##t } \relative c' {
a8 ~ [ b ~ \change Staff = up c ~ d ~ ] \change Staff = down
\override Stem #'cross-staff = ##t
\override Stem #'length = #20
<a b>2

\layout {
\context { \Staff \consists "Tie_engraver" }
\context { \Voice \remove "Tie_engraver" }

Looks nice, and a similiar change for "Tie_performer" gives correct MIDI also. It is now easy to enter this construct, and get both pdf and midi. But there are two problems with this:

Small problem:
Ties go up or down, and lilypond usually gets this right. But not with
this trick in place, the tie is *always* in opposite direction of the
stem. So ties clash into other stuff. But this is easy enough to fix with ^ and _. Explicit up- or down-ties are a small price to pay.

The big problem of unwanted extra ties:
When the Tie_engraver is moved to Staff, I get a lot of unwanted ties.
Specifically, if one voice starts a tie at some point in time, then
all other voices starts a tie too if they have a note starting in the same location!

It is as if the Tie_engraver merely see that "a tie starts at this point
in time", not considering that there may be simultaneous notes where
some has a tie and some doesn't.

I guess this is a bug, and not merely a limitation of moving the Tie_engraver to Staff?

Helge Hafting

reply via email to

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