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

    Function invAttack

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

      curve controls the exponential strength.

           __
       ,·´
      /
      

      Parameters

      • length: number

        The length of the attack phase.

      • curve: number

        The curve of the attack (higher values = slower). Defaults to 2.

      • t: Time

        The current time.

      Returns number

      The envelope value at time t.

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

      curve controls the exponential strength.

           __
       ,·´
      /
      

      Parameters

      • length: number

        The length of the attack phase.

      • t: Time

        The current time.

      Returns number

      The envelope value at time t.