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.
import { dynamicsLimit } from '@datamoc/mwg/audio';console.log(dynamicsLimit(0.5, 0)); // 0.5, untouchedconsole.log(dynamicsLimit(4, 1) < 1); // true, a hot sample is pulled under full scale Copy
import { dynamicsLimit } from '@datamoc/mwg/audio';console.log(dynamicsLimit(0.5, 0)); // 0.5, untouchedconsole.log(dynamicsLimit(4, 1) < 1); // true, a hot sample is pulled under full scale
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.