On 2020-05-15 9:19 am, melophobic wrote:
Is there a way to fill in just the middle part of a half note (or whole
note
too) with white? I have tried \whiteout, but that gives me white around
the
notehead as well.
Here's an option:
%%%%
\version "2.20.0"
whiteoutHalfNote =
\tweak stencil #(lambda (grob)
(grob-interpret-markup grob #{
\markup \combine
\with-color #white \musicglyph #"noteheads.s2"
\musicglyph #"noteheads.s1" #})) \etc
{ \whiteoutHalfNote c'2 2 }
%%%%
This uses the quarter-note head to whiteout the background and then
overlays the half-note head.
-- Aaron Hill