<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.lilypond.community/index.php?action=history&amp;feed=atom&amp;title=Associate_drumnotes_with_custom_NoteHead_stencils</id>
	<title>Associate drumnotes with custom NoteHead stencils - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.lilypond.community/index.php?action=history&amp;feed=atom&amp;title=Associate_drumnotes_with_custom_NoteHead_stencils"/>
	<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Associate_drumnotes_with_custom_NoteHead_stencils&amp;action=history"/>
	<updated>2026-05-13T16:44:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.lilypond.community/index.php?title=Associate_drumnotes_with_custom_NoteHead_stencils&amp;diff=4212&amp;oldid=prev</id>
		<title>Lemzwerg: New category</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Associate_drumnotes_with_custom_NoteHead_stencils&amp;diff=4212&amp;oldid=prev"/>
		<updated>2025-11-21T23:17:14Z</updated>

		<summary type="html">&lt;p&gt;New category&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:17, 21 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l126&quot;&gt;Line 126:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 126:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Template]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Template]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Scheme]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Scheme]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Simultaneous notes]][[Category:Snippet]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Simultaneous notes]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Snippet]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Lemzwerg</name></author>
	</entry>
	<entry>
		<id>https://wiki.lilypond.community/index.php?title=Associate_drumnotes_with_custom_NoteHead_stencils&amp;diff=3195&amp;oldid=prev</id>
		<title>Lemzwerg at 22:47, 21 November 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Associate_drumnotes_with_custom_NoteHead_stencils&amp;diff=3195&amp;oldid=prev"/>
		<updated>2025-11-21T22:47:45Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:47, 21 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l126&quot;&gt;Line 126:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 126:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Template]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Template]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Scheme]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Scheme]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Simultaneous notes]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Simultaneous notes&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]][[Category:Snippet&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Lemzwerg</name></author>
	</entry>
	<entry>
		<id>https://wiki.lilypond.community/index.php?title=Associate_drumnotes_with_custom_NoteHead_stencils&amp;diff=2331&amp;oldid=prev</id>
		<title>Jean Abou Samra: Replace version=&quot;2.24.0&quot; with version=&quot;2.24&quot; now that the LilyWiki extension supports auto-selecting the latest release in a stable series</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Associate_drumnotes_with_custom_NoteHead_stencils&amp;diff=2331&amp;oldid=prev"/>
		<updated>2025-11-16T18:48:55Z</updated>

		<summary type="html">&lt;p&gt;Replace version=&amp;quot;2.24.0&amp;quot; with version=&amp;quot;2.24&amp;quot; now that the LilyWiki extension supports auto-selecting the latest release in a stable series&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:48, 16 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Off course this will also work with custom drumstyle-Tables and, if used, with custom drum-notenames.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Off course this will also work with custom drumstyle-Tables and, if used, with custom drum-notenames.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;lilypond version=&quot;2.24&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.0&lt;/del&gt;&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;lilypond version=&quot;2.24&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%% http://lsr.di.unimi.it/LSR/Item?id=617&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%% http://lsr.di.unimi.it/LSR/Item?id=617&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jean Abou Samra</name></author>
	</entry>
	<entry>
		<id>https://wiki.lilypond.community/index.php?title=Associate_drumnotes_with_custom_NoteHead_stencils&amp;diff=494&amp;oldid=prev</id>
		<title>Jean Abou Samra: Import snippet from LSR</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Associate_drumnotes_with_custom_NoteHead_stencils&amp;diff=494&amp;oldid=prev"/>
		<updated>2025-10-26T22:43:03Z</updated>

		<summary type="html">&lt;p&gt;Import snippet from LSR&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This snippet shows how to associate drum-notenames with custom stencils which will automagically be used as the standard notehead for the assigned drumnote.&lt;br /&gt;
&lt;br /&gt;
In your ly-code you need to have these stencils defined. A simple example can be found in this [http://lsr.di.unimi.it/LSR/Item?id=516 snippet]. Additionally there are two more examples used in this snippet for demonstration.&lt;br /&gt;
&lt;br /&gt;
The second step is to customise the list (stencil-mapping) where the drumnotes are assigned to new stencils. List only those drumnotes you want to have displayed with your own notehead and be sure to put the full notename, not its abbreviation, e.g. &amp;lt;code&amp;gt;&amp;#039;bassdrum&amp;lt;/code&amp;gt; will work, &amp;lt;code&amp;gt;&amp;#039;bd&amp;lt;/code&amp;gt; won&amp;#039;t.&lt;br /&gt;
&lt;br /&gt;
Off course this will also work with custom drumstyle-Tables and, if used, with custom drum-notenames.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;lilypond version=&amp;quot;2.24.0&amp;quot;&amp;gt;&lt;br /&gt;
%% http://lsr.di.unimi.it/LSR/Item?id=617&lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;
%%% Here are the stencils defined %%%&lt;br /&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;
&lt;br /&gt;
#(define (circSlash grob)&lt;br /&gt;
   (let* ((line-thickness (ly:staff-symbol-line-thickness grob))&lt;br /&gt;
          (width (+ line-thickness 1))&lt;br /&gt;
          (stem-thickness (* line-thickness 1.3))&lt;br /&gt;
          (radius (/ (- width stem-thickness) 2)))&lt;br /&gt;
     (ly:make-stencil (list &amp;#039;embedded-ps&lt;br /&gt;
                            (string-append &amp;quot;&lt;br /&gt;
          /line-thickness &amp;quot; (number-&amp;gt;string line-thickness) &amp;quot; def&lt;br /&gt;
          /stem-thickness &amp;quot; (number-&amp;gt;string stem-thickness) &amp;quot; def&lt;br /&gt;
          /radius &amp;quot; (number-&amp;gt;string radius) &amp;quot; def&lt;br /&gt;
          /width &amp;quot; (number-&amp;gt;string width) &amp;quot; def&lt;br /&gt;
          /half-width width 2 div def&lt;br /&gt;
          /x0 half-width def&lt;br /&gt;
          /y0 0 def&lt;br /&gt;
          /x1 width stem-thickness 2 div sub def&lt;br /&gt;
          /y1 half-width stem-thickness 2 div sub def&lt;br /&gt;
          /x2 stem-thickness 2 div def&lt;br /&gt;
          /y2 half-width neg stem-thickness 2 div add def&lt;br /&gt;
&lt;br /&gt;
          gsave&lt;br /&gt;
          currentpoint translate&lt;br /&gt;
          stem-thickness setlinewidth&lt;br /&gt;
          newpath&lt;br /&gt;
          x0 y0 radius 0 360 arc&lt;br /&gt;
          stroke&lt;br /&gt;
&lt;br /&gt;
          newpath&lt;br /&gt;
          1 setlinecap&lt;br /&gt;
          x1 y1 moveto&lt;br /&gt;
          x2 y2 lineto&lt;br /&gt;
          stroke&lt;br /&gt;
          grestore&amp;quot;))&lt;br /&gt;
                      (cons 0 width)&lt;br /&gt;
                      (cons 0 0))))&lt;br /&gt;
&lt;br /&gt;
#(define plus&lt;br /&gt;
   (ly:make-stencil (list &amp;#039;embedded-ps&lt;br /&gt;
      &amp;quot;gsave&lt;br /&gt;
       currentpoint translate&lt;br /&gt;
       newpath&lt;br /&gt;
       -0.05 0 moveto&lt;br /&gt;
       1.05 0 lineto&lt;br /&gt;
       closepath&lt;br /&gt;
       0.2 setlinewidth&lt;br /&gt;
       stroke&lt;br /&gt;
       &lt;br /&gt;
       newpath&lt;br /&gt;
       0.5 -0.45 moveto&lt;br /&gt;
       0.5 0.45 lineto&lt;br /&gt;
       closepath&lt;br /&gt;
       0.2 setlinewidth&lt;br /&gt;
       stroke&lt;br /&gt;
       grestore&amp;quot; )&lt;br /&gt;
      (cons -0.15 1.15)&lt;br /&gt;
      (cons 0 0)))&lt;br /&gt;
      &lt;br /&gt;
parallelogram =&lt;br /&gt;
  #(ly:make-stencil (list &amp;#039;embedded-ps&lt;br /&gt;
    &amp;quot;gsave&lt;br /&gt;
      currentpoint translate&lt;br /&gt;
      newpath&lt;br /&gt;
      0 0.25 moveto&lt;br /&gt;
      1.3125 0.75 lineto&lt;br /&gt;
      1.3125 -0.25 lineto&lt;br /&gt;
      0 -0.75 lineto&lt;br /&gt;
      closepath&lt;br /&gt;
      fill&lt;br /&gt;
      grestore&amp;quot; )&lt;br /&gt;
    (cons 0 1.3125)&lt;br /&gt;
    (cons 0 0))&lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;
%%% Here ends the stencil definition. %%%&lt;br /&gt;
%%%   The actual function follows.    %%%&lt;br /&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;
     &lt;br /&gt;
#(define stencil-mapping&lt;br /&gt;
   (list&lt;br /&gt;
    (cons &amp;#039;bassdrum parallelogram)&lt;br /&gt;
    (cons &amp;#039;hightom circSlash)&lt;br /&gt;
    (cons &amp;#039;lowtom plus)&lt;br /&gt;
    (cons &amp;#039;snare circSlash)))&lt;br /&gt;
&lt;br /&gt;
#(define (mod-notehead music)&lt;br /&gt;
   (if (eq? (ly:music-property music &amp;#039;name) &amp;#039;EventChord)&lt;br /&gt;
       (let ((n (length (ly:music-property music &amp;#039;elements))))&lt;br /&gt;
         (do ((i 0 (1+ i))) ((= i n))&lt;br /&gt;
           (let* ((ne (list-ref (ly:music-property music &amp;#039;elements) i))&lt;br /&gt;
                  (dt (ly:music-property ne &amp;#039;drum-type))&lt;br /&gt;
                  (st (assoc dt stencil-mapping)))&lt;br /&gt;
             (if st&lt;br /&gt;
                 (ly:music-set-property! ne &amp;#039;tweaks (list (cons &amp;#039;stencil (cdr st)))))))))&lt;br /&gt;
   music)&lt;br /&gt;
&lt;br /&gt;
customHeads =&lt;br /&gt;
#(define-music-function (music) (ly:music?)&lt;br /&gt;
   (music-map (lambda (x) (mod-notehead x)) music))&lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;
%%% Below is a short sample. %%%&lt;br /&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;
     &lt;br /&gt;
\new DrumVoice \drummode {&lt;br /&gt;
  \customHeads { &amp;lt;sn hh bd&amp;gt;4 tomh toml &amp;lt;toml sn&amp;gt; }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/lilypond&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Automatic notation]]&lt;br /&gt;
[[Category:Percussion]]&lt;br /&gt;
[[Category:Tweaks and overrides]]&lt;br /&gt;
[[Category:Template]]&lt;br /&gt;
[[Category:Scheme]]&lt;br /&gt;
[[Category:Simultaneous notes]]&lt;/div&gt;</summary>
		<author><name>Jean Abou Samra</name></author>
	</entry>
</feed>