lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: harp basic muffle


From: Valentin Villenave
Subject: Re: harp basic muffle
Date: Tue, 5 Feb 2019 10:20:45 +0000

On 2/5/19, N. Andrew Walsh <address@hidden> wrote:
> A question: is there a way to get the stem_engraver to accept these glyphs?

Well, of course you can always replace the NoteHead stencil with a markup:

%%%%%%%%%%

mufflePath=
\markup
\path #0.15 #'((moveto -1.25 0)
                (lineto 1.25 0)
                (moveto 0 -1.25)
                (lineto 0 1.25))

muffleMarkup=
\markup \translate #'(0 . 1)
\combine \mufflePath
\draw-circle #1 #0.15 ##f

muffleHead =
\once \override NoteHead.stencil =
  #(lambda (grob)
     (ly:stencil-translate
      (grob-interpret-markup grob muffleMarkup)
     '(0 . -.8)))

{ g'8 \muffleHead g' a' b' }

%%%%%

Cheers,
V.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]