Skip to main content

bpm2fps

Match song beats to their closest frame for animation.

  • Utility to convert beats per minute to animation frames.
  • Data export to CSV or JSON.
  • USD export for bouncing ball reference.
  • Also available as cli / python utility

https://github.com/BreadMakesYouFull/bpm2fps

Preview

GUI

Exported USD reference

Install

Get it on Flathub Linux install via flatpak

PyPI version Python install

Requires:

  • python 3
  • pyside6 (gui)
# Install
pip install bpm2fps[gui]

# ... or install without GUI
pip install bpm2fps

GUI

# Launch GUI
bpm2fps

Command line

Usage

./bpm2fps.sh --help
usage: cli.py [-h] [-s START] [-e END] [-b BPM] [-f FPS]

bpm2fps - Match song beats to their closest frame.

options:
  -h, --help            show this help message and exit
  -s START, --start START
                        Start time (seconds).
  -e END, --end END     End time (seconds)
  -b BPM, --bpm BPM     Beats per minute
  -f FPS, --fps FPS     Frames per second

Example

./bpm2fps.sh --bpm 120
# Result:
[
  {
    "beat": 0,
    "frame": 0.0,
    "second": 0.0
  },
  {
    "beat": 1,
    "frame": 12.0,
    "second": 0.5
  },
  {
    "beat": 2,
    "frame": 24.0,
    "second": 1.0
  },
  # ... and so on
]

Example chained with jq to get only beat frames:

./bpm2fps.sh --bpm 120 | jq '.[]["frame"]'
# Result:
0
12
24
36
48
60
72
84
96
108

Metadata

Release files for bpm2fps 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bpm2fps 1.0.2
File Size Uploaded Provenance Actions
bpm2fps-1.0.2.tar.gz 8.4 kB Without provenance Details for bpm2fps-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bpm2fps 1.0.2
File Interpreter ABI Platform Actions
bpm2fps-1.0.2-py3-none-any.whl Python 3 none any Details for bpm2fps-1.0.2-py3-none-any.whl

Total release size: 16.9 kB

Release files / bpm2fps-1.0.2.tar.gz

Download URL bpm2fps-1.0.2.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
92aefc5f6320aca23be84845b155d7285603661063e5aa0f4b0e4cf8ef6a15d3
BLAKE2b-256 checksum
How to use checksums
3f41913482070271b0f3630682702dcb583658560220b0e9f92fb9275c8a4381
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release files / bpm2fps-1.0.2-py3-none-any.whl

Download URL bpm2fps-1.0.2-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d153a5a8927ba401a986739a02be8602c601422b5748ada52346be95863957d8
BLAKE2b-256 checksum
How to use checksums
045a115b0cf88763f200069dc4d77aeab2d5b8ee49a7945b66ffd302fc886643
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Security for bpm2fps 1.0.2

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.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page