Skip to content

Instantly share code, notes, and snippets.

@deeplook
Created October 13, 2023 10:35
Show Gist options
  • Save deeplook/ff1e180cd957867cd43e14de4a6e15db to your computer and use it in GitHub Desktop.
Save deeplook/ff1e180cd957867cd43e14de4a6e15db to your computer and use it in GitHub Desktop.
Example lilypond SVG output
Display the source blob
Display the rendered blob
Raw
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.2" width="50.99mm" height="18.25mm" viewBox="25.6075 3.8453 29.0175 10.3840">
<style type="text/css">
<![CDATA[
tspan { white-space: pre; }
]]>
</style>
<g transform="translate(25.6075, 11.7009)">
<rect x="8.3739" y="-0.1000" width="1.9563" height="0.2000" ry="0.1000" fill="currentColor"/>
</g>
<g transform="translate(25.6075, 10.7009)">
<line stroke-linejoin="round" stroke-linecap="round" stroke-width="0.1000" stroke="currentColor" x1="0.0500" y1="0" x2="28.9675" y2="0"/>
</g>
<g transform="translate(25.6075, 9.7009)">
<line stroke-linejoin="round" stroke-linecap="round" stroke-width="0.1000" stroke="currentColor" x1="0.0500" y1="0" x2="28.9675" y2="0"/>
</g>
<g transform="translate(25.6075, 8.7009)">
<line stroke-linejoin="round" stroke-linecap="round" stroke-width="0.1000" stroke="currentColor" x1="0.0500" y1="0" x2="28.9675" y2="0"/>
</g>
<g transform="translate(25.6075, 7.7009)">
<line stroke-linejoin="round" stroke-linecap="round" stroke-width="0.1000" stroke="currentColor" x1="0.0500" y1="0" x2="28.9675" y2="0"/>
</g>
<g transform="translate(25.6075, 6.7009)">
<line stroke-linejoin="round" stroke-linecap="round" stroke-width="0.1000" stroke="currentColor" x1="0.0500" y1="0" x2="28.9675" y2="0"/>
</g>
<g transform="translate(54.4350, 8.7009)">
<rect x="0.0000" y="-2.0000" width="0.1900" height="4.0000" ry="0.0000" fill="currentColor"/>
</g>
<g transform="translate(45.4985, 6.5109)">
<polygon stroke-linejoin="round" stroke-linecap="round" stroke-width="0.0800" fill="currentColor" stroke="currentColor" points="7.6026 -1.0100 7.6026 -0.6100 0.0400 0.2000 0.0400 -0.2000"/>
</g>
<g transform="translate(35.4817, 8.5109)">
<polygon stroke-linejoin="round" stroke-linecap="round" stroke-width="0.0800" fill="currentColor" stroke="currentColor" points="7.6026 -1.2000 7.6026 -0.8000 0.0400 0.2000 0.0400 -0.2000"/>
</g>
<a style="color:inherit;" xlink:href="textedit:///Users/gherman/Desktop/localdev/src/misc/sound/tmpfmll596q.ly:21:17:18">
<g transform="translate(34.3075, 11.7009)">
<path transform="scale(0.0040, -0.0040)" d="M218 136c66 0 108 -36 108 -89c0 -89 -113 -183 -218 -183c-66 0 -108 36 -108 89c0 89 113 183 218 183z" fill="currentColor"/>
</g>
</a>
<a style="color:inherit;" xlink:href="textedit:///Users/gherman/Desktop/localdev/src/misc/sound/tmpfmll596q.ly:21:21:22">
<g transform="translate(34.3075, 14.1960)">
<text font-family="serif" font-size="2.2001" text-anchor="start" fill="currentColor">
<tspan>C</tspan>
</text>
</g>
</a>
<a style="color:inherit;" xlink:href="textedit:///Users/gherman/Desktop/localdev/src/misc/sound/tmpfmll596q.ly:21:19:20">
<g transform="translate(34.5499, 6.1509)">
<path transform="scale(0.0022, -0.0022)" d="M194 486c16 0 29 15 41 15c13 0 24 -13 24 -31v-341c0 -47 35 -86 81 -86c14 0 21 -10 21 -21s-7 -22 -21 -22c-49 0 -97 14 -146 14s-96 -14 -145 -14c-14 0 -22 11 -22 22s8 21 22 21c46 0 80 39 80 86v137c0 23 -16 35 -30 35c-7 0 -13 -4 -17 -11l-34 -65
c-5 -10 -14 -15 -23 -15c-14 0 -28 12 -28 27c0 4 1 8 3 13l129 250c2 4 7 6 11 6c18 0 37 -20 54 -20z" fill="currentColor"/>
</g>
</a>
<g transform="translate(26.4075, 9.7009)">
<path transform="scale(0.0040, -0.0040)" d="M266 -635h-6c-108 0 -195 88 -195 197c0 58 53 103 112 103c54 0 95 -47 95 -103c0 -52 -43 -95 -95 -95c-11 0 -21 2 -31 6c26 -39 68 -65 117 -65h4zM461 -203c68 24 113 90 113 164c0 90 -66 179 -173 190c19 -89 48 -242 60 -354zM74 28c0 -145 141 -247 264 -247
c1 0 47 0 82 6c-7 64 -29 203 -63 364c-79 -8 -124 -61 -124 -119c0 -44 25 -91 81 -123c5 -5 7 -10 7 -15c0 -11 -10 -22 -22 -22c-15 0 -126 62 -126 187c0 88 58 174 160 197c-14 58 -29 117 -46 175c-107 -121 -213 -243 -213 -403zM250 553c-29 96 -52 170 -52 346
c0 115 55 224 149 292c6 5 14 5 20 0c68 -80 133 -245 133 -358c0 -143 -86 -255 -180 -364c21 -68 39 -138 56 -207c2 0 7 1 13 1c155 0 256 -128 256 -261c0 -113 -74 -212 -180 -246c3 -35 5 -70 5 -105c0 -19 -1 -39 -2 -58c-7 -119 -88 -225 -202 -228l1 43
c93 2 153 92 159 191c1 18 2 37 2 55c0 31 -1 61 -4 92c-5 -1 -44 -8 -89 -8c-193 0 -333 180 -333 374c0 177 131 306 248 441zM428 916c0 34 1 66 -20 129c-99 -48 -162 -149 -162 -259c0 -52 12 -115 36 -194c80 97 146 198 146 324z" fill="currentColor"/>
</g>
<g transform="translate(30.6075, 8.7009)">
<path transform="scale(0.0040, -0.0040)" d="M250 262c116 0 176 -106 176 -163c0 -40 -30 -72 -67 -72c-31 0 -75 25 -75 75c0 38 27 77 72 77c4 0 9 0 14 -1c-28 37 -72 59 -120 59c-106 0 -113 -73 -113 -186v-51v-51c0 -113 7 -187 113 -187c80 0 139 70 158 151c2 7 7 10 12 10c6 0 13 -4 13 -12
c0 -22 -50 -174 -183 -174c-59 0 -250 19 -250 263c0 62 18 262 250 262z" fill="currentColor"/>
</g>
<g transform="translate(35.5467, 8.7009)">
<rect x="-0.0650" y="-0.1985" width="0.1300" height="3.0124" ry="0.0400" fill="currentColor"/>
</g>
<a style="color:inherit;" xlink:href="textedit:///Users/gherman/Desktop/localdev/src/misc/sound/tmpfmll596q.ly:21:24:25">
<g transform="translate(36.8117, 11.2009)">
<path transform="scale(0.0040, -0.0040)" d="M218 136c66 0 108 -36 108 -89c0 -89 -113 -183 -218 -183c-66 0 -108 36 -108 89c0 89 113 183 218 183z" fill="currentColor"/>
</g>
</a>
<a style="color:inherit;" xlink:href="textedit:///Users/gherman/Desktop/localdev/src/misc/sound/tmpfmll596q.ly:21:25:26">
<g transform="translate(37.0370, 6.1509)">
<path transform="scale(0.0022, -0.0022)" d="M94 66c-60 0 -39 -66 -72 -66c-11 0 -22 7 -22 21c0 154 232 162 232 334c0 50 -17 102 -61 102c-33 0 -66 -14 -66 -44c0 -24 31 -37 31 -61c0 -34 -27 -61 -61 -61s-61 27 -61 61c0 84 72 148 157 148c98 0 190 -55 190 -145c0 -140 -131 -154 -225 -205
c85 -2 113 -61 165 -61c45 0 28 41 57 41c11 0 22 -8 22 -21c0 -29 -48 -109 -144 -109c-92 0 -96 66 -142 66z" fill="currentColor"/>
</g>
</a>
<g transform="translate(38.0509, 8.7009)">
<rect x="-0.0650" y="-0.5262" width="0.1300" height="2.8401" ry="0.0400" fill="currentColor"/>
</g>
<a style="color:inherit;" xlink:href="textedit:///Users/gherman/Desktop/localdev/src/misc/sound/tmpfmll596q.ly:21:28:29">
<g transform="translate(39.3159, 10.7009)">
<path transform="scale(0.0040, -0.0040)" d="M218 136c66 0 108 -36 108 -89c0 -89 -113 -183 -218 -183c-66 0 -108 36 -108 89c0 89 113 183 218 183z" fill="currentColor"/>
</g>
</a>
<a style="color:inherit;" xlink:href="textedit:///Users/gherman/Desktop/localdev/src/misc/sound/tmpfmll596q.ly:21:29:30">
<g transform="translate(39.5754, 6.1509)">
<path transform="scale(0.0022, -0.0022)" d="M261 266c0 -54 85 -40 85 -125c0 -94 -83 -141 -186 -141c-84 0 -160 54 -160 133c0 32 26 58 58 58s58 -26 58 -58c0 -22 -36 -26 -36 -48c0 -33 42 -42 80 -42c41 0 56 50 56 98v21c0 44 -2 77 -43 77h-65c-18 0 -27 14 -27 27s9 27 27 27h65c42 0 43 36 43 83v11
c0 43 -20 70 -61 70c-34 0 -71 -8 -71 -38c0 -19 32 -23 32 -42c0 -28 -23 -51 -51 -51s-51 23 -51 51c0 72 66 123 141 123c93 0 174 -31 174 -113c0 -94 -68 -67 -68 -121z" fill="currentColor"/>
</g>
</a>
<g transform="translate(40.5551, 8.7009)">
<rect x="-0.0650" y="-0.8538" width="0.1300" height="2.6677" ry="0.0400" fill="currentColor"/>
</g>
<a style="color:inherit;" xlink:href="textedit:///Users/gherman/Desktop/localdev/src/misc/sound/tmpfmll596q.ly:21:32:33">
<g transform="translate(41.8201, 10.2009)">
<path transform="scale(0.0040, -0.0040)" d="M218 136c66 0 108 -36 108 -89c0 -89 -113 -183 -218 -183c-66 0 -108 36 -108 89c0 89 113 183 218 183z" fill="currentColor"/>
</g>
</a>
<a style="color:inherit;" xlink:href="textedit:///Users/gherman/Desktop/localdev/src/misc/sound/tmpfmll596q.ly:21:33:34">
<g transform="translate(42.0113, 6.1509)">
<path transform="scale(0.0022, -0.0022)" d="M148 501c10 0 41 -15 72 -15c32 0 63 15 76 15c15 0 26 -11 26 -21c0 -4 -1 -7 -4 -10l-264 -291h134v4c0 60 50 41 75 85c7 11 8 24 14 36c3 7 10 10 17 10c11 0 24 -8 24 -25v-110h70c18 0 27 -14 27 -27s-9 -27 -27 -27h-70c2 -45 36 -82 80 -82c14 0 22 -10 22 -21
s-8 -22 -22 -22c-49 0 -96 14 -145 14s-97 -14 -146 -14c-14 0 -21 11 -21 22s7 21 21 21c44 0 79 37 81 82h-134c-43 0 -57 25 -57 42c0 5 1 10 3 12c73 81 123 182 123 291c0 17 11 31 25 31z" fill="currentColor"/>
</g>
</a>
<g transform="translate(43.0593, 8.7009)">
<rect x="-0.0650" y="-1.1815" width="0.1300" height="2.4954" ry="0.0400" fill="currentColor"/>
</g>
<a style="color:inherit;" xlink:href="textedit:///Users/gherman/Desktop/localdev/src/misc/sound/tmpfmll596q.ly:21:36:37">
<g transform="translate(44.3243, 9.7009)">
<path transform="scale(0.0040, -0.0040)" d="M218 136c66 0 108 -36 108 -89c0 -89 -113 -183 -218 -183c-66 0 -108 36 -108 89c0 89 113 183 218 183z" fill="currentColor"/>
</g>
</a>
<a style="color:inherit;" xlink:href="textedit:///Users/gherman/Desktop/localdev/src/misc/sound/tmpfmll596q.ly:21:37:38">
<g transform="translate(44.5838, 5.7641)">
<path transform="scale(0.0022, -0.0022)" d="M60 500c8 0 69 -14 131 -14c54 0 133 15 134 15c17 0 28 -12 28 -22c0 -13 -89 -100 -235 -100c-17 0 -30 -14 -30 -31v-41c25 25 62 25 97 25h5c115 0 181 -55 181 -166c0 -99 -96 -166 -202 -166c-88 0 -169 52 -169 133c0 32 26 58 58 58s58 -26 58 -58
c0 -22 -36 -26 -36 -48c0 -36 47 -42 89 -42c52 0 73 63 73 123c0 53 -6 112 -52 112c-133 0 -87 -44 -129 -44c-14 0 -27 10 -27 27v209c0 17 11 30 26 30z" fill="currentColor"/>
</g>
</a>
<g transform="translate(45.5635, 8.7009)">
<rect x="-0.0650" y="-2.1969" width="0.1300" height="3.0108" ry="0.0400" fill="currentColor"/>
</g>
<a style="color:inherit;" xlink:href="textedit:///Users/gherman/Desktop/localdev/src/misc/sound/tmpfmll596q.ly:21:40:41">
<g transform="translate(46.8285, 9.2009)">
<path transform="scale(0.0040, -0.0040)" d="M218 136c66 0 108 -36 108 -89c0 -89 -113 -183 -218 -183c-66 0 -108 36 -108 89c0 89 113 183 218 183z" fill="currentColor"/>
</g>
</a>
<a style="color:inherit;" xlink:href="textedit:///Users/gherman/Desktop/localdev/src/misc/sound/tmpfmll596q.ly:21:41:42">
<g transform="translate(47.0880, 5.4987)">
<path transform="scale(0.0022, -0.0022)" d="M176 226c-44 0 -47 -40 -47 -92s3 -91 47 -91c46 0 55 38 55 91s-9 92 -55 92zM129 257c14 8 30 12 47 12c103 0 176 -41 176 -135s-73 -134 -176 -134c-114 0 -176 124 -176 250c0 129 77 250 197 250c75 0 141 -52 141 -123c0 -32 -26 -58 -58 -58s-58 26 -58 58
c0 21 35 23 35 44c0 26 -31 36 -60 36c-61 0 -69 -60 -69 -129c0 -23 1 -48 1 -71z" fill="currentColor"/>
</g>
</a>
<g transform="translate(48.0677, 8.7009)">
<rect x="-0.0650" y="-2.4623" width="0.1300" height="2.7762" ry="0.0400" fill="currentColor"/>
</g>
<a style="color:inherit;" xlink:href="textedit:///Users/gherman/Desktop/localdev/src/misc/sound/tmpfmll596q.ly:21:44:45">
<g transform="translate(49.3327, 8.7009)">
<path transform="scale(0.0040, -0.0040)" d="M218 136c66 0 108 -36 108 -89c0 -89 -113 -183 -218 -183c-66 0 -108 36 -108 89c0 89 113 183 218 183z" fill="currentColor"/>
</g>
</a>
<a style="color:inherit;" xlink:href="textedit:///Users/gherman/Desktop/localdev/src/misc/sound/tmpfmll596q.ly:21:45:46">
<g transform="translate(49.6263, 5.2310)">
<path transform="scale(0.0022, -0.0022)" d="M367 473c0 -21 -128 -163 -128 -357c0 -53 10 -84 10 -91c0 -14 -12 -26 -25 -26c-11 0 -42 15 -73 15c-32 0 -62 -15 -74 -15c-14 0 -25 11 -25 23c0 4 47 128 172 326c-10 -3 -20 -4 -29 -4c-56 0 -62 42 -94 42c-26 0 -47 -53 -47 -75c0 -18 -14 -27 -27 -27
s-27 9 -27 27v162c0 18 14 27 27 27s27 -9 27 -27v-16c0 -10 13 -19 21 -19c9 0 35 57 85 57c49 0 60 -46 94 -46c47 0 60 51 85 51c14 0 28 -12 28 -27z" fill="currentColor"/>
</g>
</a>
<g transform="translate(50.5720, 8.7009)">
<rect x="-0.0650" y="-2.7277" width="0.1300" height="2.5416" ry="0.0400" fill="currentColor"/>
</g>
<a style="color:inherit;" xlink:href="textedit:///Users/gherman/Desktop/localdev/src/misc/sound/tmpfmll596q.ly:21:48:49">
<g transform="translate(51.8370, 8.2009)">
<path transform="scale(0.0040, -0.0040)" d="M218 136c66 0 108 -36 108 -89c0 -89 -113 -183 -218 -183c-66 0 -108 36 -108 89c0 89 113 183 218 183z" fill="currentColor"/>
</g>
</a>
<a style="color:inherit;" xlink:href="textedit:///Users/gherman/Desktop/localdev/src/misc/sound/tmpfmll596q.ly:21:51:52">
<g transform="translate(51.8370, 12.7009)">
<text font-family="serif" font-size="2.2001" text-anchor="start" fill="currentColor">
<tspan>C</tspan>
</text>
</g>
</a>
<a style="color:inherit;" xlink:href="textedit:///Users/gherman/Desktop/localdev/src/misc/sound/tmpfmll596q.ly:21:49:50">
<g transform="translate(52.0623, 4.9678)">
<path transform="scale(0.0022, -0.0022)" d="M241 312c23 26 39 55 39 90c0 37 -41 55 -82 55c-40 0 -63 -30 -63 -58c0 -15 7 -30 22 -39zM296 280c21 -12 89 -52 89 -132c0 -75 -67 -148 -195 -148c-99 0 -190 60 -190 152c0 47 31 82 65 115c-32 27 -47 62 -47 97c0 69 62 136 180 136c80 0 163 -28 163 -98
c0 -49 -31 -87 -65 -122zM119 233c-22 -23 -38 -48 -38 -81c0 -60 49 -109 109 -109c49 0 77 37 77 71c0 19 -8 38 -27 49z" fill="currentColor"/>
</g>
</a>
<g transform="translate(53.0762, 8.7009)">
<rect x="-0.0650" y="-2.9931" width="0.1300" height="2.3070" ry="0.0400" fill="currentColor"/>
</g>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment