Jump to content

Harp muffle notation: Difference between revisions

From LilyPond wiki
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Tags: Mobile edit Mobile web edit
m New category
Tags: Mobile edit Mobile web edit
 
(One intermediate revision by the same user not shown)
Line 44: Line 44:
[[Category:Workaround]]
[[Category:Workaround]]
[[Category:Symbols and glyphs]]
[[Category:Symbols and glyphs]]
[[Category:Snippet]]

Latest revision as of 23:29, 21 November 2025

Here is how to use custom-made symbols for harp muffle notation, letting musicians know when to damp the strings with the palm of the hands. It may be printed more nicely between the lower and upper staff by using the Dynamics context.

\version "2.24"

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

oMuffleMarkup=
\markup
\combine
\center-align \huge \bold \normal-text "O"
\center-align \translate #'(0 . 1)
\mufflePath


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

muffle=#(make-dynamic-script muffleMarkup)
innerMuffle=#(make-dynamic-script innerMuffleMarkup)
oMuffle=#(make-dynamic-script oMuffleMarkup)

\new PianoStaff <<
  \new Staff {b1 b2 r b r b r \bar "|."}
  \new Dynamics {
    s1\p s2 r\oMuffle
    s r\muffle s2 r\innerMuffle
  }
  \new Staff {\clef bass e1 e2 r e r e r}
>>