mickeyf.docs
    Preparing search index...

    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.

    Index

    Constructors

    Methods

    • 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.

      Parameters

      Returns { didTrigger: boolean; envelope: number; moveGroup: 0 | 1 }