Hi Dan, 

you can create an additional voice with invisible notes and make the
voiceFollower do the work for you. 
By that, you don't have to find coordinates by trial-and-error, and the
dashed lines will adapt to any layout changes.

% ------------------------------------------------------------

\version "2.19.39"

rightOne = \relative c' {
  f16 aes des ees ees,16 aes c ees
}

leftOne = \relative c' {
  \tuplet 3/2 { c8 bes aes' }
  \once \override TextScript.extra-offset = #'( 1.0 . 0.0 )
  \acciaccatura {
    bes,16  c
  } bes4
}

ghostOne = {
  \voiceTwo
  \set Voice.followVoice = ##t
  \override VoiceFollower.style = #'dashed-line
  \hideNotes
  s4
  \grace { d'8 }
  \change Staff = "right"
  es'4
  \unHideNotes
}

\score {
  \new PianoStaff
  <<
    \new Staff = "right"
    { \rightOne }
    \new Staff = "left"
    {
      <<
        \leftOne
        \new Voice
        \ghostOne
      >>
    }
  >>
}

% ------------------------------------------------------------

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/making-a-dashed-line-from-one-staff-to-another-tp191604p191619.html
Sent from the User mailing list archive at Nabble.com.

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

Reply via email to