% Contributed by V.V. on % https://lists.gnu.org/archive/html/lilypond-user-fr/2020-03/msg00091.html slashStemsOn = { \override StemTremolo.stencil = #(lambda (grob) (let* ((dir (ly:grob-property grob 'direction)) (stem (ly:grob-parent grob X)) (stem-stil (ly:stem::print stem)) (stem-Y (ly:stencil-extent stem-stil Y)) (stem-len (- (cdr stem-Y) (car stem-Y)))) (ly:grob-set-property! grob 'beam-width (* 1.33 (ly:stem-tremolo::calc-width grob))) (ly:stencil-translate (ly:stem-tremolo::print grob) (cons (* -.33 dir) (* stem-len -.6 dir))))) } slashStemsOff = { \revert StemTremolo.stencil } { \slashStemsOn \stemUp 2:8 : : : : : : : \stemDown 2:8 : : : : : : : \stemUp 2:8 : : : : : : : \stemDown 2:8 : : : : : : : }