mwg API
    Preparing search index...

    Function dynamicsLimit

    • One sample through the dynamics control: at 0 the sample is untouched, and as the amount rises a soft knee pulls peaks toward full scale without ever passing it, so a loud game gets quieter peaks rather than clipped ones.

      Parameters

      • sample: number
      • dynamics: number

      Returns number

      import { dynamicsLimit } from '@datamoc/mwg/audio';

      console.log(dynamicsLimit(0.5, 0)); // 0.5, untouched
      console.log(dynamicsLimit(4, 1) < 1); // true, a hot sample is pulled under full scale