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.
\version "2.18.2"
\language "deutsch"

\header { tagline = ##f } \layout { indent = 0 ragged-right = ##t }

global = {
  \key c \major
  \numericTimeSignature
  \time 3/4
  \set Timing.beamExceptions = #'()
}

right = \relative c'' {
  \global
  <h dis>2 (<cis e>4~<cis e>~<e, cis'>2^~< e cis'>)r4
}

left = {
  \global
  << { s2. s2. gis'8_(fis' e' dis' e' fis') } \\
     { \stemUp dis'2( e'4^~e')( \showStaffSwitch \change Staff = "right" \stemDown cis'2_~) cis' } >>
}

\score {
  \new PianoStaff <<
    \new Staff = "right" \right
    \new Staff = "left" { \clef treble \left }
  >>
  \layout { }
}

Attachment: tie.pdf
Description: Adobe PDF document

Reply via email to