Skip to main content

Polybeat

https://github.com/chunribu/polybeat/assets/57521167/2c2e6025-2490-4b45-b54e-92f1c06b1c04

Installation

# first, install manim from conda-forge channel
conda install -c conda-forge manim

# then install polybeat from pypi
pip install polybeat

Usage

# step 1: import module
from polybeat import play

# step 2:
# primary usage
play([3,4,12])

# advanced usage
play(
    rhythms=[3,4,6,12],
    custom_order=[0,1,3,2],
    # colors=[RED,YELLOW,BLUE,GREEN],
    sounds=['kick_drum','open_conga','side_stick','low_bongo'],
    volumes=[0,-2,-6,-4],
    cycle_time=1.8,
    dot_radius=0.16,
    width_range=[2.5,3.5],
    preview=True,
)

custom_order is None by default, which equals to [3,2,1,0] (reverse order) in this case.

colors should be a list of variables supported by manim or hex number strings, e.g. ['#3ec1d3', '#f6f7d7', '#ff9a00', '#ff165d'].

sounds can be paths to custom audio files, or just leave it default.

cycle_time has an effect on speed.

preview means you want the video to auto play or not after rendering.

It's safe to use default parameters when the number of beats is 4 or less

Metadata

Release files for polybeat 1.1.0

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

Source distribution (sdist)

Source distribution for polybeat 1.1.0
File Size Uploaded Provenance
polybeat-1.1.0.tar.gz 436.2 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 867.7 kB

Release files / polybeat-1.1.0.tar.gz

Download URL polybeat-1.1.0.tar.gz
Size 436.2 kB
Tags Source
SHA-256 checksum
How to use checksums
863886e285109d66e3f176c815a21128e815bb2ebd3cae94c215233477abab07
BLAKE2b-256 checksum
How to use checksums
155aef81e8d1d776b7241ed2df59fb38495baf8ff061df3482c4ab064c75ef61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / polybeat-1.1.0-py3-none-any.whl

Download URL polybeat-1.1.0-py3-none-any.whl
Size 431.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a704261d2e3adb06dd5f3122d8f44c9041b0931dcbee00087cd6e176a3ecff85
BLAKE2b-256 checksum
How to use checksums
cae606ce17a9f8e114f9fe8d17561e0101946015498f23f92a566360003436cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for polybeat 1.1.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.

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