Returns the latest envelope value (typically in $[0, 1]$).
Returns the current move-group toggle (flips on each accepted trigger).
Resets the envelope value to 0 (does not reset cooldown or toggle state).
Advances the envelope by one frame.
The returned didTrigger is an event-like signal: it is true only on frames where the raw
beat cue passes the cooldown gate (and the shaped strength is non-zero). Consumers typically
treat it as a “beat hit” pulse.
Stateful beat envelope generator.
Maintains a smoothed envelope value and a toggle (
moveGroup) that flips on each accepted trigger. Call step once per render/audio frame.