Taos API Reference
    Preparing search index...

    Function makeDistortionCurve

    • Builds a waveshaper transfer curve. amount 0 → near-linear, higher → harder clipping. Pure and allocation-only — unit-testable. The curve is an odd function (f(-x) = -f(x)) and monotonically increasing.

      Parameters

      • amount: number
      • samples: number = 44100

      Returns Float32Array<ArrayBuffer>