The low-pass cutoff, in hertz, that a soften amount asks an output stage for: nothing
at 0, down to a muffled 3.5 kHz at 1, never above what the sample rate can represent.
Parameters
soften: number
sampleRate: number
Returns number
Example
import { softenCutoff } from'@datamoc/mwg/audio';
console.log(softenCutoff(0, 44100)); // 18000, effectively open console.log(softenCutoff(1, 44100) < softenCutoff(0.5, 44100)); // true, more soften, lower cutoff
The low-pass cutoff, in hertz, that a
softenamount asks an output stage for: nothing at 0, down to a muffled 3.5 kHz at 1, never above what the sample rate can represent.