Skip to content

Instantly share code, notes, and snippets.

@ericfont
Created December 3, 2025 16:21
Show Gist options
  • Select an option

  • Save ericfont/08fdb9b3946c98d765780e7692ab1841 to your computer and use it in GitHub Desktop.

Select an option

Save ericfont/08fdb9b3946c98d765780e7692ab1841 to your computer and use it in GitHub Desktop.
trying some LRC
Display the source blob
Display the rendered blob
Raw
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="572" height="404"><defs><linearGradient id="cTMTcNnfyCDx" x1="0px" x2="32px" y1="0px" y2="0px" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#56a956"/><stop offset="1" stop-color="#5ba45b"/></linearGradient><linearGradient id="SrvtImrBZoyg" x1="0px" x2="32px" y1="0px" y2="0px" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#5ba45b"/><stop offset="1" stop-color="#6a946a"/></linearGradient></defs><g><rect fill="#000000" stroke="none" x="0" y="0" width="572" height="404"/><g transform="scale(1,1) translate(86,-78)"><g><g><text fill="#ffffff" stroke="none" font-family="sans-serif" font-size="14px" font-style="normal" font-weight="normal" text-decoration="normal" x="388" y="234" text-anchor="start" dominant-baseline="central">export</text></g><path fill="none" stroke="#56a956" paint-order="fill stroke markers" d=" M 368 192 L 409 220" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/></g><path fill="none" stroke="#56a956" paint-order="fill stroke markers" d=" M 368 304 L 368 192" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><text fill="#ffffff" stroke="none" font-family="sans-serif" font-size="12px" font-style="normal" font-weight="normal" text-decoration="normal" x="374" y="254" text-anchor="start" dominant-baseline="alphabetic"></text><path fill="none" stroke="#01fd01" paint-order="fill stroke markers" d=" M -16 128 L -16 224" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><text fill="#ffffff" stroke="none" font-family="sans-serif" font-size="12px" font-style="normal" font-weight="normal" text-decoration="normal" x="-10" y="182" text-anchor="start" dominant-baseline="alphabetic"></text><path fill="none" stroke="#6c936c" paint-order="fill stroke markers" d=" M 32 368 L 17 368" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><g><text fill="#ffffff" stroke="none" font-family="sans-serif" font-size="12px" font-style="normal" font-weight="normal" text-decoration="normal" x="-19" y="368" text-anchor="start" dominant-baseline="central">+2.5V</text></g><g><g><text fill="#ffffff" stroke="none" font-family="sans-serif" font-size="14px" font-style="normal" font-weight="normal" text-decoration="normal" x="98" y="362" text-anchor="start" dominant-baseline="central">export</text></g><path fill="none" stroke="#6a946a" paint-order="fill stroke markers" d=" M 192 304 L 119 348" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/></g><path fill="none" stroke="#56a956" paint-order="fill stroke markers" d=" M 368 304 L 336 304" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#5ba45b" paint-order="fill stroke markers" d=" M 304 304 L 272 304" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><g transform="matrix(-1,0,0,-1,336,304)"><path fill="none" stroke="url(#cTMTcNnfyCDx)" paint-order="fill stroke markers" d=" M 0 0 L 2 6 L 6 -6 L 10 6 L 14 -6 L 18 6 L 22 -6 L 26 6 L 30 -6 L 32 0" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/></g><text fill="#ffffff" stroke="none" font-family="sans-serif" font-size="12px" font-style="normal" font-weight="normal" text-decoration="normal" x="310" y="294" text-anchor="start" dominant-baseline="alphabetic">10k</text><path fill="none" stroke="#6a946a" paint-order="fill stroke markers" d=" M 64 304 L 50 304" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#689768" paint-order="fill stroke markers" d=" M 64 336 L 50 336" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#01fd01" paint-order="fill stroke markers" d=" M -2 320 L -16 320" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#c0c0c0" paint-order="fill stroke markers" d=" M 50 288 L 50 352 L -2 320 Z" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><g><text fill="#c0c0c0" stroke="none" font-family="sans-serif" font-size="14px" font-style="normal" font-weight="normal" text-decoration="normal" x="40" y="302" text-anchor="middle" dominant-baseline="central">-</text></g><g><text fill="#c0c0c0" stroke="none" font-family="sans-serif" font-size="14px" font-style="normal" font-weight="normal" text-decoration="normal" x="40" y="336" text-anchor="middle" dominant-baseline="central">+</text></g><path fill="none" stroke="#689768" paint-order="fill stroke markers" d=" M 64 384 L 64 336" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><text fill="#ffffff" stroke="none" font-family="sans-serif" font-size="12px" font-style="normal" font-weight="normal" text-decoration="normal" x="70" y="366" text-anchor="start" dominant-baseline="alphabetic"></text><path fill="none" stroke="#689768" paint-order="fill stroke markers" d=" M 64 384 L 64 384" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#689768" paint-order="fill stroke markers" d=" M 32 400 L 32 400" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#6c936c" paint-order="fill stroke markers" d=" M 32 368 L 32 368" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#ffffff" paint-order="fill stroke markers" d=" M 64 384 L 32 400" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#01fd01" paint-order="fill stroke markers" d=" M -16 272 L -16 320" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><text fill="#ffffff" stroke="none" font-family="sans-serif" font-size="12px" font-style="normal" font-weight="normal" text-decoration="normal" x="-10" y="302" text-anchor="start" dominant-baseline="alphabetic"></text><path fill="none" stroke="#56a956" paint-order="fill stroke markers" d=" M 304 128 L 192 128" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><text fill="#ffffff" stroke="none" font-family="sans-serif" font-size="12px" font-style="normal" font-weight="normal" text-decoration="normal" x="248" y="122" text-anchor="start" dominant-baseline="alphabetic"></text><g><path fill="none" stroke="#56a956" paint-order="fill stroke markers" d=" M 96 128 L 112 128" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><text fill="#ffffff" stroke="none" font-family="normal" font-size="20px" font-style="normal" font-weight="normal" text-decoration="normal" x="117" y="134" text-anchor="start" dominant-baseline="alphabetic">D</text><path fill="none" stroke="#56a956" paint-order="fill stroke markers" d=" M 192 128 L 176 128" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><text fill="#ffffff" stroke="none" font-family="normal" font-size="20px" font-style="normal" font-weight="normal" text-decoration="normal" x="157" y="134" text-anchor="start" dominant-baseline="alphabetic">Q</text><path fill="none" stroke="#807f7f" paint-order="fill stroke markers" d=" M 192 192 L 176 192" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><text fill="#ffffff" stroke="none" font-family="normal" font-size="20px" font-style="normal" font-weight="normal" text-decoration="normal" x="157" y="198" text-anchor="start" dominant-baseline="alphabetic">Q</text><path fill="none" stroke="#ffffff" paint-order="fill stroke markers" d=" M 157 178 L 171 178" stroke-linecap="round" stroke-miterlimit="10" stroke-dasharray=""/><path fill="none" stroke="#807f7f" paint-order="fill stroke markers" d=" M 96 160 L 112 160" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#c0c0c0" paint-order="fill stroke markers" d=" M 112 152 L 128 160 L 112 168 Z" stroke-linecap="round" stroke-miterlimit="10" stroke-dasharray=""/><text fill="#ffffff" stroke="none" font-family="normal" font-size="20px" font-style="normal" font-weight="normal" text-decoration="normal" x="117" y="166" text-anchor="start" dominant-baseline="alphabetic"></text><path fill="none" stroke="#c0c0c0" paint-order="fill stroke markers" d=" M 112 112 L 176 112 L 176 208 L 112 208 Z" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/></g><path fill="none" stroke="#807f7f" paint-order="fill stroke markers" d=" M 96 160 L 96 163" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><g><text fill="#ffffff" stroke="none" font-family="sans-serif" font-size="12px" font-style="normal" font-weight="normal" text-decoration="normal" x="86" y="175" text-anchor="start" dominant-baseline="central">CLK</text></g><path fill="none" stroke="#01fd01" paint-order="fill stroke markers" d=" M 64 128 L 66 128" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#56a956" paint-order="fill stroke markers" d=" M 94 128 L 96 128" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#c0c0c0" paint-order="fill stroke markers" d=" M 66 112 L 66 144 L 94 128 Z" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#56a956" paint-order="fill stroke markers" d=" M 304 128 L 368 192" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><text fill="#ffffff" stroke="none" font-family="sans-serif" font-size="12px" font-style="normal" font-weight="normal" text-decoration="normal" x="340" y="164" text-anchor="start" dominant-baseline="alphabetic"></text><path fill="none" stroke="#689768" paint-order="fill stroke markers" d=" M 32 400 L 32 415" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#808080" paint-order="fill stroke markers" d=" M 48.66 432 A 16.66 16.66 0 1 1 48.65999167000069 431.98334000277663" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#808080" paint-order="fill stroke markers" d=" M 22 432 L 23 430 L 24 428 L 25 426 L 26 425 L 27 425 L 28 425 L 29 426 L 30 428 L 31 430 L 32 432 L 33 434 L 34 436 L 35 438 L 36 439 L 37 439 L 38 439 L 39 438 L 40 436 L 41 434 L 42 432" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><text fill="#ffffff" stroke="none" font-family="sans-serif" font-size="12px" font-style="normal" font-weight="normal" text-decoration="normal" x="-21" y="438" text-anchor="start" dominant-baseline="alphabetic">10kHz</text><path fill="none" stroke="#01fd01" paint-order="fill stroke markers" d=" M -16 224 L -16 272" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><text fill="#ffffff" stroke="none" font-family="sans-serif" font-size="12px" font-style="normal" font-weight="normal" text-decoration="normal" x="-10" y="254" text-anchor="start" dominant-baseline="alphabetic"></text><path fill="none" stroke="#6a946a" paint-order="fill stroke markers" d=" M 192 304 L 192 332" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#6a946a" paint-order="fill stroke markers" d=" M 204 332 L 180 332" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#807f7f" paint-order="fill stroke markers" d=" M 192 368 L 192 340" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#807f7f" paint-order="fill stroke markers" d=" M 204 340 L 180 340" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><text fill="#ffffff" stroke="none" font-family="sans-serif" font-size="12px" font-style="normal" font-weight="normal" text-decoration="normal" x="206" y="342" text-anchor="start" dominant-baseline="alphabetic">470pF</text><path fill="none" stroke="#807f7f" paint-order="fill stroke markers" d=" M 192 368 L 192 384" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#807f7f" paint-order="fill stroke markers" d=" M 202 384 L 182 384" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#807f7f" paint-order="fill stroke markers" d=" M 198 389 L 186 389" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#807f7f" paint-order="fill stroke markers" d=" M 194 394 L 190 394" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#6a946a" paint-order="fill stroke markers" d=" M 192 304 L 64 304" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><text fill="#ffffff" stroke="none" font-family="sans-serif" font-size="12px" font-style="normal" font-weight="normal" text-decoration="normal" x="128" y="298" text-anchor="start" dominant-baseline="alphabetic"></text><path fill="none" stroke="#01fd01" paint-order="fill stroke markers" d=" M -16 128 L 64 128" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><text fill="#ffffff" stroke="none" font-family="sans-serif" font-size="12px" font-style="normal" font-weight="normal" text-decoration="normal" x="24" y="122" text-anchor="start" dominant-baseline="alphabetic"></text><path fill="none" stroke="#5ba45b" paint-order="fill stroke markers" d=" M 272 304 L 248 304" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="#6a946a" paint-order="fill stroke markers" d=" M 216 304 L 192 304" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><g transform="matrix(-1,0,0,-1,248,304) scale(1,1)"><path fill="none" stroke="url(#SrvtImrBZoyg)" paint-order="fill stroke markers" d=" M 0 0 L 0 6.53144959545255e-16 A 5.333333333333333 5.333333333333333 0 0 1 10.666666666666666 0 L 10.666666666666666 0" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="url(#SrvtImrBZoyg)" paint-order="fill stroke markers" d=" M 10.666666666666666 0 L 10.666666666666668 6.53144959545255e-16 A 5.333333333333333 5.333333333333333 0 0 1 21.333333333333332 0 L 21.333333333333332 0" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/><path fill="none" stroke="url(#SrvtImrBZoyg)" paint-order="fill stroke markers" d=" M 21.333333333333332 0 L 21.333333333333336 6.53144959545255e-16 A 5.333333333333333 5.333333333333333 0 0 1 32 0 L 32 0" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-dasharray=""/></g><text fill="#ffffff" stroke="none" font-family="sans-serif" font-size="12px" font-style="normal" font-weight="normal" text-decoration="normal" x="216" y="294" text-anchor="start" dominant-baseline="alphabetic">10mH</text><path fill="#ffffff" stroke="none" paint-order="stroke fill markers" d=" M 371 192 A 3 3 0 1 1 370.99999999995777 191.99998407846124 Z"/><path fill="#ffffff" stroke="none" paint-order="stroke fill markers" d=" M 195 304 A 3 3 0 1 1 194.99999999995774 303.99998407846124 Z"/><path fill="#ffffff" stroke="none" paint-order="stroke fill markers" d=" M 195 192 A 3 3 0 1 1 194.99999999995774 191.99998407846124 Z"/></g></g></svg>
@ericfont
Copy link
Author

ericfont commented Dec 3, 2025

image

sim

@ericfont
Copy link
Author

ericfont commented Dec 3, 2025

unfortunately when add second sine at 1kHz, there becomes a lot of "mixing" distortion:

image

@ericfont
Copy link
Author

ericfont commented Dec 3, 2025

@ericfont
Copy link
Author

ericfont commented Dec 3, 2025

@ericfont
Copy link
Author

ericfont commented Dec 3, 2025

image not good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment