Hi, you may tie the e note in partOne to a e1*0 note, like this:
partOne = \relative c' { c4 e g e~ e1*0 } I did not yet understand why this works, but it does, even in more complex situations like ties across voices. Note that the e1*0 note must have the same value as the e1 note in partTwo. Earlier on, I got advice from this forum to either move the tieEngraver from voice context to staff context. This works, but has side effects if you have parallel voices -- I could not manage having two voices printed in different colors, the ties would always print in the same color. The other solution was adding hidden notes with \hideNotes, with other side effects. Cheers Jürgen Disc Magnet wrote: > > partOne = \relative c' { > c4 e g e~ > } > > partTwo = \relative c' { > e1 > c4 e g e~ > e1 > } > > \score { > \new PianoStaff << > \set PianoStaff.midiInstrument = "acoustic grand" > > \new Staff { > \tempo 4 = 120 > \partOne > \partTwo > } > >> > \midi { } > \layout {} > } > > I expect the last e of partOne and first e of partTwo to be tied > together. However, it doesn't happen so. What is the right way to do > this? > > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > http://lists.gnu.org/mailman/listinfo/lilypond-user > > -- View this message in context: http://old.nabble.com/How-to-tie-the-last-note-of-one-variable-to-the-first-note-of-another-variable--tp30737881p30740914.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user