WofWca / jumpcutter

⏩ Fast-forwards long pauses between sentences — watch lectures ~1.5x faster (browser extension)
https://chrome.google.com/webstore/detail/jump-cutter/lmppdpldfpfdlipofacekcfleacbbncp
GNU Affero General Public License v3.0
356 stars 13 forks source link

docs: "Stetching" algorithm visualization #166

Open WofWca opened 9 months ago

WofWca commented 9 months ago

We have a high-level explanation:

https://github.com/WofWca/jumpcutter/blob/ba9727dc631b8aa11300bc101a7710c3a81d00b9/README.md?plain=1#L63-L106

But I'm afraid reading the code would still make anyone's head explode.

I guess it can be visualized with the Chart, and the dev mode where it shows the delay of the stretcher node, but there is no explanation as to what that black vertical line is, or the pink vertical one (only shown in dev mode).

Pink line: https://github.com/WofWca/jumpcutter/blob/8baced5904ea1b77bb88551a90d0c8d90ef15b47/src/entry-points/popup/Chart.svelte#L294-L296

Black vertical line:

https://github.com/WofWca/jumpcutter/blob/8baced5904ea1b77bb88551a90d0c8d90ef15b47/src/entry-points/popup/Chart.svelte#L543-L574

image