<?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=Using_path_expressions_to_override_stencils</id>
	<title>Using path expressions to override 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=Using_path_expressions_to_override_stencils"/>
	<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Using_path_expressions_to_override_stencils&amp;action=history"/>
	<updated>2026-05-05T05:52:07Z</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=Using_path_expressions_to_override_stencils&amp;diff=5965&amp;oldid=prev</id>
		<title>Lemzwerg at 09:37, 25 December 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Using_path_expressions_to_override_stencils&amp;diff=5965&amp;oldid=prev"/>
		<updated>2025-12-25T09:37:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://wiki.lilypond.community/index.php?title=Using_path_expressions_to_override_stencils&amp;amp;diff=5965&amp;amp;oldid=4931&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Lemzwerg</name></author>
	</entry>
	<entry>
		<id>https://wiki.lilypond.community/index.php?title=Using_path_expressions_to_override_stencils&amp;diff=4931&amp;oldid=prev</id>
		<title>Lemzwerg: New category</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Using_path_expressions_to_override_stencils&amp;diff=4931&amp;oldid=prev"/>
		<updated>2025-11-21T23:36:30Z</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:36, 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-l108&quot;&gt;Line 108:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 108:&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;&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:Symbols and glyphs]]&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:Symbols and glyphs]]&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:Really cool]][[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:Really cool]]&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=Using_path_expressions_to_override_stencils&amp;diff=4008&amp;oldid=prev</id>
		<title>Lemzwerg at 23:02, 21 November 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Using_path_expressions_to_override_stencils&amp;diff=4008&amp;oldid=prev"/>
		<updated>2025-11-21T23:02:41Z</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 23:02, 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-l108&quot;&gt;Line 108:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 108:&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;&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:Symbols and glyphs]]&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:Symbols and glyphs]]&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:Really cool]]&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:Really cool&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=Using_path_expressions_to_override_stencils&amp;diff=2579&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=Using_path_expressions_to_override_stencils&amp;diff=2579&amp;oldid=prev"/>
		<updated>2025-11-16T18:52:51Z</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:52, 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-l9&quot;&gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&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;In addition this snippet shows how to create a &amp;#039;&amp;#039;filled&amp;#039;&amp;#039; stencil using &amp;lt;code&amp;gt;path,&amp;lt;/code&amp;gt; and adds a scheme function to automatically resize custom stencils when individual staves are resized.&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;In addition this snippet shows how to create a &amp;#039;&amp;#039;filled&amp;#039;&amp;#039; stencil using &amp;lt;code&amp;gt;path,&amp;lt;/code&amp;gt; and adds a scheme function to automatically resize custom stencils when individual staves are resized.&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=623&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=623&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=Using_path_expressions_to_override_stencils&amp;diff=414&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=Using_path_expressions_to_override_stencils&amp;diff=414&amp;oldid=prev"/>
		<updated>2025-10-26T22:41:45Z</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;The stencil expression &amp;lt;code&amp;gt;path&amp;lt;/code&amp;gt; can be used to override stencils for any printed object. The advantage of using &amp;lt;code&amp;gt;path&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;embedded-ps&amp;lt;/code&amp;gt; is that &amp;lt;code&amp;gt;path&amp;lt;/code&amp;gt; is supported by both the PostScript and SVG backends, and uses the same syntax.&lt;br /&gt;
&lt;br /&gt;
There are six commands available to use in a &amp;lt;code&amp;gt;path&amp;lt;/code&amp;gt; expression, and all commands use prefix notation. The six commands are &amp;lt;code&amp;gt;moveto, rmoveto, lineto, rlineto, curveto,&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;rcurveto&amp;lt;/code&amp;gt;. Note that the commands that begin with &amp;#039;&amp;#039;r&amp;#039;&amp;#039; are the relative variants of the other three commands.&lt;br /&gt;
&lt;br /&gt;
The commands &amp;lt;code&amp;gt;moveto, rmoveto, lineto,&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;rlineto&amp;lt;/code&amp;gt; take 2 arguments; they are the X and Y coordinates for the destination point.&lt;br /&gt;
&lt;br /&gt;
The commands &amp;lt;code&amp;gt;curveto&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;rcurveto&amp;lt;/code&amp;gt; create cubic Bézier curves, and take 6 arguments; the first two are the X and Y coordinates for the first control point, the second two are the X and Y coordinates for the second control point, and the last two are the X and Y coordinates for the destination point.&lt;br /&gt;
&lt;br /&gt;
In addition this snippet shows how to create a &amp;#039;&amp;#039;filled&amp;#039;&amp;#039; stencil using &amp;lt;code&amp;gt;path,&amp;lt;/code&amp;gt; and adds a scheme function to automatically resize custom stencils when individual staves are resized.&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=623&lt;br /&gt;
&lt;br /&gt;
%{&lt;br /&gt;
  Note: since SVG path data needs an &amp;quot;M&amp;quot; or &amp;quot;m&amp;quot; at the&lt;br /&gt;
  beginning to start a new subpath, every path expression&lt;br /&gt;
  must begin with &amp;quot;rmoveto&amp;quot; (or &amp;quot;moveto&amp;quot;) to work with the&lt;br /&gt;
  SVG backend.&lt;br /&gt;
%}&lt;br /&gt;
&lt;br /&gt;
customClefStencilOne =&lt;br /&gt;
  #(ly:make-stencil&lt;br /&gt;
    `(path 0.2&lt;br /&gt;
	  (rmoveto 0 0&lt;br /&gt;
	    rcurveto 0 0.75 1 0.75 1 0&lt;br /&gt;
	    rcurveto 0 -0.75 -1 -0.75 -1 0&lt;br /&gt;
	    rcurveto -1 0 -1 1.5 -0.5 1.5&lt;br /&gt;
	    rmoveto 0.5 -1.5&lt;br /&gt;
	    rcurveto -1 0 -1 -1.5 -0.5 -1.5&lt;br /&gt;
	    rmoveto 0.5 1.5&lt;br /&gt;
	    rmoveto 1 0&lt;br /&gt;
	    rcurveto 2.5 0 2.5 4 4 4&lt;br /&gt;
	    rmoveto -4 -4&lt;br /&gt;
	    rcurveto 2.5 0 2.5 -4 4 -4))&lt;br /&gt;
     (cons -0.5 1)&lt;br /&gt;
     (cons -3 5))&lt;br /&gt;
  &lt;br /&gt;
% a filled custom stencil&lt;br /&gt;
customClefStencilTwo = &lt;br /&gt;
  #(ly:make-stencil&lt;br /&gt;
    ;; path line thickness is set to 0.1 &lt;br /&gt;
    `(path 0.1&lt;br /&gt;
      ;; path coordinates&lt;br /&gt;
	  (moveto 0 0&lt;br /&gt;
	    curveto 0 1 0.7 2.5 1.5 1.5&lt;br /&gt;
            lineto 1.5 -3&lt;br /&gt;
            closepath)&lt;br /&gt;
          ;; path cap style&lt;br /&gt;
          round&lt;br /&gt;
          ;; path join style&lt;br /&gt;
          round&lt;br /&gt;
          ;; path filled?  #t or #f&lt;br /&gt;
          #t)&lt;br /&gt;
     ;; horizontal extent&lt;br /&gt;
     (cons 0 1.5)&lt;br /&gt;
     ;; vertical extent&lt;br /&gt;
     (cons -3 2))&lt;br /&gt;
&lt;br /&gt;
% scheme function to automatically resize a custom stencil &lt;br /&gt;
% when an individual staff is resized (uses font-size)&lt;br /&gt;
scaleCustomClefStencilTwo =&lt;br /&gt;
#(lambda (grob)&lt;br /&gt;
  (let* ((sz (ly:grob-property grob &amp;#039;font-size 0.0))&lt;br /&gt;
           (mult (magstep sz)))&lt;br /&gt;
    (ly:stencil-scale&lt;br /&gt;
      customClefStencilTwo&lt;br /&gt;
      mult mult)))&lt;br /&gt;
  &lt;br /&gt;
customClefOne = \override Staff.Clef.stencil = \customClefStencilOne&lt;br /&gt;
customClefTwo = \override Staff.Clef.stencil = \scaleCustomClefStencilTwo&lt;br /&gt;
normalClefs = \revert Staff.Clef.stencil&lt;br /&gt;
&lt;br /&gt;
music =&lt;br /&gt;
\relative c&amp;#039; {&lt;br /&gt;
  \customClefOne&lt;br /&gt;
  \clef &amp;quot;alto&amp;quot;&lt;br /&gt;
  c1 g1&lt;br /&gt;
  \customClefTwo&lt;br /&gt;
  \clef &amp;quot;bass&amp;quot;&lt;br /&gt;
  c1 g1&lt;br /&gt;
  \normalClefs&lt;br /&gt;
  \clef &amp;quot;treble&amp;quot;&lt;br /&gt;
  c1 g1&lt;br /&gt;
  \clef &amp;quot;alto&amp;quot;&lt;br /&gt;
  c1 g1&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;&amp;lt;&lt;br /&gt;
\new Staff \with {&lt;br /&gt;
    fontSize = #-3&lt;br /&gt;
    \override StaffSymbol.staff-space = #(magstep -3)&lt;br /&gt;
    \override StaffSymbol.thickness = #(magstep -3)&lt;br /&gt;
}&lt;br /&gt;
\music&lt;br /&gt;
&lt;br /&gt;
\new Staff &lt;br /&gt;
\music&lt;br /&gt;
&lt;br /&gt;
\new Staff \with {&lt;br /&gt;
    fontSize = #2&lt;br /&gt;
    \override StaffSymbol.staff-space = #(magstep 2)&lt;br /&gt;
    \override StaffSymbol.thickness = #(magstep 2)&lt;br /&gt;
}&lt;br /&gt;
\music&lt;br /&gt;
&amp;gt;&amp;gt;&lt;br /&gt;
&amp;lt;/lilypond&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Tweaks and overrides]]&lt;br /&gt;
[[Category:Scheme]]&lt;br /&gt;
[[Category:Symbols and glyphs]]&lt;br /&gt;
[[Category:Really cool]]&lt;/div&gt;</summary>
		<author><name>Jean Abou Samra</name></author>
	</entry>
</feed>