Real-time bytebeat engine using numpy + sounddevice
Project description
pykilobeatrt
Real-time bytebeat audio engine for Python with adjustable play/sample rate. Generate bytebeat audio using formulas and play it instantly.
Installation
pip install pykilobeatrt
Example
from pykilobeatrt import compile_formula, BytebeatPlayer
f = compile_formula("(t>>10)*(t&42)")
player = BytebeatPlayer(f, sample_rate=44100) # default 44100 Hz player.start()
change play rate dynamically
player.set_sample_rate(22050) # half-speed playback
input("Press ENTER to stop...") player.stop()
Features
- Real-time audio playback
- Safe AST formula compiler
- Works with numpy ufuncs
- Swap formulas live
- Adjustable play/sample rate
- Byte or float output modes
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pykilobeatrt-1.5.0.tar.gz.
File metadata
- Download URL: pykilobeatrt-1.5.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03d154decfa6c187a6414352cd3d22d1b142ce36c603046b80da83ed1cb82179
|
|
| MD5 |
36ad4c60cadc896e5bcea240a1ca15a8
|
|
| BLAKE2b-256 |
7fe5d0af39c222b2b3834733167cc7f4f226ab8ed2ff6b0c94398b708f46fcda
|
File details
Details for the file pykilobeatrt-1.5.0-py3-none-any.whl.
File metadata
- Download URL: pykilobeatrt-1.5.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ae4e9d103acf34974dfb1de8631b39da7d8274fcdcf66bb5dcca04db5b7db06
|
|
| MD5 |
d2b18aee589563536e1deb61ee704729
|
|
| BLAKE2b-256 |
da4559c9cd0cc383971574a2274c729ae54aced308d843e12375436bc552c168
|