A beat interval is the reciprocal of tempo scaled to milliseconds. Derive the interval during render so it follows the current tempo prop.
Worked example
// components/BeatIntervalReadout.tsx
export default function BeatIntervalReadout({ bpm = 120 }: { bpm?: number } = {}) {
return <output>{Math.round(60000 / Math.max(1, bpm))} ms per beat</output>;
}Implementation notes
A display interval is not a precision scheduler. Audio timing requires a clock appropriate to playback even if the same tempo drives the readout.
Try it yourself
Compare 60 and 120 beats per minute and define a policy for zero.
Open the React example →Editorial date June 1, 2026 · Published December 6, 2026