import React from "react"; import "./RightVisual.less"; export default function RightVisual() { const BAR_COUNT = 48; // Calculate a Gaussian envelope for the soundwave so the center is tallest const getEnvelope = (i: number) => { const center = BAR_COUNT / 2; const x = (i - center) / (center * 0.8); // Gaussian bell curve const envelope = Math.exp(-Math.pow(x, 2)); return Math.max(0.05, envelope); }; // Deterministic pseudo-random duration for a more organic, less rigid feel const getDuration = (i: number) => { return 0.9 + (Math.sin(i * 76543) * 0.5 + 0.5) * 0.6; // between 0.9s and 1.5s }; return (