Metadata-Version: 2.5
Name: somnia-audio
Version: 0.6.0
Summary: Deterministic zero-allocation procedural audio generator and ambient synthesizer core
Project-URL: Homepage, https://github.com/core-red-project/somnia
Project-URL: Repository, https://github.com/core-red-project/somnia
Project-URL: Issues, https://github.com/core-red-project/somnia/issues
Project-URL: Changelog, https://github.com/core-red-project/somnia/blob/main/CHANGELOG.md
Author-email: Core Red Project <houjou.sxnnyside@sxnnysideproject.com>
License-Expression: MPL-2.0
Keywords: ambient,audio,generative,midi,music,procedural,synth
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Other Audience
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Multimedia :: Sound/Audio :: MIDI
Classifier: Topic :: Multimedia :: Sound/Audio :: Sound Synthesis
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# somnia-audio

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

### Install

```bash
pip install somnia-audio     # uv add somnia-audio
```

### Usage

```python
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](https://github.com/core-red-project/somnia/blob/main/API.md) for complete stability guarantees.

### License

Mozilla Public License 2.0 (MPL-2.0)
