Download the PHP package bpmfinder/bpm-finder without Composer
On this page you can find all versions of the php package bpmfinder/bpm-finder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bpmfinder/bpm-finder
More information about bpmfinder/bpm-finder
Files in bpmfinder/bpm-finder
Package bpm-finder
Short Description BPM Finder for PHP with WAV audio BPM analysis, tap tempo detection, and DJ-friendly tempo utilities.
License MIT
Homepage https://bpm-finder.net/
Informations about the package bpm-finder
BPM Finder for PHP
bpmfinder/bpm-finder is a lightweight PHP library for tap tempo analysis, PCM WAV audio-file BPM estimation, BPM conversion, and practical tempo-range helpers. It is maintained by BPM Finder, the online tool for fast and accurate BPM detection.
Why this package exists
If you are building music tooling, DJ utilities, playlist workflows, or internal tempo features, you often need a few reliable primitives:
- Calculate BPM from user taps
- Estimate BPM from uncompressed WAV audio files
- Convert BPM to milliseconds per beat or bar
- Normalize half-time and double-time readings into a practical range
This package keeps those utilities small, dependency-free, and framework-agnostic.
Installation
Usage
Tap tempo from timestamps
Tap tempo from intervals
BPM and milliseconds conversion
Analyze a WAV audio file
analyzeFile() supports uncompressed PCM WAV files in v1.
Normalize into a practical range
Public API
TapTempoCalculator
analyzeTimestamps(array $timestampsMs, int $precision = 2): arrayanalyzeIntervals(array $intervalsMs, int $precision = 2): arraybpmFromTimestamps(array $timestampsMs, int $precision = 2): floatbpmFromIntervals(array $intervalsMs, int $precision = 2): float
AudioFileBpmAnalyzer
analyzeFile(string $filePath, float $minTempo = 70.0, float $maxTempo = 180.0, int $precision = 2): arrayanalyzeSamples(array $samples, int $sampleRate, float $minTempo = 70.0, float $maxTempo = 180.0, int $precision = 2): array
TempoConverter
bpmToMillisecondsPerBeat(float $bpm, int $precision = 2): floatbpmToMillisecondsPerBar(float $bpm, int $beatsPerBar = 4, int $precision = 2): floatmillisecondsPerBeatToBpm(float $milliseconds, int $precision = 2): floatmillisecondsPerBarToBpm(float $milliseconds, int $beatsPerBar = 4, int $precision = 2): float
TempoRange
normalize(float $bpm, float $min = 70.0, float $max = 180.0, int $precision = 2): floatisWithin(float $bpm, float $min = 70.0, float $max = 180.0): boolhalfTime(float $bpm, int $precision = 2): floatdoubleTime(float $bpm, int $precision = 2): float
Development
Release notes
Current version: 0.1.0
- First public release
- Added PCM WAV audio-file BPM analysis
- Zero runtime dependencies
- Tested with PHPUnit
See CHANGELOG.md for release history.
License
MIT