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

    Function attack

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

      curve controls the exponential strength.

           __
          /
      ,.·´
      

      Parameters

      • length: number

        The length of the attack phase.

      • curve: number

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

      • t: Time

        The current time.

      Returns number

      The envelope value at time t.

    • Attack function that grows quickly from [0, 0] to [length, 1] in a concave 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.