@fretfall/player 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/mount.js ADDED
@@ -0,0 +1,970 @@
1
+ let l=null;const d=e=>l??=i(e);async function i(e){const a=Object.assign(document.createElement("style"),{textContent:'[data-fretfall]{--bg: #0e1014;--ink: #0e1014;--text: #e8eaef;--muted: #7b8190;--accent: #c8f04a;--chip: #171a20;--chip-border: #2a2f38;--done: #e8eaef;--todo: #23272f;--ui: system-ui, sans-serif;--num: system-ui, sans-serif;--lyric: system-ui, sans-serif;--lyric-style: normal}:where([data-fretfall]) *{box-sizing:border-box}:where([data-fretfall]) [hidden]{display:none!important}[data-fretfall]:not([data-fretfall-dock]){height:100%}[data-fretfall]:not([data-fretfall-dock]){margin:0;overflow:hidden;background:var(--bg);color:var(--text);font:14px/1.4 var(--ui);accent-color:var(--accent)}:where([data-fretfall]) canvas{position:fixed;inset:0;width:100%;height:100%;display:block}:where([data-fretfall]) button{font:inherit;color:inherit}:where([data-fretfall]) .bar{position:fixed;z-index:3;left:32px;right:32px;top:18px;height:40px;display:flex;align-items:center;justify-content:space-between;gap:24px;transition:transform .25s ease,opacity .25s ease,visibility .25s}:where([data-fretfall]) .group{display:flex;align-items:center;gap:10px;min-width:0}:where([data-fretfall]) .group:last-child{flex:none}:where([data-fretfall]) .wordmark{display:flex;align-items:center;gap:7px;font:700 15px var(--num);letter-spacing:.22em}:where([data-fretfall]) :is(.wordmark,.welcome-mark) .fall{transform-box:fill-box;transform-origin:center;transform:rotate(14deg);animation:fall .75s .8s both}@keyframes fall{0%{transform:translate(-3.5px,-1.42px) rotate(0);animation-timing-function:cubic-bezier(.55,0,.85,.35)}40%{transform:translate(0) rotate(18deg);animation-timing-function:cubic-bezier(.2,.7,.4,1)}56%{transform:translateY(-.35px) rotate(11.5deg);animation-timing-function:ease-in-out}74%{transform:translateY(.08px) rotate(15.2deg);animation-timing-function:ease-in-out}88%{transform:translate(0) rotate(13.6deg);animation-timing-function:ease-in-out}to{transform:translate(0) rotate(14deg)}}@media(prefers-reduced-motion:reduce){:where([data-fretfall]) .wordmark .fall{animation:none}}:where([data-fretfall]) .seg{display:flex;gap:2px;padding:3px;border-radius:9px;background:var(--chip);border:1px solid var(--chip-border);overflow-x:auto;scrollbar-width:none}:where([data-fretfall]) .seg button{border:0;background:none;cursor:pointer;padding:5px 12px;border-radius:6px;font:500 13px var(--ui);color:var(--muted);white-space:nowrap}:where([data-fretfall]) .seg button[aria-pressed=true]{background:var(--text);color:var(--ink);font-weight:600}:where([data-fretfall]) .seg select{max-width:22cqw;border:0;padding:4px 6px;background:none;color:var(--text);font:600 13px var(--ui)}:where([data-fretfall]) .seg option{background:var(--ink);color:var(--text)}:where([data-fretfall]) .icon{flex:none;cursor:pointer;width:36px;height:36px;display:grid;place-items:center;padding:0;border-radius:8px;background:var(--chip);border:1px solid var(--chip-border);color:var(--text)}:where([data-fretfall]) .icon[aria-pressed=true],:where([data-fretfall]) .icon[aria-expanded=true]{background:var(--accent);border-color:var(--accent);color:var(--ink)}:where([data-fretfall]) button:focus-visible,:where([data-fretfall]) input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}:where([data-fretfall]) .speed{height:36px;display:flex;align-items:center;padding:0 2px;border-radius:8px;background:var(--chip);border:1px solid var(--chip-border);color:var(--muted)}:where([data-fretfall]) .speed button{cursor:pointer;width:28px;height:32px;display:grid;place-items:center;padding:0;border:0;background:none;color:inherit}:where([data-fretfall]) .speed #speed{width:auto;min-width:46px;font:600 14px var(--num);color:var(--text)}:where([data-fretfall]) .time{margin-right:6px;font:14px var(--num);color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}:where([data-fretfall]) .divider{width:1px;height:24px;margin:0 4px;background:var(--chip-border)}:where([data-fretfall]) .menu{display:contents}:where([data-fretfall]) #menuButton{display:none}:where([data-fretfall]) #phrases{position:fixed;left:32px;right:32px;top:74px;height:54px;cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none}:where([data-fretfall]) #phrases div{position:absolute;bottom:0;min-width:2px;border-radius:2px;background:var(--todo)}:where([data-fretfall]) #phrases div.done{background:var(--done)}:where([data-fretfall]) #phraseTime{position:absolute;top:calc(100% + 16px);transform:translate(-50%);padding:2px 7px;border-radius:6px;background:var(--ink);border:1px solid var(--chip-border);font:600 11px var(--num);font-variant-numeric:tabular-nums;color:var(--text);pointer-events:none}:where([data-fretfall]) #loopBox{position:absolute;top:-6px;bottom:-17px;border:1.5px solid var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent);box-shadow:0 0 18px color-mix(in srgb,var(--accent) 22%,transparent)}:where([data-fretfall]) #loopBox:before,:where([data-fretfall]) #loopBox:after{content:"";position:absolute;top:-11px;bottom:-11px;width:4px;border:4px solid transparent;border-radius:6px;background:var(--accent) padding-box;cursor:ew-resize}:where([data-fretfall]) #loopBox:before{left:-6.75px}:where([data-fretfall]) #loopBox:after{right:-6.75px}:where([data-fretfall]) #progress{position:fixed;left:32px;right:32px;top:134px;height:5px;border-radius:3px;overflow:hidden;background:var(--todo)}:where([data-fretfall]) #progress div{width:0;height:100%;background:var(--accent);opacity:.9}[data-fretfall][data-docked] #phrases{top:18px}[data-fretfall][data-docked] #progress{top:78px}[data-fretfall][data-docked] #lyrics{top:108px}[data-fretfall][data-docked] .sheet{top:18px}:where([data-fretfall]) #lyrics{position:fixed;left:40px;top:164px;max-width:min(560px,46cqw);display:flex;flex-direction:column;gap:8px;pointer-events:none;font-family:var(--lyric);font-style:var(--lyric-style);text-shadow:0 2px 14px var(--ink),0 0 4px var(--ink)}:where([data-fretfall]) #section{min-height:16px;font:600 12px var(--num);letter-spacing:.18em;color:var(--accent)}:where([data-fretfall]) #lines{position:relative;height:2.45em;font-size:clamp(20px,2.3cqw,32px);line-height:1.15}:where([data-fretfall]) #lines div{position:absolute;top:0;left:0;white-space:nowrap;color:var(--muted);transition:transform .45s cubic-bezier(.22,1,.36,1),opacity .35s ease}:where([data-fretfall]) #lines .low{transform:translateY(1.3em);opacity:.5}:where([data-fretfall]) #lines .gone{opacity:0;transition-duration:.45s,.25s}:where([data-fretfall]) #lines .gone.up{transform:translateY(-.8em)}:where([data-fretfall]) #lines span{transition:color .15s}:where([data-fretfall]) #lines .sung{color:var(--text)}@media(prefers-reduced-motion:reduce){:where([data-fretfall]) #lines div{transition-property:opacity}}:where([data-fretfall]) #info{position:fixed;left:40px;right:226px;bottom:14px;display:flex;align-items:center;font-size:13px;white-space:nowrap;color:var(--muted);pointer-events:none}:where([data-fretfall]) #info b{color:var(--text);font-weight:600}:where([data-fretfall]) #info>span+span:before{content:"";display:inline-block;width:1px;height:12px;margin:0 14px;vertical-align:-1px;background:var(--chip-border)}:where([data-fretfall]) #info .tuning{position:relative;pointer-events:auto;cursor:help}:where([data-fretfall]) #info .tuning>b{text-decoration:underline dotted var(--muted);text-underline-offset:3px}:where([data-fretfall]) #info .tip{left:0;right:auto;white-space:normal}:where([data-fretfall]) #info .tuning:is(:hover,:focus)>.tip{opacity:1;visibility:visible;transform:none}:where([data-fretfall]) .pegs{display:flex;align-items:flex-start;gap:4px;margin:10px 0 8px}:where([data-fretfall]) .peg{display:flex;flex-direction:column;align-items:center;min-width:26px;gap:2px;font:600 13px var(--num)}:where([data-fretfall]) .peg i{font-style:normal;font-size:11px;color:var(--muted)}:where([data-fretfall]) .peg .move:before{content:"";display:block;width:3px;height:calc(6px + var(--d) * 3px);margin:2px auto 3px;border-radius:2px;background:var(--c)}:where([data-fretfall]) .peg strong{color:var(--c)}:where([data-fretfall]) .peg.same{opacity:.45}:where([data-fretfall]) .tip small{display:block;font-size:11px}[data-fretfall]:fullscreen .bar{transform:translateY(calc(-100% - 18px));opacity:0;visibility:hidden;transition-delay:.4s}[data-fretfall]:fullscreen:has(#phrases:hover,#progress:hover,.bar:hover) .bar{transform:none;opacity:1;visibility:visible;transition-delay:0s}:where([data-fretfall]) #tools{position:fixed;z-index:3;right:32px;bottom:6px}:where([data-fretfall]) #tools .icon{position:relative}:where([data-fretfall]) .icon:disabled{cursor:default;color:var(--muted)}:where([data-fretfall]) .icon:disabled svg{opacity:.5}:where([data-fretfall]) #loopTools{position:fixed;z-index:4;display:flex;transform:translate(-50%,calc(-50% + 3px))}:where([data-fretfall]) #loopTools .icon{width:32px;height:26px;background:var(--ink);border-color:var(--accent)}:where([data-fretfall]) #loopTools svg{width:15px;height:15px}:where([data-fretfall]) #trainer{border-radius:13px 0 0 13px}:where([data-fretfall]) #clearLoop{border-left:0;border-radius:0 13px 13px 0;color:var(--muted)}:where([data-fretfall]) #clearLoop:hover{color:var(--text)}:where([data-fretfall]) #loopTools .icon[aria-pressed=true]{background:var(--accent);color:var(--ink)}:where([data-fretfall]) .tip{position:absolute;right:0;bottom:calc(100% + 10px);width:max-content;max-width:250px;padding:8px 10px;border-radius:8px;background:var(--ink);border:1px solid var(--chip-border);box-shadow:0 12px 30px #00000073;color:var(--muted);font:12px/1.45 var(--ui);text-align:left;pointer-events:none;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .12s ease,transform .12s ease,visibility .12s}:where([data-fretfall]) .tip b{display:flex;justify-content:space-between;gap:12px;margin-bottom:2px;color:var(--text);font-weight:600}:where([data-fretfall]) .tip kbd{padding:0 5px;border:1px solid var(--chip-border);border-radius:4px;color:var(--muted);font:inherit}:where([data-fretfall]) :is(.icon,.speed):hover>.tip,:where([data-fretfall]) .icon:focus-visible>.tip,:where([data-fretfall]) .speed:focus-within>.tip{opacity:1;visibility:visible;transform:none}[data-fretfall]:where([data-fretfall-dock]){display:flex;align-items:center;gap:10px}:where([data-fretfall]) .bar :is(.icon,.speed),[data-fretfall]:where([data-fretfall-dock]) :is(.icon,.speed){position:relative}:where([data-fretfall]) .bar .tip,[data-fretfall]:where([data-fretfall-dock]) .tip{top:calc(100% + 10px);bottom:auto;transform:translateY(-4px)}:where([data-fretfall]) .bar [aria-expanded=true]>.tip,[data-fretfall]:where([data-fretfall-dock]) [aria-expanded=true]>.tip{display:none}:where([data-fretfall]) #loopTools .tip{top:calc(100% + 10px);bottom:auto;left:var(--tip, 50%);right:auto;transform:translate(calc(-1 * var(--tip, 50%)),-4px)}:where([data-fretfall]) #loopTools .icon:hover>.tip,:where([data-fretfall]) #loopTools .icon:focus-visible>.tip{transform:translate(calc(-1 * var(--tip, 50%)))}[data-fretfall]:fullscreen :is(#info,#tools>:not(#minimal)){display:none}[data-fretfall].minimal :is(.bar,#phrases,#progress,#loopTools,#info,#tools>:not(#minimal)){display:none}[data-fretfall].tab2d .only-3d,[data-fretfall]:not(.tab2d) .only-2d{display:none}[data-fretfall].tab2d .only-3d+.only-3d+h3{padding-top:0;border-top:0}[data-fretfall].minimal #lyrics{top:24px}:where([data-fretfall]) #status{position:fixed;left:50%;top:42%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:12px;max-width:min(560px,90cqw);padding:10px 16px;border-radius:10px;background:var(--chip);border:1px solid var(--chip-border);backdrop-filter:blur(10px);text-align:center}[data-fretfall].banding :is(#highway,#phrases,#progress,#loopTools,#lyrics,#info,#intro,#time){display:none}:where([data-fretfall]) #bandNote{position:fixed;left:50%;top:56%;transform:translate(-50%,-50%);display:grid;justify-items:center;gap:8px;max-width:min(440px,90cqw);padding:14px 20px;border-radius:10px;background:var(--chip);border:1px solid var(--chip-border);text-align:center}:where([data-fretfall]) #bandNote .text-button{justify-self:center}:where([data-fretfall]) #status:not(.loading) .bars{display:none}:where([data-fretfall]) .bars{flex:none;display:inline-flex;align-items:flex-end;gap:3px;height:16px}:where([data-fretfall]) .bars i{width:3px;height:100%;border-radius:2px;background:var(--accent);transform:scaleY(.3);transform-origin:bottom}:where([data-fretfall]) .bars.moving i{animation:bars .8s ease-in-out infinite alternate}:where([data-fretfall]) .bars.moving i:nth-child(2){animation-duration:1.1s;animation-delay:-.5s}:where([data-fretfall]) .bars.moving i:nth-child(3){animation-duration:.7s;animation-delay:-.2s}:where([data-fretfall]) .bars.moving i:nth-child(4){animation-duration:1s;animation-delay:-.7s}@keyframes bars{0%{transform:scaleY(.2)}to{transform:scaleY(1)}}@media(prefers-reduced-motion:reduce){:where([data-fretfall]) .bars.moving i{animation:none;transform:scaleY(.6)}}:where([data-fretfall]) #intro{position:fixed;left:50%;top:36%;transform:translate(-50%,-50%);display:grid;justify-items:center;gap:6px;max-width:min(640px,90cqw);padding:22px 30px;border-radius:16px;background:color-mix(in srgb,var(--ink) 72%,transparent);border:1px solid var(--chip-border);text-align:center;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .5s ease,visibility .5s}:where([data-fretfall]) #intro.show{opacity:1;visibility:visible}:where([data-fretfall]) #introTitle{font:700 clamp(22px,3cqw,38px) / 1.15 var(--num);color:var(--text)}:where([data-fretfall]) #introFacts{font-size:14px;color:var(--muted)}:where([data-fretfall]) #introState{display:flex;align-items:center;gap:10px;margin-top:10px;font:600 12px var(--num);letter-spacing:.14em;text-transform:uppercase;color:var(--accent)}:where([data-fretfall]) .sheet{position:fixed;right:32px;top:66px;z-index:2;width:min(400px,calc(100cqw - 32px));max-height:calc(100cqh - 118px);display:flex;flex-direction:column;border-radius:14px;overflow:hidden;background:color-mix(in srgb,var(--ink) 94%,transparent);backdrop-filter:blur(18px);border:1px solid var(--chip-border);box-shadow:0 24px 60px #0000008c}:where([data-fretfall]) .sheet-head{display:flex;align-items:center;justify-content:space-between;padding:12px 12px 10px 18px}:where([data-fretfall]) .sheet-head h2{margin:0;font:600 15px var(--ui)}:where([data-fretfall]) .close{width:30px;height:30px;display:grid;place-items:center;padding:0;border:0;border-radius:8px;background:none;color:var(--muted);cursor:pointer}:where([data-fretfall]) .close:hover{background:var(--chip);color:var(--text)}:where([data-fretfall]) .tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:2px;margin:0 14px;padding:3px;border-radius:9px;background:var(--chip);border:1px solid var(--chip-border)}:where([data-fretfall]) .tabs button{padding:6px 0;border:0;border-radius:6px;background:none;font:500 13px var(--ui);color:var(--muted);cursor:pointer}:where([data-fretfall]) .tabs button:hover{color:var(--text)}:where([data-fretfall]) .tabs button[aria-selected=true]{background:var(--text);color:var(--ink);font-weight:600}:where([data-fretfall]) .pane{display:grid;align-content:start;gap:18px;padding:18px 18px 20px;overflow:hidden auto}:where([data-fretfall]) .pane h3{margin:0 0 -6px;font:600 11px var(--num);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}:where([data-fretfall]) .pane h3~h3{padding-top:16px;border-top:1px solid var(--chip-border)}:where([data-fretfall]) .setting{display:grid;gap:8px}:where([data-fretfall]) .pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:18px 20px}:where([data-fretfall]) .setting-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:13px;font-weight:500}:where([data-fretfall]) .setting-head output{font:600 12px var(--num);color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}:where([data-fretfall]) .setting .seg{overflow:visible}:where([data-fretfall]) .setting .seg button{flex:1}:where([data-fretfall]) .scale{display:flex;justify-content:space-between;margin-top:-4px;font-size:11px;color:var(--muted)}:where([data-fretfall]) .hint{margin:-2px 0 0;font-size:12px;line-height:1.4;color:var(--muted)}:where([data-fretfall]) .text-button{justify-self:start;padding:4px 0;border:0;background:none;font:500 12px var(--ui);color:var(--muted);text-decoration:underline;text-underline-offset:3px;cursor:pointer}:where([data-fretfall]) .text-button:hover{color:var(--text)}:where([data-fretfall]) :is(#settings,.volume) input[type=range]{-webkit-appearance:none;appearance:none;height:18px;margin:0;background:none;cursor:pointer}:where([data-fretfall]) #settings input[type=range]{width:100%}:where([data-fretfall]) :is(#settings,.volume) input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:linear-gradient(90deg,var(--accent) var(--fill, 50%),var(--chip-border) var(--fill, 50%))}:where([data-fretfall]) :is(#settings,.volume) input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;margin-top:-6px;border-radius:50%;background:var(--text);border:3px solid var(--accent);box-shadow:0 1px 4px #0006}:where([data-fretfall]) :is(#settings,.volume) input[type=range]::-moz-range-track{height:4px;border-radius:2px;background:var(--chip-border)}:where([data-fretfall]) :is(#settings,.volume) input[type=range]::-moz-range-progress{height:4px;border-radius:2px;background:var(--accent)}:where([data-fretfall]) :is(#settings,.volume) input[type=range]::-moz-range-thumb{width:10px;height:10px;border-radius:50%;background:var(--text);border:3px solid var(--accent)}:where([data-fretfall]) .toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px;font-weight:500;cursor:pointer}:where([data-fretfall]) .toggle small{display:block;margin-top:2px;font-size:12px;font-weight:400;line-height:1.4;color:var(--muted)}:where([data-fretfall]) .toggle input{-webkit-appearance:none;appearance:none;flex:none;position:relative;width:36px;height:20px;margin:0;border-radius:10px;background:var(--chip-border);cursor:pointer;transition:background .15s}:where([data-fretfall]) .toggle input:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--text);transition:transform .15s}:where([data-fretfall]) .toggle input:checked{background:var(--accent)}:where([data-fretfall]) .toggle input:checked:after{transform:translate(16px);background:var(--ink)}:where([data-fretfall]) .cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}:where([data-fretfall]) .cards.three{grid-template-columns:repeat(3,minmax(0,1fr))}:where([data-fretfall]) .cards button{display:grid;gap:8px;justify-items:start;padding:10px;border-radius:9px;border:1px solid var(--chip-border);background:var(--chip);font:500 12px var(--ui);color:var(--muted);text-align:left;cursor:pointer}:where([data-fretfall]) .cards button:hover{color:var(--text)}:where([data-fretfall]) .cards button[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);color:var(--text)}:where([data-fretfall]) .dots{display:flex;gap:4px}:where([data-fretfall]) .dots i{width:10px;height:10px;border-radius:50%;box-shadow:inset 0 0 0 1px #ffffff2e}:where([data-fretfall]) .headstock{width:100%;height:52px}:where([data-fretfall]) .order{font:600 12px var(--num);letter-spacing:.12em;color:var(--text)}:where([data-fretfall]) #legend{width:min(430px,calc(100cqw - 32px))}:where([data-fretfall]) .legend-find{padding:0 14px 6px}:where([data-fretfall]) .legend-find input{width:100%;height:34px;padding:0 12px;border-radius:9px;border:1px solid var(--chip-border);background:var(--chip);color:var(--text);font:13px var(--ui)}:where([data-fretfall]) .legend-find input::placeholder{color:var(--muted)}:where([data-fretfall]) .legend{gap:4px;padding-top:10px}:where([data-fretfall]) .legend h3{margin:14px 0 4px}:where([data-fretfall]) .legend h3:first-child{margin-top:0}:where([data-fretfall]) .legend-item{display:grid;grid-template-columns:64px 1fr;gap:12px;align-items:center;padding:4px 0}:where([data-fretfall]) .legend-item b{display:block;font-size:13px;font-weight:500}:where([data-fretfall]) .legend-item span{display:block;font-size:12px;line-height:1.4;color:var(--muted)}:where([data-fretfall]) .legend-item .keys{display:flex;justify-content:center;gap:4px}:where([data-fretfall]) .legend-item kbd{min-width:22px;padding:2px 6px;border:1px solid var(--chip-border);border-bottom-width:2px;border-radius:5px;background:var(--chip);font:600 12px var(--num);text-align:center;white-space:nowrap}:where([data-fretfall]) .legend-item svg{width:64px;height:36px;border-radius:8px;background:var(--chip);border:1px solid var(--chip-border);fill:none;stroke-linecap:round;stroke-linejoin:round}:where([data-fretfall]) .legend-item text{font-family:var(--num);font-weight:700;text-anchor:middle;dominant-baseline:central}:where([data-fretfall]) .legend-empty{margin:8px 0;font-size:13px;color:var(--muted)}:where([data-fretfall]) .f0{fill:var(--s0)}:where([data-fretfall]) .f1{fill:var(--s1)}:where([data-fretfall]) .f2{fill:var(--s2)}:where([data-fretfall]) .f3{fill:var(--s3)}:where([data-fretfall]) .f4{fill:var(--s4)}:where([data-fretfall]) .l0{stroke:var(--s0)}:where([data-fretfall]) .l1{stroke:var(--s1)}:where([data-fretfall]) .l2{stroke:var(--s2)}:where([data-fretfall]) .l3{stroke:var(--s3)}:where([data-fretfall]) .l4{stroke:var(--s4)}:where([data-fretfall]) .lm{stroke:var(--muted)}:where([data-fretfall]) .li{stroke:var(--ink)}:where([data-fretfall]) .ft{fill:var(--text)}:where([data-fretfall]) .lt{stroke:var(--text)}:where([data-fretfall]) .fi{fill:var(--ink)}:where([data-fretfall]) .fa{fill:var(--accent)}:where([data-fretfall]) .fl{fill:var(--lane)}:where([data-fretfall]) .ll{stroke:var(--lane)}:where([data-fretfall]) .lw{stroke:#fff}:where([data-fretfall]) .fm{fill:var(--muted)}:where([data-fretfall]) .la{stroke:var(--accent)}:where([data-fretfall]) .fw{fill:#fff}:where([data-fretfall]) .volume{position:relative}:where([data-fretfall]) .volume .icon.muted{color:var(--muted)}:where([data-fretfall]) .volume-panel{position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%);display:flex;align-items:center;gap:8px;padding:6px 14px 6px 6px;border-radius:10px;background:var(--ink);border:1px solid var(--chip-border);box-shadow:0 12px 30px #00000073}:where([data-fretfall]) .volume-panel input{width:150px}:where([data-fretfall]) .volume-panel output{min-width:36px;font:600 12px var(--num);color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}:where([data-fretfall]) .volume-mute{flex:none;width:30px;height:30px;display:grid;place-items:center;padding:0;border:0;border-radius:7px;background:none;color:var(--text);cursor:pointer}:where([data-fretfall]) .volume-mute:hover{background:var(--chip)}:where([data-fretfall]) .volume-mute[aria-pressed=true]{color:var(--muted)}:where([data-fretfall]) #drop{position:fixed;inset:12px;z-index:5;display:grid;place-items:center;border:2px dashed var(--accent);border-radius:16px;background:#00000073;font:600 20px var(--num)}:where([data-fretfall]) #tab{position:fixed;left:-10000px;top:0;width:1000px}@media(max-width:900px){:where([data-fretfall]) .time{display:none}[data-fretfall]:where([data-fretfall-dock]) .time{display:block}:where([data-fretfall]) #menuButton{display:grid}:where([data-fretfall]) .volume{position:static}:where([data-fretfall]) .volume-panel{left:auto;right:0;transform:none}:where([data-fretfall]) .menu{display:none;position:absolute;top:calc(100% + 8px);right:0;width:230px;flex-direction:column;gap:2px;padding:6px;border-radius:12px;background:var(--ink);border:1px solid var(--chip-border);box-shadow:0 12px 30px #00000073}:where([data-fretfall]) #menuButton[aria-expanded=true]+.menu{display:flex}:where([data-fretfall]) .menu .icon{width:100%;height:38px;display:flex;justify-content:flex-start;gap:12px;padding:0 10px;border:0;border-radius:7px;background:none;font:500 13px var(--ui)}:where([data-fretfall]) .menu .icon:after{content:attr(data-label)}:where([data-fretfall]) .menu .icon:hover{background:var(--chip)}:where([data-fretfall]) .menu .icon[aria-pressed=true],:where([data-fretfall]) .menu .icon[aria-expanded=true]{background:none;color:var(--accent)}:where([data-fretfall]) .menu .tip{display:none}:where([data-fretfall]) .menu .divider{width:auto;height:1px;margin:4px}}@media(max-width:560px){:where([data-fretfall]) .bar{flex-wrap:wrap;height:auto;row-gap:8px}:where([data-fretfall]) .bar>.group:first-child,:where([data-fretfall]) .bar>.group:last-child{flex:1 1 100%;height:40px}:where([data-fretfall]) .speed{margin-left:auto}:where([data-fretfall]) #menuButton{position:absolute;top:2px;right:0}:where([data-fretfall]) .menu{top:48px}:where([data-fretfall]) #phrases{top:122px}:where([data-fretfall]) #info{flex-direction:column;align-items:flex-start;gap:2px;font-size:12px}:where([data-fretfall]) #info>span+span:before{display:none}:where([data-fretfall]) #info>span:first-child{max-width:100%;overflow:hidden;text-overflow:ellipsis}:where([data-fretfall]) #progress{top:182px}:where([data-fretfall]) #lyrics{top:212px}:where([data-fretfall]) .sheet{top:114px;max-height:calc(100cqh - 166px)}}@media(max-width:520px){:where([data-fretfall]) .sheet{right:16px}}[data-fretfall]:not([data-fretfall-dock]){contain:layout;container-type:size}'}),n=Object.assign(document.createElement("link"),{id:"fonts",rel:"stylesheet"});if(!e.isConnected)throw new Error("mount(element): the element has to be in the page");e.innerHTML=`<div data-fretfall><canvas id="highway"></canvas>
2
+ <header class="bar">
3
+ <div class="group" style="gap: 20px">
4
+ <div class="wordmark">
5
+ <svg
6
+ width="18"
7
+ height="18"
8
+ viewBox="0 0 24 24"
9
+ fill="currentColor"
10
+ aria-hidden="true"
11
+ >
12
+ <rect x="4" y="3" width="4.5" height="18" rx="1.5" />
13
+ <rect x="4" y="3" width="16" height="4.5" rx="1.5" />
14
+ <rect
15
+ class="fall"
16
+ x="10.5"
17
+ y="11.67"
18
+ width="9"
19
+ height="4.5"
20
+ rx="1.5"
21
+ />
22
+ </svg>
23
+ FRETFALL
24
+ </div>
25
+ <div
26
+ class="seg"
27
+ id="arrangements"
28
+ role="group"
29
+ aria-label="Arrangement"
30
+ ></div>
31
+ </div>
32
+ <div class="group">
33
+ <span class="time" id="time">0:00 / 0:00</span>
34
+ <div class="speed">
35
+ <button
36
+ id="slower"
37
+ aria-label="Slower"
38
+ aria-describedby="speedTip"
39
+ >
40
+ <svg
41
+ width="16"
42
+ height="16"
43
+ viewBox="0 0 20 20"
44
+ fill="none"
45
+ stroke="currentColor"
46
+ stroke-width="1.6"
47
+ stroke-linecap="round"
48
+ >
49
+ <path d="M5 10h10" />
50
+ </svg>
51
+ </button>
52
+ <button id="speed" aria-describedby="speedTip">100%</button>
53
+ <button
54
+ id="faster"
55
+ aria-label="Faster"
56
+ aria-describedby="speedTip"
57
+ >
58
+ <svg
59
+ width="16"
60
+ height="16"
61
+ viewBox="0 0 20 20"
62
+ fill="none"
63
+ stroke="currentColor"
64
+ stroke-width="1.6"
65
+ stroke-linecap="round"
66
+ >
67
+ <path d="M10 5v10M5 10h10" />
68
+ </svg>
69
+ </button>
70
+ <span class="tip" role="tooltip" id="speedTip"
71
+ ><b
72
+ >Speed <span><kbd>−</kbd> <kbd>+</kbd></span></b
73
+ >Slow the song down to practise it, or speed it up, in
74
+ 10% steps. The number goes back to 100%
75
+ <kbd>0</kbd></span
76
+ >
77
+ </div>
78
+ <div class="volume">
79
+ <button
80
+ class="icon"
81
+ id="volumeButton"
82
+ aria-expanded="false"
83
+ aria-controls="volumePanel"
84
+ aria-label="Volume"
85
+ aria-describedby="volumeTip"
86
+ >
87
+ <span class="tip" role="tooltip" id="volumeTip"
88
+ ><b
89
+ >Volume
90
+ <span><kbd>↑</kbd> <kbd>↓</kbd></span></b
91
+ >Opens a slider. <kbd>M</kbd> mutes</span
92
+ >
93
+ </button>
94
+ <div class="volume-panel" id="volumePanel" hidden>
95
+ <button
96
+ class="volume-mute"
97
+ id="volumeMute"
98
+ aria-pressed="false"
99
+ ></button>
100
+ <input
101
+ id="volume"
102
+ type="range"
103
+ min="0"
104
+ max="1"
105
+ step="0.02"
106
+ aria-label="Volume"
107
+ />
108
+ <output id="volumeOut" for="volume"></output>
109
+ </div>
110
+ </div>
111
+ <button
112
+ class="icon"
113
+ id="menuButton"
114
+ aria-expanded="false"
115
+ aria-controls="menu"
116
+ aria-label="Menu"
117
+ >
118
+ <svg
119
+ width="18"
120
+ height="18"
121
+ viewBox="0 0 20 20"
122
+ fill="none"
123
+ stroke="currentColor"
124
+ stroke-width="1.6"
125
+ stroke-linecap="round"
126
+ >
127
+ <path d="M4 6h12M4 10h12M4 14h12" />
128
+ </svg>
129
+ </button>
130
+ <div class="menu" id="menu">
131
+ <button
132
+ class="icon"
133
+ id="loop"
134
+ data-label="Loop"
135
+ aria-pressed="false"
136
+ aria-label="Loop"
137
+ aria-describedby="loopTip"
138
+ >
139
+ <svg
140
+ width="18"
141
+ height="18"
142
+ viewBox="0 0 20 20"
143
+ fill="none"
144
+ stroke="currentColor"
145
+ stroke-width="1.6"
146
+ stroke-linecap="round"
147
+ stroke-linejoin="round"
148
+ >
149
+ <path d="M13.5 3.5l2.5 2.5-2.5 2.5" />
150
+ <path d="M4 10V9a3 3 0 0 1 3-3h9" />
151
+ <path d="M6.5 16.5L4 14l2.5-2.5" />
152
+ <path d="M16 10v1a3 3 0 0 1-3 3H4" />
153
+ </svg>
154
+ <span class="tip" role="tooltip" id="loopTip"
155
+ ><b>Loop <kbd>L</kbd></b
156
+ >Loop the phrase you are in. Drag across the phrase
157
+ bars to loop a stretch, hold shift while dragging to
158
+ loop exactly what you pick, or shift-click a bar to
159
+ stretch the loop to it</span
160
+ >
161
+ </button>
162
+ <button class="icon" id="play" aria-describedby="playTip">
163
+ <span class="tip" role="tooltip" id="playTip"
164
+ ><b>Play and pause <kbd>Space</kbd></b
165
+ >Play the song from where the highway is</span
166
+ >
167
+ </button>
168
+ <div class="divider"></div>
169
+ <button
170
+ class="icon"
171
+ id="open"
172
+ data-label="Open file"
173
+ aria-label="Open file"
174
+ aria-describedby="openTip"
175
+ >
176
+ <svg
177
+ width="18"
178
+ height="18"
179
+ viewBox="0 0 20 20"
180
+ fill="none"
181
+ stroke="currentColor"
182
+ stroke-width="1.6"
183
+ stroke-linecap="round"
184
+ stroke-linejoin="round"
185
+ >
186
+ <path
187
+ d="M3 6.5V15a1.5 1.5 0 0 0 1.5 1.5h11A1.5 1.5 0 0 0 17 15V8.5A1.5 1.5 0 0 0 15.5 7H10L8.5 5H4.5A1.5 1.5 0 0 0 3 6.5z"
188
+ />
189
+ </svg>
190
+ <span class="tip" role="tooltip" id="openTip"
191
+ ><b>Open a song <kbd>O</kbd></b
192
+ >A Guitar Pro file, or a tab with its recording. You
193
+ can also drop them anywhere</span
194
+ >
195
+ </button>
196
+ <div class="divider"></div>
197
+ <button
198
+ class="icon"
199
+ id="legendButton"
200
+ data-label="Notation and shortcuts"
201
+ aria-expanded="false"
202
+ aria-controls="legend"
203
+ aria-label="Notation and shortcuts"
204
+ aria-describedby="legendTip"
205
+ >
206
+ <svg
207
+ width="18"
208
+ height="18"
209
+ viewBox="0 0 20 20"
210
+ fill="none"
211
+ stroke="currentColor"
212
+ stroke-width="1.6"
213
+ stroke-linecap="round"
214
+ stroke-linejoin="round"
215
+ >
216
+ <circle cx="10" cy="10" r="7.5" />
217
+ <path
218
+ d="M7.8 7.6a2.3 2.3 0 0 1 4.4.9c0 1.5-2.2 1.9-2.2 3.2"
219
+ />
220
+ <path d="M10 14.4h.01" />
221
+ </svg>
222
+ <span class="tip" role="tooltip" id="legendTip"
223
+ ><b>Notation and shortcuts <kbd>?</kbd></b
224
+ >What every mark on the highway means, and the
225
+ keyboard shortcuts</span
226
+ >
227
+ </button>
228
+ <button
229
+ class="icon"
230
+ id="settingsButton"
231
+ data-label="Settings"
232
+ aria-expanded="false"
233
+ aria-controls="settings"
234
+ aria-label="Settings"
235
+ aria-describedby="settingsTip"
236
+ >
237
+ <svg
238
+ width="18"
239
+ height="18"
240
+ viewBox="0 0 20 20"
241
+ fill="none"
242
+ stroke="currentColor"
243
+ stroke-width="1.6"
244
+ stroke-linecap="round"
245
+ >
246
+ <path d="M3.5 6h8M15.5 6h1M3.5 14h2M9.5 14h7" />
247
+ <circle cx="13.5" cy="6" r="2" />
248
+ <circle cx="7.5" cy="14" r="2" />
249
+ </svg>
250
+ <span class="tip" role="tooltip" id="settingsTip"
251
+ ><b>Settings <kbd>S</kbd></b
252
+ >The view of the highway and what shows on it, the
253
+ strings' colours and order, and the audio
254
+ delay</span
255
+ >
256
+ </button>
257
+ <button
258
+ class="icon"
259
+ id="fullscreen"
260
+ data-label="Full screen"
261
+ aria-label="Full screen"
262
+ aria-describedby="fullscreenTip"
263
+ >
264
+ <span class="tip" role="tooltip" id="fullscreenTip"
265
+ ><b>Full screen <kbd>F</kbd></b
266
+ >The highway, the phrase bars and the lyrics. Point
267
+ at the phrase bars to bring the header back</span
268
+ >
269
+ </button>
270
+ </div>
271
+ </div>
272
+ </header>
273
+ <div id="phrases">
274
+ <span id="loopBox" hidden></span
275
+ ><span id="phraseTime" hidden></span>
276
+ </div>
277
+ <div id="loopTools" role="group" aria-label="Loop" hidden>
278
+ <button
279
+ class="icon"
280
+ id="trainer"
281
+ aria-pressed="false"
282
+ aria-label="Speed trainer"
283
+ aria-describedby="trainerTip"
284
+ disabled
285
+ >
286
+ <svg
287
+ width="18"
288
+ height="18"
289
+ viewBox="0 0 20 20"
290
+ fill="none"
291
+ stroke="currentColor"
292
+ stroke-width="1.6"
293
+ stroke-linecap="round"
294
+ stroke-linejoin="round"
295
+ >
296
+ <path d="M3.5 14.5a6.5 6.5 0 1 1 13 0" />
297
+ <path d="M10 14.5l3.2-4.2" />
298
+ </svg>
299
+ <span class="tip" role="tooltip" id="trainerTip"
300
+ ><b>Speed trainer</b
301
+ ><span id="trainerHint"
302
+ >Slow down to 90% or less to use it</span
303
+ ></span
304
+ >
305
+ </button>
306
+ <button
307
+ class="icon"
308
+ id="clearLoop"
309
+ aria-label="Clear the loop"
310
+ aria-describedby="clearLoopTip"
311
+ >
312
+ <svg
313
+ width="16"
314
+ height="16"
315
+ viewBox="0 0 20 20"
316
+ fill="none"
317
+ stroke="currentColor"
318
+ stroke-width="1.8"
319
+ stroke-linecap="round"
320
+ >
321
+ <path d="M5.5 5.5l9 9M14.5 5.5l-9 9" />
322
+ </svg>
323
+ <span class="tip" role="tooltip" id="clearLoopTip"
324
+ ><b>Clear the loop <kbd>L</kbd></b
325
+ >Play on through the whole song</span
326
+ >
327
+ </button>
328
+ </div>
329
+ <div id="progress"><div></div></div>
330
+ <div id="lyrics">
331
+ <div id="section"></div>
332
+ <div id="lines"></div>
333
+ </div>
334
+ <div id="info"></div>
335
+ <div id="tools" class="group" role="group" aria-label="Practice tools">
336
+ <button
337
+ class="icon"
338
+ id="metronome"
339
+ aria-pressed="false"
340
+ aria-label="Metronome"
341
+ aria-describedby="metronomeTip"
342
+ >
343
+ <svg
344
+ width="18"
345
+ height="18"
346
+ viewBox="0 0 20 20"
347
+ fill="none"
348
+ stroke="currentColor"
349
+ stroke-width="1.6"
350
+ stroke-linecap="round"
351
+ stroke-linejoin="round"
352
+ >
353
+ <path d="M7.8 3h4.4l3.3 13.5h-11z" />
354
+ <path d="M5.6 12.5h8.8M10 12.5l4-7" />
355
+ </svg>
356
+ <span class="tip" role="tooltip" id="metronomeTip"
357
+ ><b>Metronome <kbd>K</kbd></b
358
+ >A click on every beat, higher on the first of each
359
+ bar</span
360
+ >
361
+ </button>
362
+ <button
363
+ class="icon"
364
+ id="band"
365
+ aria-label="Play as a band"
366
+ aria-describedby="bandTip"
367
+ disabled
368
+ >
369
+ <svg
370
+ width="18"
371
+ height="18"
372
+ viewBox="0 0 20 20"
373
+ fill="none"
374
+ stroke="currentColor"
375
+ stroke-width="1.6"
376
+ stroke-linecap="round"
377
+ stroke-linejoin="round"
378
+ >
379
+ <circle cx="7.5" cy="7" r="2.5" />
380
+ <path d="M3 16.5a4.5 4.5 0 0 1 9 0" />
381
+ <circle cx="13.8" cy="7.5" r="2" />
382
+ <path d="M13.5 12.2a3.8 3.8 0 0 1 4 4.3" />
383
+ </svg>
384
+ <span class="tip" role="tooltip" id="bandTip"
385
+ ><b>Play as a band</b>Opens every part in a window of its
386
+ own, side by side, all in time. Play, pause, jump and loop
387
+ from any of them; the sound comes from this window, which
388
+ stays open behind them</span
389
+ >
390
+ </button>
391
+ <button
392
+ class="icon"
393
+ id="tabView"
394
+ aria-pressed="false"
395
+ aria-label="2D tab view"
396
+ aria-describedby="tabViewTip"
397
+ >
398
+ <svg
399
+ width="18"
400
+ height="18"
401
+ viewBox="0 0 20 20"
402
+ fill="none"
403
+ stroke="currentColor"
404
+ stroke-width="1.6"
405
+ stroke-linecap="round"
406
+ >
407
+ <path d="M2.5 5h15M2.5 10h15M2.5 15h15" />
408
+ <path d="M7 3v14" stroke-width="2.2" />
409
+ </svg>
410
+ <span class="tip" role="tooltip" id="tabViewTip"
411
+ ><b>2D tab view <kbd>D</kbd></b
412
+ >The notes as tab: fret numbers on flat strings, coming in
413
+ from the right to the play line. Press again for the 3D
414
+ highway</span
415
+ >
416
+ </button>
417
+ <button
418
+ class="icon"
419
+ id="minimal"
420
+ aria-pressed="false"
421
+ aria-label="Minimal view"
422
+ aria-describedby="minimalTip"
423
+ >
424
+ <svg
425
+ width="18"
426
+ height="18"
427
+ viewBox="0 0 20 20"
428
+ fill="none"
429
+ stroke="currentColor"
430
+ stroke-width="1.6"
431
+ stroke-linecap="round"
432
+ stroke-linejoin="round"
433
+ >
434
+ <path
435
+ d="M2.5 10s2.8-5 7.5-5 7.5 5 7.5 5-2.8 5-7.5 5-7.5-5-7.5-5z"
436
+ />
437
+ <circle cx="10" cy="10" r="2.2" />
438
+ </svg>
439
+ <span class="tip" role="tooltip" id="minimalTip"
440
+ ><b>Minimal view <kbd>H</kbd></b
441
+ >Just the highway and the lyrics: the header, phrase bars
442
+ and song info make way. Press again to bring them back</span
443
+ >
444
+ </button>
445
+ </div>
446
+ <div
447
+ id="settings"
448
+ class="sheet"
449
+ role="dialog"
450
+ aria-labelledby="settingsTitle"
451
+ hidden
452
+ >
453
+ <div class="sheet-head">
454
+ <h2 id="settingsTitle">Settings</h2>
455
+ <button
456
+ class="close"
457
+ id="settingsClose"
458
+ aria-label="Close settings"
459
+ >
460
+ <svg
461
+ width="16"
462
+ height="16"
463
+ viewBox="0 0 20 20"
464
+ fill="none"
465
+ stroke="currentColor"
466
+ stroke-width="1.8"
467
+ stroke-linecap="round"
468
+ >
469
+ <path d="M5 5l10 10M15 5L5 15" />
470
+ </svg>
471
+ </button>
472
+ </div>
473
+ <div class="tabs" role="tablist" aria-label="Settings sections">
474
+ <button
475
+ role="tab"
476
+ id="tab-view"
477
+ aria-controls="pane-view"
478
+ data-tab="view"
479
+ >
480
+ View
481
+ </button>
482
+ <button
483
+ role="tab"
484
+ id="tab-highway"
485
+ aria-controls="pane-highway"
486
+ data-tab="highway"
487
+ >
488
+ Highway
489
+ </button>
490
+ <button
491
+ role="tab"
492
+ id="tab-strings"
493
+ aria-controls="pane-strings"
494
+ data-tab="strings"
495
+ >
496
+ Strings
497
+ </button>
498
+ <button
499
+ role="tab"
500
+ id="tab-style"
501
+ aria-controls="pane-style"
502
+ data-tab="style"
503
+ >
504
+ Style
505
+ </button>
506
+ <button
507
+ role="tab"
508
+ id="tab-audio"
509
+ aria-controls="pane-audio"
510
+ data-tab="audio"
511
+ >
512
+ Audio
513
+ </button>
514
+ </div>
515
+ <section
516
+ class="pane"
517
+ id="pane-view"
518
+ role="tabpanel"
519
+ aria-labelledby="tab-view"
520
+ >
521
+ <h3 class="only-3d">Camera</h3>
522
+ <div class="pair only-3d">
523
+ <div class="setting">
524
+ <div class="setting-head">
525
+ <label for="viewAngle">View angle</label
526
+ ><output id="viewAngleOut" for="viewAngle"></output>
527
+ </div>
528
+ <input
529
+ id="viewAngle"
530
+ type="range"
531
+ min="10"
532
+ max="65"
533
+ step="1"
534
+ />
535
+ <div class="scale" aria-hidden="true">
536
+ <span>Flat</span><span>Top-down</span>
537
+ </div>
538
+ </div>
539
+ <div
540
+ class="setting"
541
+ title="Look at the highway from one side: it runs off that way, and the frets on that side come closer"
542
+ >
543
+ <div class="setting-head">
544
+ <label for="sideAngle">Side angle</label
545
+ ><output id="sideAngleOut" for="sideAngle"></output>
546
+ </div>
547
+ <input
548
+ id="sideAngle"
549
+ type="range"
550
+ min="-20"
551
+ max="20"
552
+ step="1"
553
+ />
554
+ <div class="scale" aria-hidden="true">
555
+ <span>Left</span><span>Right</span>
556
+ </div>
557
+ </div>
558
+ </div>
559
+ <h3>Neck</h3>
560
+ <div class="pair">
561
+ <div
562
+ class="setting only-3d"
563
+ title="How wide each fret is on screen. The strings keep their spacing, and your hand position always stays in view"
564
+ >
565
+ <div class="setting-head">
566
+ <label for="fretWidth">Fret width</label
567
+ ><output id="fretWidthOut" for="fretWidth"></output>
568
+ </div>
569
+ <input
570
+ id="fretWidth"
571
+ type="range"
572
+ min="0.5"
573
+ max="2"
574
+ step="0.05"
575
+ />
576
+ <div class="scale" aria-hidden="true">
577
+ <span>More of the neck</span
578
+ ><span>Bigger frets</span>
579
+ </div>
580
+ </div>
581
+ <div
582
+ class="setting"
583
+ title="How far apart the strings are. The notes grow with them, and the fret numbers stay where they are"
584
+ >
585
+ <div class="setting-head">
586
+ <label for="boardHeight">Fretboard height</label
587
+ ><output
588
+ id="boardHeightOut"
589
+ for="boardHeight"
590
+ ></output>
591
+ </div>
592
+ <input
593
+ id="boardHeight"
594
+ type="range"
595
+ min="0.5"
596
+ max="2"
597
+ step="0.05"
598
+ />
599
+ <div class="scale" aria-hidden="true">
600
+ <span>Strings closer</span
601
+ ><span>Strings apart</span>
602
+ </div>
603
+ </div>
604
+ </div>
605
+ <h3>Notes</h3>
606
+ <div class="pair">
607
+ <div class="setting">
608
+ <div class="setting-head">
609
+ <label for="noteSpeed">Note speed</label
610
+ ><output id="noteSpeedOut" for="noteSpeed"></output>
611
+ </div>
612
+ <input
613
+ id="noteSpeed"
614
+ type="range"
615
+ min="0.25"
616
+ max="2"
617
+ step="0.05"
618
+ />
619
+ <div class="scale" aria-hidden="true">
620
+ <span>Close together</span><span>Far apart</span>
621
+ </div>
622
+ </div>
623
+ <div
624
+ class="setting only-3d"
625
+ title="How far down the highway notes show up. Shown as the seconds of notes in view, which faster notes also shorten"
626
+ >
627
+ <div class="setting-head">
628
+ <label for="drawDistance">Drawing distance</label
629
+ ><output
630
+ id="drawDistanceOut"
631
+ for="drawDistance"
632
+ ></output>
633
+ </div>
634
+ <input
635
+ id="drawDistance"
636
+ type="range"
637
+ min="0.2"
638
+ max="2"
639
+ step="0.05"
640
+ />
641
+ <div class="scale" aria-hidden="true">
642
+ <span>Near</span><span>Far</span>
643
+ </div>
644
+ </div>
645
+ </div>
646
+ <button class="text-button" id="resetSettings">
647
+ Reset settings
648
+ </button>
649
+ </section>
650
+ <section
651
+ class="pane"
652
+ id="pane-highway"
653
+ role="tabpanel"
654
+ aria-labelledby="tab-highway"
655
+ hidden
656
+ >
657
+ <div
658
+ class="setting only-2d"
659
+ title="Notes scrolling in to the play line, or a page of bars that holds still while the play line moves across it"
660
+ >
661
+ <div class="setting-head">
662
+ <span id="tabLayoutLabel">Tab</span>
663
+ </div>
664
+ <div
665
+ class="seg"
666
+ data-setting="tabLayout"
667
+ role="group"
668
+ aria-labelledby="tabLayoutLabel"
669
+ ></div>
670
+ </div>
671
+ <div class="setting">
672
+ <div class="setting-head">
673
+ <span id="lookLabel">Notes</span>
674
+ </div>
675
+ <div
676
+ class="seg"
677
+ data-setting="look"
678
+ role="group"
679
+ aria-labelledby="lookLabel"
680
+ ></div>
681
+ </div>
682
+ <label class="toggle only-3d"
683
+ ><span
684
+ >3D notes<small
685
+ >Notes a few pixels deep, lit on top</small
686
+ ></span
687
+ ><input id="notes3d" type="checkbox" role="switch"
688
+ /></label>
689
+ <div
690
+ class="setting only-3d"
691
+ title="The white line on the floor under each note and chord, where it's played"
692
+ >
693
+ <div class="setting-head">
694
+ <label for="noteLines">Note lines</label
695
+ ><output id="noteLinesOut" for="noteLines"></output>
696
+ </div>
697
+ <input
698
+ id="noteLines"
699
+ type="range"
700
+ min="0"
701
+ max="1"
702
+ step="0.05"
703
+ />
704
+ <div class="scale" aria-hidden="true">
705
+ <span>Hidden</span><span>Solid</span>
706
+ </div>
707
+ </div>
708
+ <div class="setting only-3d">
709
+ <div class="setting-head">
710
+ <span id="framesLabel">Chord frames</span>
711
+ </div>
712
+ <div
713
+ class="seg"
714
+ data-setting="frames"
715
+ role="group"
716
+ aria-labelledby="framesLabel"
717
+ ></div>
718
+ </div>
719
+ <div class="setting only-3d">
720
+ <div class="setting-head">
721
+ <span id="repeatMarksLabel">Repeated chords</span>
722
+ </div>
723
+ <div
724
+ class="seg"
725
+ data-setting="repeatMarks"
726
+ role="group"
727
+ aria-labelledby="repeatMarksLabel"
728
+ ></div>
729
+ </div>
730
+ <div
731
+ class="setting only-3d"
732
+ title="The fret of each note, on the floor in front of it, and a ruler of inlay frets on every bar line"
733
+ >
734
+ <div class="setting-head">
735
+ <label for="fretNumbers">Fret numbers</label
736
+ ><output id="fretNumbersOut" for="fretNumbers"></output>
737
+ </div>
738
+ <input
739
+ id="fretNumbers"
740
+ type="range"
741
+ min="0"
742
+ max="1"
743
+ step="0.05"
744
+ />
745
+ <div class="scale" aria-hidden="true">
746
+ <span>Hidden</span><span>Solid</span>
747
+ </div>
748
+ </div>
749
+ <div
750
+ class="setting"
751
+ title="The mute crosses and finger numbers on the notes"
752
+ >
753
+ <div class="setting-head">
754
+ <span id="markingsLabel">Markings on notes</span>
755
+ </div>
756
+ <div
757
+ class="seg"
758
+ data-setting="markings"
759
+ role="group"
760
+ aria-labelledby="markingsLabel"
761
+ ></div>
762
+ </div>
763
+ <label class="toggle"
764
+ ><span
765
+ >Hand position guides<small
766
+ >Where your hand goes: a band down the highway, or
767
+ its fret under the tab</small
768
+ ></span
769
+ ><input id="guides" type="checkbox" role="switch"
770
+ /></label>
771
+ </section>
772
+ <section
773
+ class="pane"
774
+ id="pane-strings"
775
+ role="tabpanel"
776
+ aria-labelledby="tab-strings"
777
+ hidden
778
+ >
779
+ <div class="setting">
780
+ <div class="setting-head">
781
+ <span id="stringOrderLabel">String order</span>
782
+ </div>
783
+ <div
784
+ class="cards"
785
+ data-setting="stringOrder"
786
+ role="group"
787
+ aria-labelledby="stringOrderLabel"
788
+ ></div>
789
+ </div>
790
+ <div class="setting">
791
+ <div class="setting-head">
792
+ <span id="stringsLabel">String colours</span>
793
+ </div>
794
+ <div
795
+ class="cards"
796
+ data-setting="strings"
797
+ role="group"
798
+ aria-labelledby="stringsLabel"
799
+ ></div>
800
+ </div>
801
+ </section>
802
+ <section
803
+ class="pane"
804
+ id="pane-style"
805
+ role="tabpanel"
806
+ aria-labelledby="tab-style"
807
+ hidden
808
+ >
809
+ <div class="setting">
810
+ <div class="setting-head">
811
+ <span id="colorsLabel">Colours</span>
812
+ </div>
813
+ <div
814
+ class="cards three"
815
+ data-setting="colors"
816
+ role="group"
817
+ aria-labelledby="colorsLabel"
818
+ ></div>
819
+ </div>
820
+ <div class="setting">
821
+ <div class="setting-head">
822
+ <span id="fontsLabel">Fonts</span>
823
+ </div>
824
+ <div
825
+ class="seg"
826
+ data-setting="fonts"
827
+ role="group"
828
+ aria-labelledby="fontsLabel"
829
+ ></div>
830
+ </div>
831
+ <div class="setting only-3d">
832
+ <div class="setting-head">
833
+ <span id="headstockLabel">Headstock</span>
834
+ </div>
835
+ <div
836
+ class="cards"
837
+ data-setting="headstock"
838
+ role="group"
839
+ aria-labelledby="headstockLabel"
840
+ ></div>
841
+ </div>
842
+ <label class="toggle"
843
+ ><span
844
+ >Song intro<small
845
+ >The title and "Get ready" before the first notes
846
+ come into view</small
847
+ ></span
848
+ ><input id="songIntro" type="checkbox" role="switch"
849
+ /></label>
850
+ </section>
851
+ <section
852
+ class="pane"
853
+ id="pane-audio"
854
+ role="tabpanel"
855
+ aria-labelledby="tab-audio"
856
+ hidden
857
+ >
858
+ <label class="toggle"
859
+ ><span
860
+ >Autoplay<small
861
+ >Start playing as soon as a song has opened</small
862
+ ></span
863
+ ><input id="autoplay" type="checkbox" role="switch"
864
+ /></label>
865
+ <div class="setting">
866
+ <div class="setting-head">
867
+ <label for="offset">Audio delay</label
868
+ ><output id="offsetOut" for="offset"></output>
869
+ </div>
870
+ <input
871
+ id="offset"
872
+ type="range"
873
+ min="-1000"
874
+ max="1000"
875
+ step="10"
876
+ />
877
+ <div class="scale" aria-hidden="true">
878
+ <span>Notes earlier</span><span>Notes later</span>
879
+ </div>
880
+ <p class="hint">
881
+ Move it right if notes reach the strings before you hear
882
+ them.
883
+ </p>
884
+ </div>
885
+ <button class="text-button" id="resetOffset">
886
+ Reset delay
887
+ </button>
888
+ <label class="toggle"
889
+ ><span
890
+ >Mute my part<small
891
+ >Guitar Pro files played by the synth: hear the
892
+ other tracks without yours</small
893
+ ></span
894
+ ><input id="mute" type="checkbox" role="switch"
895
+ /></label>
896
+ </section>
897
+ </div>
898
+ <div
899
+ id="legend"
900
+ class="sheet"
901
+ role="dialog"
902
+ aria-labelledby="legendTitle"
903
+ hidden
904
+ >
905
+ <div class="sheet-head">
906
+ <h2 id="legendTitle">Notation and shortcuts</h2>
907
+ <button
908
+ class="close"
909
+ id="legendClose"
910
+ aria-label="Close notation"
911
+ >
912
+ <svg
913
+ width="16"
914
+ height="16"
915
+ viewBox="0 0 20 20"
916
+ fill="none"
917
+ stroke="currentColor"
918
+ stroke-width="1.8"
919
+ stroke-linecap="round"
920
+ >
921
+ <path d="M5 5l10 10M15 5L5 15" />
922
+ </svg>
923
+ </button>
924
+ </div>
925
+ <div class="legend-find">
926
+ <input
927
+ id="legendFind"
928
+ type="search"
929
+ placeholder="Find a notation or shortcut, like bend or loop"
930
+ aria-label="Find a notation or shortcut"
931
+ />
932
+ </div>
933
+ <div class="pane legend" id="legendList"></div>
934
+ </div>
935
+ <div id="intro" aria-hidden="true">
936
+ <div id="introTitle"></div>
937
+ <div id="introFacts"></div>
938
+ <div id="introState">
939
+ <span class="bars" id="introBars"
940
+ ><i></i><i></i><i></i><i></i
941
+ ></span>
942
+ <span id="introText"></span>
943
+ </div>
944
+ </div>
945
+ <div id="status" role="status" class="loading">
946
+ <span class="bars moving" aria-hidden="true"
947
+ ><i></i><i></i><i></i><i></i
948
+ ></span>
949
+ <span id="statusText">Loading the player…</span>
950
+ </div>
951
+ <div id="bandNote" hidden>
952
+ <span
953
+ >Playing as a band: every part is in a window of its own, and
954
+ the sound comes from this one</span
955
+ >
956
+ <button class="text-button" id="bandBack">
957
+ Close the band windows
958
+ </button>
959
+ </div>
960
+ <div id="drop" hidden>
961
+ Drop a Guitar Pro file, or a tab with its recording
962
+ </div>
963
+ <input
964
+ type="file"
965
+ id="file"
966
+ hidden
967
+ multiple
968
+ accept=".gp,.gp3,.gp4,.gp5,.gpx,.musicxml,.mxl,.xml,.atex,.mp3,.m4a,.aac,.ogg,.oga,.wav,.flac"
969
+ />
970
+ <div id="tab"></div></div>`;const o=[...e.querySelectorAll("[id]")].map(t=>t.id).filter(t=>document.querySelectorAll(`[id="${t}"]`).length>1);if(document.getElementById(n.id)&&o.push(n.id),o.length)throw e.innerHTML="",new Error(`The page around the player uses ids that are the player's: ${o.join(", ")}`);return document.head.append(a,n),window.alphaTab||await new Promise((t,r)=>document.head.append(Object.assign(document.createElement("script"),{src:"https://cdn.jsdelivr.net/npm/@coderline/alphatab@1.8.4/dist/alphaTab.min.js",onload:t,onerror:()=>r(new Error("Could not load https://cdn.jsdelivr.net/npm/@coderline/alphatab@1.8.4/dist/alphaTab.min.js"))}))),await import("./player.js"),window.fretfall}export{d as mount};