Expand description
§auracle-wasm
Thin wasm-bindgen bindings over auracle_session::Engine for the web
app. Designed to run inside a Web Worker: all methods here can take
seconds (rendering, MCMC); the main thread only plays transferred audio
buffers and draws instrumentation.
Everything crossing the boundary is either JSON (structures) or a
Float32Array (audio). Candidates are addressed by stable id — pool
positions shift on eviction, ids never do. The engine is deterministic
given the seed.
The workbench is the interactive-panel surface: edit_begin(id)
clones a candidate’s tree; edit_param writes one knob (a trace-address
edit) and re-renders; edit_commit inserts the result as a new candidate
(optionally logging an “edited beats original” duel);
refine_from(id, locks) evolves everything except the locked
addresses.
Structs§
- Live
Poly - A polyphonic live instrument over one patch.
- Render
Job - One farm result: a render + vet + featurize that happened with no
Engineanywhere in sight. - Wasm
Engine - The session engine, wasm-side.
Functions§
- cache_
namespace - Render, vet and featurize one term under
phrase_json— the farm worker’s entire job, and a pure function of its two arguments. - farm_
key - The content address of
(tree_json, phrase_json)without rendering it — what a caller asks the persistent cache about before paying for a render. - farm_
render