Python SDK for the state-space-music-box HTTP API. Generate procedural music, manage sessions, evaluate outputs, and control the Agentic DJ stack.
Project description
music-box-sdk
Python SDK for the state-space-music-box HTTP API.
Install
pip install music-box-sdk
Quick Start
from music_box_sdk import MusicBoxClient
client = MusicBoxClient("http://localhost:3001", "your-api-key")
# Explore: sweep 10 seeds
sweep = client.parameter_sweep("demo", seeds=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
print("Best seed:", sweep["ranked_seeds"][0])
# Create a session with the best seed
session = client.create_session("My Session", "demo", seed=sweep["ranked_seeds"][0])
# Render a preview
preview = client.render_preview(session["session_id"])
# Adapt: patch the preset
client.preset_patch("demo", reason="faster tempo", tempo_bpm=140, low_note=48)
API Reference
See docs/AGENT_GUIDE.md for the complete tool reference.
License
MIT OR Apache-2.0
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
music_box_sdk-0.2.0b1.tar.gz
(3.9 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 music_box_sdk-0.2.0b1.tar.gz.
File metadata
- Download URL: music_box_sdk-0.2.0b1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
feff03298ecc27914ca29aa677e1e823c1ca3bced9643ac8b7602776e78d09e9
|
|
| MD5 |
08e97522bd2c86a248df8049bb6c96d4
|
|
| BLAKE2b-256 |
527346caa485f63dace3f4858aaed524be86359205f0dba1fbca586e97f6218f
|
File details
Details for the file music_box_sdk-0.2.0b1-py3-none-any.whl.
File metadata
- Download URL: music_box_sdk-0.2.0b1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d48e1bb2d640e290fb9dc0d1a0f11efb51ec4f46953dc7cb5adbcb5b3c54f4cb
|
|
| MD5 |
799418b5385c72424a6853e9b4448d55
|
|
| BLAKE2b-256 |
1bb54a5baef5fe0934165680efe998b690edb2df08560fbc8d2843ec35516722
|