RaynBPM 0.4.0
RaynBPM is an experimental, dependency-free Python library for audio tempo, beat and tempo-change analysis. Its analysis algorithms are implemented in Python using only the standard library.
Runtime dependencies
None. Python 3.10+.
Supported audio input
- Uncompressed PCM WAV: 8-bit unsigned, 16-bit signed, 24-bit signed, and 32-bit signed integer PCM.
- Mono and multichannel WAV (channels are downmixed to mono).
MP3, FLAC, OGG/Vorbis, AAC and other compressed formats are not decoded
in this release. Their codecs are substantial independent implementations;
RaynBPM will raise UnsupportedAudioFormatError rather than silently
pretending to support them.
Install locally
py -m pip install .
Use
from raynbpm import RaynBPM
engine = RaynBPM(min_bpm=60, max_bpm=300)
result = engine.analyze("music.wav")
print(result.bpm)
print(result.confidence)
print(result.beats[:10])
for segment in result.timeline:
print(segment.start, segment.end, segment.bpm)
Command line
py -m raynbpm music.wav
Build distribution
py -m pip install --upgrade build
py -m build
Important accuracy note
Tempo estimation is inherently ambiguous: a rhythm may be interpreted at half
or double tempo, and syncopated or changing-tempo music can produce multiple
plausible answers. confidence is a heuristic score, not a calibrated
probability. Always verify the result against the audio and a trusted reference.
Project structure
core/: FFT and window functionsdecoders/: WAV PCM readeranalysis/: spectrum, onset envelope, tempo and confidencebeats/: beat-grid extractionreports/: JSON report exporttests/: standard-library unit tests
Metadata
Release files for raynbpm 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| raynbpm-0.4.0.tar.gz | 11.9 kB | Without provenance | Details for raynbpm-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| raynbpm-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for raynbpm-0.4.0-py3-none-any.whl |
Total release size: 27.3 kB
Release files / raynbpm-0.4.0.tar.gz
| Download URL | raynbpm-0.4.0.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f302c003b998785954c109fc8fd6148acb717bbcad627934d63cc016eb563192
|
|
BLAKE2b-256 checksum How to use checksums |
7a7d0b18666dd5162d880064af54597d6e7bef30c712adb2d0c856094e36dcbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.9
|
Release files / raynbpm-0.4.0-py3-none-any.whl
| Download URL | raynbpm-0.4.0-py3-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b840ec255eb8e3c72116e361d25d4c20560cdd7a2cf1b4121cae6199bb71aa40
|
|
BLAKE2b-256 checksum How to use checksums |
ccf5a8552f6c20fb7da4f2d6cfe5e1cd8d7400768a317eaf85763e4a28888be3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.9
|
Security for raynbpm 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.