Hi Paul,
I would guess that someone here has a better solution (I'm basically ignorantly chiming in because I was thinking about grace slashes recently), but here’s what I’ve been doing to slash-beamed graces, in order to show an option other than \slash
. And it visually matches the slashed flags a little more consistently.
my-hack-slash = {
\once \override Stem.stencil =
#(lambda (grob)
(let* ((x-parent (ly:grob-parent grob X))
(is-rest? (ly:grob? (ly:grob-object x-parent 'rest))))
(if is-rest?
empty-stencil
(ly:stencil-combine-at-edge
(ly:stem::print grob)
Y
(+ (ly:grob-property grob 'direction))
(grob-interpret-markup grob
(markup #:hspace 0.25 #:fontsize 3
#:musicglyph "flags.ugrace"))
-0.9))))
}
Here I print the font’s flag slash on the first stem of the grace notes. You can fiddle with the positioning or even use the downward slash symbol as needed. I haven’t tested it in cross-staff situations. And by Cross Staff, I assume you mean the use of Span_stem_engraver
and \crossStaff
? Because \slash
appears to handle the following kind of cross-staff grace music as seen in the LSR: https://lsr.di.unimi.it/LSR/Item?id=721
regards,
GR