The stream, keyed by the caller's stable ids.
Normalized time within the window, in [0, 1]; outside is zero.
The window's length, seconds, which sets the frequencies' time scale.
The highest frequency, hertz; positive.
Number of sines; 4 by default.
The value, roughly in [-1, 1].
Smooth, seeded, band-limited variation over one window of an action, zero with zero first and second derivatives at both ends.
The signal is a sum of
termssines whose frequencies (uniform in[0.3, 1] * maxFrequencyhertz) and phases are drawn from the stream, each weighted1 / sqrt(terms), the procedural-noise construction of Perlin and Goldberg's Improv (SIGGRAPH 1996) used for idle and path variation. It is multiplied by the windoww(u) = (16 u^2 (1 - u)^2)^2, which is 1 at the middle and vanishes with its first three derivatives atu = 0andu = 1, so variation added to a motion leaves its contacts, its cut points and its continuity untouched. The draws read stream indices0 .. 2 terms - 1, so the same stream always yields the same signal.