Skip to main content

somnia-audio

Deterministic zero-allocation procedural audio generator and ambient synthesizer engine.

Install

pip install somnia-audio     # uv add somnia-audio

Usage

import somnia
from somnia import ScaleType, Somnia

engine = Somnia()
note = engine.next_event(scale="dorian", bpm=120)

if note.is_rest:
    print("REST")
else:
    print(f"Note: {note.label} | Freq: {note.frequency} Hz | Dur: {note.duration_ms} ms")

API

See API.md for complete stability guarantees.

License

Mozilla Public License 2.0 (MPL-2.0)

Metadata

Release files for somnia-audio 0.6.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 somnia-audio 0.6.0
File Size Uploaded Provenance Actions
somnia_audio-0.6.0.tar.gz 4.9 kB Without provenance Details for somnia_audio-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for somnia-audio 0.6.0
File Interpreter ABI Platform Actions
somnia_audio-0.6.0-py3-none-any.whl Python 3 none any Details for somnia_audio-0.6.0-py3-none-any.whl

Total release size: 10.1 kB

Release files / somnia_audio-0.6.0.tar.gz

Download URL somnia_audio-0.6.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1d6e568e245532a7a06872b0b8576e6734c02d6063a5fc79b6de43c94f555fad
BLAKE2b-256 checksum
How to use checksums
c86f42d1b4f6de5c0e885a18943f08556f358e81d504f2e0919c3be597931985
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / somnia_audio-0.6.0-py3-none-any.whl

Download URL somnia_audio-0.6.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d57c2f6c29758f208baec7ba5ed04c7dc6c28074fcfd2507ffd826a44d45082
BLAKE2b-256 checksum
How to use checksums
5a5bd8e326fd31cddf4fa98bcd6344271ca2b3c2f7c33b22f46af1f67fc82120
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for somnia-audio 0.6.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.

Release history Release notifications | RSS feed

This release

0.6.0 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