Skip to main content

Module curves

Module curves 

Source
Expand description

Parametric curve samplers: pure t -> (x, y) functions written straight into a preallocated segment buffer. Cheap enough to resample every frame (ADR-0007 parametric build model), so continuous audio can sweep the shape live. Deterministic: no wall-clock, no randomness — the same parameters always yield the same segments (NFR 6).

Structs§

CurveParams
Everything a family’s walk needs, by name.
Levers
The family-specific levers: each is read by one family and is inert on every other, so none of them can move a rose.

Constants§

HARMONOGRAPH_TURNS
How many turns of t a harmonograph trace runs — the length of the pendulums’ swing the figure records.
SMOOTH_CORNER_SHARE
The largest share of a Maurer walk’s vertices that may be corners before maurer_rose_pieces declines to fit it — is this a curve at all?

Functions§

maurer_rose
Sample a Maurer rose into out (cleared first).