Am 05.03.19 um 19:27 schrieb Rachel Knight:
That idea should have worked, but the ties don’t look quite right. Below is a compilable example.

Yes, that's why working with hidden extra notes is a bit messy: We have to prevent those from taking up space. (Omit the \hideNotes to understand what's happening here.)

What works for me here is:

\version "2.19.81"

down = { \change Staff = "bass" \stemUp }
up = {\change Staff = "treble" \stemDown}

\language "english"

Treble = {
  <<
    \relative c'
    {

      \set tieWaitForNote = ##t
      \down c,8~[ \up <g' bf e>~]
      \down
      c,4
    }

    \new Voice
    \relative c'
    {
      \stemDown
      s8 \hideNotes
      \once \override NoteColumn.force-hshift = -1
      \once \omit Flag
      <g bf e>8~
      \unHideNotes
      <g bf e>4
    }
  >>
}

Bass = {
  \clef bass
  s2*4
}


\score {

  \new GrandStaff
  <<
    \new Staff = treble { \Treble }
    \new Staff = bass { \Bass }
  >>
}


Just as an aside: The use of \stemDown and \stemUp is discouraged in most cases - in almost all situations that come up, \voiceOne, \voiceTwo etc. should be preferred. But probably you already knew this and use \stemDown/\stemUp here for some good reason.

Lukas


_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to