[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Filling In a Half Note?
From: |
Aaron Hill |
Subject: |
Re: Filling In a Half Note? |
Date: |
Fri, 15 May 2020 09:36:22 -0700 |
User-agent: |
Roundcube Webmail/1.4.2 |
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
whiteout-half-note.cropped.png
Description: PNG image