← audio-to-haptics v0.0.1

Playground

See how the algorithm detects haptic moments in audio. Adjust the sliders — the visualization updates in real time. On Android (Chrome, Samsung Internet, or Opera Mobile), you'll feel the difference too.

Analyzing…
Short burstSustained
1.5

A moment vibrates if it's at least this many times as loud as past audio. If past audio averaged 10, at 1.2 anything above 10 × 1.2 = 12 triggers.

0.75

Controls how much a sound can fade before vibration stops. At 0.75, if the last peak was 10, the next must be above 10 × 0.75 = 7.5 to keep vibrating — and the one after that above 7.5 × 0.75 = 5.6, and so on.

6

Chains shorter than this → solid MAX pulse (red). Longer → PWM intensity (blue). Lower = more PWM, higher = more solid bursts.

0.6

The minimum strength any vibration can fire at. At 0.55, a moment that would naturally vibrate at 0.3 gets raised to 0.55 instead.

1.01

Controls how much a sound can rise before the sustain chain breaks. At 1.5, if the last peak was 10, anything at 15 or below sustains — and the one after that at 15 × 1.5 = 22.5 or below, and so on.

Try your own audio or video

Direct URLs only — YouTube and streaming services won't work.

View docs →