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

    Function linear

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

      When t < x0 outputs y0. When t > xn outputs yn.

         /\
        /  \       _____
       /    \_____/     \
      /                  \
      

      Parameters

      • points: [number, number][]

        Array of [x, y] points describing the envelope.

      • t: number

        The current time.

      Returns number

      The envelope value at time t.