---
name: bpm-detector
description: "Find a track's tempo and the position of every beat, in the browser. Use when someone asks for: bpm detector online, bpm detector. Free browser tool on Life2Film (life2film.com): runs in the user's browser, nothing is uploaded."
---

# BPM Detector

Find a track's tempo and the position of every beat, in the browser.

Page: https://life2film.com/tools/bpm-detector/?utm_source=skill

## What matters

- Takes mono f32 PCM, which is exactly what AudioContext.decodeAudioData gives you.
- Analyse at 22050 Hz: the onset envelope lives far below that, and the source rate costs several times the memory for the same answer.
- Exports the beat grid as EDL, OTIO, FCPXML, Audacity labels, CSV or JSON.
- detect_beats also returns pulse_strength (0..1): under 0.2 there is no steady pulse and the BPM is a guess; the tool says so instead of showing a number.
- Tempo is genuinely ambiguous (140 BPM is also 70 in half time) so both readings are shown.
- Verified against a synthetic 120 BPM file: reads 120.0 and finds 24 beats in 12 seconds.

## Limits

- Runs entirely in the user's browser. Nothing is uploaded, no account, no watermark.
- Because it runs on the user's machine, you cannot call it as an API: open the page for the person, or drive it with a browser (Playwright) on their machine.

## How to use it as an agent

1. You have a shell: run it yourself with our engine, `npx life2film-engine beats song.mp3` (add `--json` for machine output; needs ffmpeg). Same engine as the page, nothing uploaded.
2. The person has a file and a browser: give them https://life2film.com/tools/bpm-detector/?utm_source=skill and say what to set. The file stays on their device.
3. You run a browser (Playwright, computer use): open the page, put the file in the drop zone, wait for the result, save the download.

## From code

```js
const engine = await import('https://life2film.com/wasm/va_wasm.js');
await engine.default({ module_or_path: 'https://life2film.com/wasm/va_wasm_bg.wasm' });

const ctx = new AudioContext();
const buffer = await ctx.decodeAudioData(await file.arrayBuffer());

// Down-mix to mono at 22050 Hz first (OfflineAudioContext), then:
const { bpm, beats } = JSON.parse(engine.detect_beats(mono, 22050, null));
```

## Life2Film MCP

Every tool on Life2Film and our other sites, their skills and guides, as a read-only MCP server (`list_tools`, `get_tool`):

```sh
# Claude Code
claude mcp add --transport http life2film https://life2film.com/mcp
# Codex CLI
codex mcp add life2film --url https://life2film.com/mcp
```

Claude.ai, Claude Desktop, ChatGPT: add a custom connector with the URL `https://life2film.com/mcp`.
Cursor and other clients (`mcp.json`): `{"mcpServers":{"life2film":{"url":"https://life2film.com/mcp"}}}`

## Related

- [Video Splitter](https://life2film.com/tools/video-splitter/?utm_source=skill)
- [Scene Detector](https://life2film.com/tools/scene-detector/?utm_source=skill)

---
Life2Film: https://life2film.com/ · llms.txt: https://life2film.com/llms.txt
