Python bindings for cava audio visualizer
Project description
python-libcava
CAVA audio visualizer bindings for python using FIFO
python-libcava should be thread-safe. However this hasn't been thoroughly tested.
Usage
# Print the pillars for 5 seconds
from libcava import CAVA
from time import sleep
def simple_callback(sample: list[float]):
# sample: (0.0,1.0,...)
print(sample)
cava = CAVA(
bars = 10, # The amount of bars ("pillars") per sample
callback = simple_callback # Callback function that will receive samples ranging 0-1
)
cava.start()
sleep(3)
cava.close() # Close the FIFO listener
Adding extra config to [general]
cava = CAVA(
config="sensitivity = 0"
# Will be added under [general]
)
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
python_libcava-0.0.1a0.tar.gz
(17.7 kB
view details)
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 python_libcava-0.0.1a0.tar.gz.
File metadata
- Download URL: python_libcava-0.0.1a0.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0c28e82dc69f62c44ea219d813892490262b77ba4d1042de3a058c8c57c6ebb
|
|
| MD5 |
d4ef177501f56e6365ac096adeb55dc2
|
|
| BLAKE2b-256 |
fdc80dab56a132cffc93cedc7235323e9489c10943b5d0f19afc026f85d003f5
|
File details
Details for the file python_libcava-0.0.1a0-py3-none-any.whl.
File metadata
- Download URL: python_libcava-0.0.1a0-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d9c6339db4e0037f5de3f05f50664d4e7dd1df507cccd88c19e738e29853c3c
|
|
| MD5 |
6168fba4cd92df2cb173c6ec8176b1f3
|
|
| BLAKE2b-256 |
e9aaa5ee42e2aa7d4a79a01aba51dbb864f0ee7ed81422b0f90b987faa4fd289
|