changed indicators on the Playback/SpeedCalc modals

This commit is contained in:
2026-02-22 19:48:08 +02:00
parent 9437307e0f
commit 1fe8c542db
2 changed files with 23 additions and 5 deletions

View File

@@ -357,9 +357,9 @@ export default function PlaybackModal({ open, melody, builtMelody, files, archet
<p className="text-xs mb-2" style={mutedStyle}>Note Assigned Bell</p>
<div className="flex flex-wrap gap-1.5">
{noteAssignments.map((assignedBell, noteIdx) => {
// A note is active if the current step has this note's bit set (raw archetype value)
const isActive = currentStep >= 0 && Boolean(steps[currentStep] & (1 << noteIdx));
// A note is active (flashing) if its assigned bell is currently lit in activeBells
const firesABell = assignedBell && assignedBell > 0;
const isActive = firesABell && activeBells.has(assignedBell);
return (
<div
key={noteIdx}