Repository navigation
BPM detector: find the BPM of an uploaded audio file; key finder title rewrite - #85
Merged
Merged
Conversation
- The BPM detector now reads the tempo from a dropped or chosen audio file (MP3, WAV, FLAC, AAC, OGG, M4A), decoded in the browser, next to the existing microphone mode. Shows half/double-time reading and the key. - Short files (loops, clips) are read from the start instead of returning nothing; readings under 78 BPM are doubled (slow reading stays as the alternative), which fixes half-tempo results on several house/dnb tracks. - Beatless audio and non-audio files get a clear error. - bpm_file_analyzed / bpm_file_failed events to GA4 and Vercel via a new trackEverywhere() helper. - Key analyzer title, meta and schema rewritten around "Key Finder". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Seb · project thread
What
BPM detector reads files.
/tools/bpm-detectorwas microphone-only. It now has a drop zone next to the Listen button: drop or pick an MP3, WAV, FLAC, AAC, OGG or M4A and the tempo is read from the decoded audio, in the browser. The result shows the BPM, the half/double-time reading, the key (linked to its Camelot page) and the file length, and the existing "Use this BPM" card works for files too. On phones the zone says "Choose an audio file".Detection fixes (shared with the key finder):
Key finder snippet.
/tools/key-analyzertitle, meta description, OG text and tool schema are rewritten to lead with "Key Finder" and mention MP3, Camelot and BPM.Copy. BPM detector title, meta, H1, FAQ, schema and prose now cover file analysis; the homepage, /tools and the BPM Tools menu no longer call it mic-only.
Tracking. New
trackEverywhere()insrc/lib/analytics.tssends an event to both GA4 and Vercel (same pair assupport_clicked). New events:bpm_file_analyzed(bpm,file_type) andbpm_file_failed(reason), plustool_usedwithbpm_detector_file.Testing
In headless Chromium against the dev server, with 16 royalty-free tracks from incompetech.com whose published BPM is known:
tscis clean.pnpm lintshows the same 5 errors and 3 warnings asmain, none in these files.🤖 Generated with Claude Code