diff --git a/index.html b/index.html index 425bc77..b154d32 100644 --- a/index.html +++ b/index.html @@ -433,11 +433,19 @@ function SongPlayer({ parts, detected, listening, onStartMic }) { stroke={isOpen?(isHit?C.sage:isCur?C.amber:C.amber):"none"} strokeWidth={isOpen?2.5:0} opacity={opacity}/> - - {ni+1} - + {!isOpen && ( + + {ni+1} + + )} + {isOpen && (isHit||isCur) && ( + + 0 + + )} {isCur && ( 🎸 )} @@ -478,9 +486,9 @@ function SongPlayer({ parts, detected, listening, onStartMic }) { const p = NOTE_FRET_MAP[n]; return (
- {i+1} + {p&&p.fret!==0&&{i+1}} {n} - {p&&({STRING_NAMES[p.str]} fr{p.fret})} + {p&&{p.fret===0?"(open "+STRING_NAMES[p.str]+")":"("+STRING_NAMES[p.str]+" fr"+p.fret+")"}}
); })}