On 2018-12-14 10:46 pm, Aaron Hill wrote:
Creating a custom articulations is probably the best option, however
you can also easily redefine the stencil for an existing one:

%%%%
\version "2.19.82"

% handbell mallet
hbm = \tweak stencil #(lambda (grob)
  (grob-interpret-markup grob #{ \markup \combine
      \raise #1 \musicglyph #"scripts.stopped"
      \musicglyph #"scripts.staccato"
    #})) \stopped

{ f'8-+-. [ f''-+-. ] f'\hbm [ f''\hbm ] }
%%%%

It's been too long since I played bells, so I don't remember the conventions anymore. But if it is desired that the mallet symbol be inverted when it appears below a note, here is a modification to the code above that will take into account direction:

%%%%
\version "2.19.82"

% handbell mallet
hbm = \tweak stencil #(lambda (grob)
  (let ((dir (ly:grob-property grob 'direction)))
    (grob-interpret-markup grob #{ \markup \combine
        \raise #dir \musicglyph #"scripts.stopped"
        \musicglyph #"scripts.staccato"
      #}))) \stopped

{ f'8-+-. [ f''-+-. ] f'\hbm [ f''\hbm ] b'4^\hbm b'_\hbm }
%%%%

-- Aaron Hill

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to