Well, answering my own question here. The following works, but now I feel the 
need to ask is the best way to do this sort of operation?

\version "2.19.17"

treble = \relative c'' {

  \override Stem.layer = #3

  e'
  \change Staff = "bass"
  \override NoteHead.layer = #3

  <e,,,, g,>-\markup {
    \with-dimensions #'(0 . 3) #'(0 . 0)
    \with-color #white
    \filled-box #'(-1 . 2.5) #'(3 . 7) #0
  }
  \change Staff = "treble"
  g'' c
  c1
}

bass = \relative c {
  \clef bass

  <c, f c,>1 ~
  <c f c,>
}

\score {

  \new PianoStaff
  <<
    \new Staff = "treble" \with {
    }
    { \treble }

    \new Staff = "bass" \with {
      \override LedgerLineSpanner.layer = #10
    }
    { \bass }
  >>

  \layout { }
}

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to