bpm-finder
Skill15 starsChanged 15 days agoMITView on GitHub
Finds and works with tempo: estimates BPM from an audio file (with the bundled script when code execution is available), from tap timings or from a description, gives genre tempo ranges, and converts BPM into delay times, bar lengths and durations. Use when the user asks for the BPM of a song or file, the right tempo for a genre, or tempo math.
In this repository31 other files it gives its agents.
- ad-jingleSkill
- ai-song-formatterSkill
- arrangement-advisorSkill
- artist-brandingSkill
- chord-progression-builderSkill
- chorus-builderSkill
- cover-art-directorSkill
- game-soundtrackSkill
- genre-expertSkill
- genre-translatorSkill
- hook-writerSkill
- instrument-expertSkill
- instrument-selectorSkill
- lyrics-writerSkill
- lyric-translatorSkill
- melody-writerSkill
- mixing-feedbackSkill
- mood-to-musicSkill
- music-metadataSkill
- music-prompt-engineerSkill
- music-theory-tutorSkill
- music-video-conceptSkill
- playlist-video-plannerSkill
- podcast-introSkill
- prosody-checkerSkill
- release-checklistSkill
- rhyme-checkerSkill
- song-structureSkill
- song-title-generatorSkill
- songwriting-coachSkill
- youtube-background-musicSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Do not interview the user.
- Very specific: line 36
If there is an audio file and you can run code, run python scripts/detect_bpm.py <file> (needs librosa) and report the estimate.
- Distinctive: line 37
If the user tapped beats, BPM = 60 / average interval in seconds.
- Distinctive: line 38
Check half-time and double-time: a detected 140 might be felt as 70.
- Distinctive: line 40
Never invent the BPM of a specific released song from memory.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
BPM Finder
Finds the tempo of a track, suggests the right BPM for a genre and does the tempo math: delay times, bar lengths and durations.
When to use
- The user has an audio file and wants its tempo.
- Choosing a tempo for a genre or use.
- Delay/reverb times, bar lengths, or song duration at a BPM.
What to look for in the request
- An audio file path, tap timestamps, or a description.
- Genre.
Do not interview the user. If something is missing, make a sensible assumption and deliver; mention an assumption only when it changes the result. Ask only when the answer would change the result completely.
Lead with the deliverable and skip closing notes that only restate it. Before answering, check your own numbers (syllables, bars, timings, totals) and facts. Never invent artists, records, dates, settings or product features; leave out what you are not sure of.
Deliver everything the user asked for in this answer; do not offer to do part of it later. Follow explicit requests exactly (named attributes, counts, limits). Count and calculate with code if you can run it; otherwise write the units out as you count. Then re-read your answer against your own tables: every number, note, time and claim must agree.
Workflow
- If there is an audio file and you can run code, run
python scripts/detect_bpm.py <file>(needs librosa) and report the estimate. - If the user tapped beats, BPM = 60 / average interval in seconds; drop outliers first.
- Check half-time and double-time: a detected 140 might be felt as 70; say which fits the genre.
- For tempo math: one beat = 60000 / BPM ms; a 4/4 bar = 4 beats; dotted = x1.5; triplet = x2/3.
- Never invent the BPM of a specific released song from memory; say it needs the audio or a trusted database.
Rules
- Show the formula with the numbers.
- Round BPM to one decimal place for detection, whole numbers for production choices.
- Show every subdivision you give: 1/4 = 60000/BPM ms, 1/8 = 30000/BPM, dotted 1/8 = 45000/BPM, 1/16 = 15000/BPM, triplet 1/8 = 20000/BPM. Give values at the measured BPM and at the rounded BPM a DAW would use.
- Present half-time and double-time as valid readings of the same taps that depend on the feel, not as errors.
Output format
**Tempo:** n BPM (feel: ...) · **Confidence:** ...
| Note | ms | (1/4, 1/8, 1/8 dotted, 1/16, 1/4 triplet)
**Bar length:** n sExample
Request: Delay times for 128 BPM?
Response (abridged):
1/4 = 468.75 ms · 1/8 = 234.38 · 1/8 dotted = 351.56 · 1/16 = 117.19 · 1/4 triplet = 312.5 · one bar = 1.875 sBundled files
scripts/detect_bpm.py
Works well with
arrangement-advisorfor section lengthssong-structurefor timing a song
Suggest one of these only when the user's next step needs it.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

