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

    Function release

    • Release function that stays at 1 from [0, 1] to [releaseTime, 1]and then decays quickly from[releaseTime, 1]to[totalTime, 0]` in a concave shape.

      curve controls the exponential strength.

      __
        \
         `·.,_
      

      Parameters

      • releaseTime: number

        The length of the release phase.

      • totalTime: number

        The total duration.

      • curve: number

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

      • t: Time

        The current time.

      Returns number

      The envelope value at time t.

    • Release function that stays at 1 from [0, 1] to [releaseTime, 1]and then decays quickly from[releaseTime, 1]to[totalTime, 0]` in a concave shape.

      curve controls the exponential strength.

      __
        \
         `·.,_
      

      Parameters

      • releaseTime: number

        The length of the release phase.

      • totalTime: number

        The total duration.

      • t: Time

        The current time.

      Returns number

      The envelope value at time t.