@lambda-musika/musika - v0.1.0
    Preparing search index...

    Namespace Envelope

    Envelope functions.

    Functions

    attack

    Attack function that grows quickly from [0, 0] to [length, 1] in a concave shape.

    invAttack

    Attack function that grows slowly from [0, 0] to [length, 1] in a convex shape.

    invRelease

    Release function that stays at 1 from [0, 1] to [releaseTime, 1] and then decays slowly from [releaseTime, 1] to [totalTime, 0] in a convex shape.

    linear

    Linearly-interpolated envelope, described by a set of [x, y] points.

    release

    Release function that stays at 1 from [0, 1] to [releaseTime, 1]