Metadata-Version: 2.4
Name: nanodirt
Version: 0.3.0
Summary: SuperDirt's event model on nanosynth: a Dirt backend for TidalCycles, Strudel and vortex
Author-email: Shakeeb Alireza <shakfu@users.noreply.github.com>
License-Expression: GPL-3.0-or-later AND AGPL-3.0-or-later AND MIT AND BSD-2-Clause AND BSD-3-Clause AND ISC
Project-URL: Homepage, https://github.com/shakfu/nanodirt
Project-URL: Repository, https://github.com/shakfu/nanodirt
Project-URL: Issues, https://github.com/shakfu/nanodirt/issues
Project-URL: Changelog, https://github.com/shakfu/nanodirt/blob/main/CHANGELOG.md
Keywords: superdirt,tidalcycles,strudel,vortex,supercollider,live-coding
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Other Audience
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Artistic Software
Classifier: Topic :: Multimedia :: Sound/Audio :: Sound Synthesis
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: LICENSES/AGPL-3.0-or-later.txt
License-File: LICENSES/MIT-quickjs-ng-python.txt
License-File: LICENSES/MIT-quickjs-ng.txt
License-File: LICENSES/strudel-bundle-third-party.txt
Requires-Dist: nanosynth>=0.5.1
Requires-Dist: websockets>=13
Dynamic: license-file

# nanodirt

SuperDirt's event model on [nanosynth](https://github.com/shakfu/nanosynth): a sound server for TidalCycles, Strudel and vortex, with no SuperCollider install.

```bash
pip install nanodirt
nanodirt samples fetch      # Dirt-Samples into ~/.cache/nanodirt
nanodirt                    # Tidal and Strudel: start this, then use the editor as usual
nanodirt vortex             # vortex in one process (needs vortex installed)
nanodirt strudel song.strudel            # play Strudel code without a browser; re-evaluates on save
nanodirt render song.strudel --cycles 8   # Strudel code to WAV, without a browser
```

- **Tidal:** the stock `BootTidal.hs` works unchanged (UDP 57120, engine on 57110).

- **Strudel:** choose OSC output in strudel.cc's settings; nanodirt serves `ws://localhost:8080`. Strudel's default sample maps download on first use.

- **vortex:** `nanodirt vortex` replaces vortex's `boot` module, so patterns play in-process.

- **Strudel without a browser:** `nanodirt strudel` and `nanodirt render` run Strudel's own pattern engine in an embedded QuickJS, to play live or render offline. From Python: `nanodirt.headless.Strudel` evaluates and queries code; `Scheduler` plays it.

SynthDefs, modules and instruments are translated from SuperDirt `650a1d6` and checked against it; see `docs/dev/status.md`.

GPL-3.0-or-later. The bundled Strudel (`src/nanodirt/js/strudel.js`, built by `scripts/strudel_bundle/`) is AGPL-3.0-or-later; it includes MIT, BSD and ISC npm packages (`LICENSES/strudel-bundle-third-party.txt`). QuickJS and its binding are MIT. Texts in `LICENSES/`.
