-
Notifications
You must be signed in to change notification settings - Fork 0
utils.DspUtils.Function.adjustSignalLevel
Christian d'Heureuse edited this page Jun 7, 2026
·
2 revisions
dsp-collection / utils/DspUtils / adjustSignalLevel
function adjustSignalLevel(signal, options): void;Defined in: utils/DspUtils.ts:75
Scales signal in place and optionally clips it.
If both targetRms and targetMaxLevel are given, the more restrictive (smaller) factor is used,
so neither target is exceeded. Clipping, if enabled, is applied after scaling.
A target of 0 (or omitted) is treated as "not specified".
MutableArrayLike<number>
void