Thanks for your contributions. They inspired me to an easy bypass: ties may not 
work between staves, but slurs do, and the difference is not really 
conspicuous. Result attached.



On Wednesday, 8 May 2024 at 18:44:10 CEST, David Wright 
<lily...@lionunicorn.co.uk> wrote: 





On Wed 08 May 2024 at 13:40:23 (+0000), Kris Van Bruwaene wrote:

> Is there a simple solution for putting a tie between staves of a pianostaff? 
> I need to tie a note of the lower voice on the upper staff to a note of the 
> upper voice on the lower staff. I found this on StackExchange: 
> https://music.stackexchange.com/questions/74383/lilypond-ties-across-staves 
> but it's five years old and seems rather difficult to implement.
> I use version 2.24.2 on Debian.


I'd agree with Knute: you have to bite the bullet and learn \shape.

But in the old stackexchange post, I'd be tempted to make the tie
unambiguous. The result is not publishable, but I don't think it
leaves room for doubt, even with no extra work, and it's \break-
able at either barline. (I'm assuming the lower e /is/ restruck
in measure two.)

Cheers,
David.

Attachment: myTie.pdf
Description: Adobe PDF document

\version "2.24.2"
organUp = \relative c' {
\clef treble
\key e \minor
r2\mf
<< 
  { \voiceOne
      c4 d | e2( g)
  } 
  \new Voice { \voiceTwo
      s2 | s2 e
  }
  \new Voice { \voiceThree % ties (actually slurs) between staves
      s2 \stemDown \slurDown b2( \change Staff = "down" \voiceOne b4) \change Staff = "up" s4 % 2
  }
>>
}

organDown = \relative c' {
\clef bass
\key e \minor
<< 
  { \voiceOne
      r4 b2 a4 | g2 s4 a
  }
  \new Voice { \voiceTwo
      e1 ~ | e4 d c2
  }
>>
}
\score {
  \new PianoStaff \with { midiInstrument = #"church organ" } <<
    \new Staff = "up" \organUp
    \new Staff = "down" \organDown
  >>
  \layout { }
}

Reply via email to