Reviewed concrete example
Direct activation, same arithmetic
To tap BPM with mouse or touch, activate the same large disc on every chosen pulse. Pointer hardware and a touchscreen use different physical paths, but both create deliberate current-page events and the same recent-median calculation.
Use one path for a sequence. Switching from mouse to touch can change movement and should begin after Reset.
Avoid duplicate touch and click
Some browser event chains can follow touch with a synthetic click. The implementation must accept only one activation for one gesture. Tap count is the simplest visible check: four touches should display four, not eight.
The control responds on one documented activation phase and suppresses the duplicate path. It does not listen outside its own surface.
Target size and placement
The pulse area is deliberately prominent. It should remain usable at zoom, on narrow screens, and with coarse pointers. Safe spacing separates Reset so an imprecise touch does not erase a sequence.
Large does not mean the entire page. Links, navigation, and scroll regions must remain independently operable.
Worked direct sequence
Imagine touch gaps of 670, 660, and 680 milliseconds. Rates are about 89.55, 90.91, and 88.24 BPM. Sorted, the median is about 89.55 after the fourth touch. The answer can be presented near 90 with honest rounding.
Half-time is about 44.78 and double-time about 179.10. Context decides whether either matches a useful pulse level.
Movement and visual feedback
Keep finger or pointer motion comfortable and repeatable, without dragging across the surface. Decorative afterimage rings confirm activation but do not determine timing. Reduced-motion mode replaces expansion with a calm static state change.
Do not chase the animation. Follow the source event.
Pointer movement and focus
A mouse can leave the target between clicks. Touch can scroll if a gesture becomes a drag. The design must distinguish activation from page navigation without trapping normal scrolling. After a direct activation, focus may move to the disc so Space or Enter can work, but changing method mid-sequence is discouraged.
Three-second restart
If a hand leaves for more than three seconds, the next action begins at tap one. This prevents the pause becoming a very slow interval. Reset intentionally clears sooner.
Device limitations
Touch sampling, screen protectors, pointer switches, wireless links, browser scheduling, and motor response can affect gaps. The page cannot compare devices, diagnose latency, or evaluate a person. A quick tap estimate is not a professional sync signal.
Tablet rehearsal scenario
A choreographer places a tablet flat on a stable table and listens to a repeated movement count. The browser is already open, the page is zoomed to a comfortable size, and Reset is visibly separated from the disc. With one stationary finger, the choreographer touches near the center on six equivalent counts. The count should advance six times, without a second increment after each finger lift. The note reads “slow movement count, verse two,” rather than implying that the device analyzed music.
If the choreographer needs to scroll back to the instructions, that gesture happens outside the active disc. Returning to the pulse area starts a new trial only after Reset. This arrangement protects both ordinary page navigation and deliberate timing.
Mouse use with limited movement
For a mouse, rest the pointer inside the target and use small, repeatable clicks. There is no benefit in moving away between beats. If the pointer slips onto Reset or a link, discard the trial rather than estimating the missed event. At high zoom, confirm that the primary result does not push the active surface beneath an overlay or off screen.
Trackpads can turn a movement into a drag or scrolling gesture. A deliberate click in the center is easier to interpret than a sweeping tap. The interface should not cancel system gestures outside its defined control.
Direct-input behavior check
Test a coarse touchscreen, a fine pointer, and zoomed layouts. Four physical gestures must produce four visible counts. A long press must not create an invented series. Normal scrolling must remain possible away from the disc. Focus styling after a pointer action must not obscure the result, and reduced-motion preference must preserve static confirmation. These are observable acceptance criteria, not claims that every device behaves identically.
For a consequential measurement, repeat with the same input on the same stable passage. A second nearby estimate is useful context; a different device result is not automatically evidence that one device is superior.
Privacy
The tool receives no pressure, coordinates for analysis, gesture profile, audio, camera, motion sensor, file, or URL. Only accepted timing actions create ephemeral timestamps. No account, API, database, analytics, or persistent history exists.
Frequently asked questions
Should activation occur on press or release?
The implementation uses one consistent documented phase. Do not mix phases through duplicate handlers.
Why did my page scroll?
A gesture may have become a drag outside the control. Use a deliberate direct activation and preserve normal page scrolling.
Is touch more accurate than mouse?
No universal claim is supported. Device and user context vary.
Can I touch anywhere?
No. Only the visible pulse surface records timing.
Activate the disc four times, confirm tap count equals four, inspect the median, then Reset and repeat with the same input path.
